/* ================================================
   FrameHire BD — Main Stylesheet
   Dark editorial aesthetic, warm amber accents
   ================================================ */

:root {
  --bg:        #f4f6f8;
  --bg2:       #e8ecf0;
  --bg3:       #d0d8e0;
  --border:    #bcc8d4;
  --text:      #1a2e3b;
  --text-muted:#6b8496;
  --accent:    #2a7f7f;
  --accent2:   #c0392b;
  --success:   #27ae60;
  --radius:    8px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

h1,h2,h3,h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* ---- NAVBAR ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 2.5rem;
  background: rgba(232,236,240,.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.brand-icon { color: var(--accent); font-size: 1.2rem; }
.brand-bd { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); opacity: 1; }

.btn-nav {
  background: var(--accent);
  color: #0d0d0d !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .85rem;
}
.btn-nav.btn-outline {
  background: transparent;
  color: var(--text-muted) !important;
  border: 1px solid var(--border);
}
.btn-nav.btn-accent { background: var(--accent); }

.notif-link { position: relative; font-size: 1.1rem; }
.badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--accent2);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 999px;
  min-width: 17px;
  text-align: center;
}

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 7rem 2rem 5rem;
  background: radial-gradient(ellipse at 50% 0%, #b2d8d8 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 820px; margin: 0 auto 1.5rem; }
.hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: .65rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #0d0d0d; }
.btn-primary:hover { background: #c49a38; color: #0d0d0d; opacity: 1; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-danger { background: var(--accent2); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: .35rem 1rem; font-size: .8rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---- CARDS ---- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #3a3a3a; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.2rem; }
.card-title { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: .4rem; }
.card-meta { color: var(--text-muted); font-size: .82rem; margin-bottom: .8rem; }

/* ---- GRID ---- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill,minmax(380px,1fr)); gap: 1.5rem; }

/* ---- SECTION ---- */
.section { padding: 4rem 2.5rem; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.9rem; margin-bottom: .5rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; }

/* ---- FORMS ---- */
.form-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  margin: 3rem auto;
}
.form-box h2 { margin-bottom: 1.5rem; text-align: center; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; font-weight: 500; }

input[type=text], input[type=email], input[type=password],
input[type=date], input[type=number], select, textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .6rem .9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 100px; }
select option { background: var(--bg3); }

/* ---- ALERTS ---- */
.alert {
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  font-size: .9rem;
  border-left: 4px solid;
}
.alert-error   { background: rgba(192,57,43,.15); border-color: var(--accent2); color: #e74c3c; }
.alert-success { background: rgba(39,174,96,.15);  border-color: var(--success);  color: #2ecc71; }
.alert-info    { background: rgba(212,168,75,.12); border-color: var(--accent);   color: var(--accent); }

/* ---- STARS ---- */
.stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }

/* ---- STATUS BADGES ---- */
.status-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-pending   { background: rgba(212,168,75,.2);  color: var(--accent); }
.status-active, .status-confirmed { background: rgba(39,174,96,.2); color: var(--success); }
.status-rejected, .status-cancelled { background: rgba(192,57,43,.2); color: var(--accent2); }
.status-completed { background: rgba(52,152,219,.2); color: #3498db; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg3); color: var(--text-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ---- DASHBOARD ---- */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.dash-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
}
.dash-sidebar a {
  display: block;
  padding: .7rem 1.5rem;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.dash-sidebar a:hover, .dash-sidebar a.active {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(212,168,75,.06);
  opacity: 1;
}
.dash-content { padding: 2.5rem; }
.dash-title { font-size: 1.6rem; margin-bottom: 2rem; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.stat-card .stat-num { font-size: 2rem; font-family: var(--font-head); color: var(--accent); font-weight: 700; }
.stat-card .stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

/* ---- PROFILE PHOTO ---- */
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.avatar-lg { width: 100px; height: 100px; }

/* ---- PHOTOGRAPHER CARD ---- */
.photographer-card .rating { font-size: .85rem; color: var(--text-muted); margin: .3rem 0; }
.photographer-card .category-tag {
  display: inline-block;
  background: rgba(212,168,75,.15);
  color: var(--accent);
  font-size: .75rem;
  padding: .15rem .6rem;
  border-radius: 4px;
  margin-bottom: .6rem;
}

/* ---- SEARCH BAR ---- */
.search-bar {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--bg2);
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.search-bar input, .search-bar select { flex: 1; min-width: 150px; }
.search-bar .btn { flex-shrink: 0; }

/* ---- CONTEST ---- */
.contest-entry { text-align: center; }
.contest-entry img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); margin-bottom: .8rem; }
.vote-count { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  margin-top: 4rem;
  background: var(--bg2);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-copy { grid-column: 1 / -1; color: var(--text-muted); font-size: .8rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state h3 { color: var(--text); margin-bottom: .5rem; }

@media (max-width: 768px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: flex; overflow-x: auto; padding: 1rem 0; border-right: none; border-bottom: 1px solid var(--border); }
  .dash-sidebar a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 1.2rem; }
  .navbar { padding: .8rem 1.2rem; }
}
