@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Material+Symbols+Outlined&display=swap');

/* ============================================================
   ROOT & RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #F7B731;
  --gold-dark:   #e0a520;
  --gold-pale:   #FEF3CC;
  --gold-light:  #FBD06A;
  --blue:        #0A74DA;
  --blue-dark:   #085fba;
  --blue-mid:    #1a86ee;
  --ink:         #111111;
  --white:       #ffffff;
  --text-muted:  rgba(255,255,255,0.6);
  --card-bg:     #ffffff;
  --border-w:    rgba(255,255,255,0.18);
  --border-c:    #e8e8e8;
  --radius:      10px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--blue);
  color: white;
  min-height: 100vh;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  padding: 0 2.5rem;
  height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  gap: 1.5rem;
}

.nav-brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-brand-avatar {
  width: 42px; height: 42px;
  border-radius: 50%; border: 2px solid var(--ink);
  object-fit: cover; flex-shrink: 0;
  background: rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
  flex-shrink: 0;
}

.navbar .btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* Hamburger button */
.nav-menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: .4rem; border-radius: 6px;
  color: var(--ink); transition: background .2s;
  align-items: center; justify-content: center;
  margin-left: auto; flex-shrink: 0;
}
.nav-menu-btn:hover { background: rgba(0,0,0,.1); }
.nav-menu-btn .material-symbols-outlined { font-size: 26px; display: block; }

/* Mobile dropdown */
.nav-mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--gold);
  border-top: 2px solid rgba(0,0,0,.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 999;
  display: none; flex-direction: column;
  padding: .5rem .75rem .75rem;
}
.nav-mobile-menu.open {
  display: flex;
  animation: slideDown .2s ease;
}
.nav-mobile-menu a {
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .95rem;
  letter-spacing: .04em;
  padding: .72rem .9rem .72rem 1rem;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: background .15s, border-color .15s, transform .1s;
  user-select: none;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a::after {
  content: '›';
  font-size: 1.1rem; font-weight: 400;
  color: rgba(0,0,0,.3);
  transition: transform .15s, color .15s;
}
.nav-mobile-menu a:hover {
  background: rgba(0,0,0,.07);
  border-left-color: rgba(0,0,0,.2);
}
.nav-mobile-menu a:hover::after {
  transform: translateX(3px);
  color: rgba(0,0,0,.5);
}
.nav-mobile-menu a:active {
  background: rgba(0,0,0,.15);
  transform: scale(.98);
}
.nav-mobile-menu a.active {
  color: var(--blue);
  background: rgba(10,116,218,.08);
  border-left-color: var(--blue);
}
.nav-mobile-menu a.active::after { color: var(--blue); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .05em;
  padding: .4rem .8rem;
  border-radius: 6px;
  position: relative;
  transition: color .2s, background .2s;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: 2px; left: .8rem;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}

.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: calc(100% - 1.6rem); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { width: calc(100% - 1.6rem); }

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-w);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: .55rem;
}

.page-header h1 span { color: var(--gold); }

.page-header p {
  color: var(--text-muted);
  font-size: .97rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   TOOLBAR ROW (search + filters)
============================================================ */
.toolbar-row {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  padding: 1rem 2.5rem;
  background: rgba(0,0,0,.12);
  border-bottom: 1px solid var(--border-w);
  position: sticky; top: 68px; z-index: 900;
  backdrop-filter: blur(8px);
}

.search-bar {
  display: flex; align-items: center;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 40px; padding: .4rem 1rem;
  gap: .5rem; min-width: 240px;
  transition: all .2s;
}

.search-bar:focus-within {
  border-color: var(--gold);
  background: rgba(255,255,255,.18);
}

.search-bar input {
  border: none; background: transparent;
  font-family: 'Roboto', sans-serif;
  font-size: .9rem; color: white;
  width: 100%; outline: none;
}

.search-bar input::placeholder { color: rgba(255,255,255,.45); }

.search-bar .material-symbols-outlined {
  font-size: 18px; color: rgba(255,255,255,.55);
}

.filter-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }

.tab-btn {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 40px; padding: .35rem .9rem;
  font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  font-family: 'Roboto', sans-serif;
  color: rgba(255,255,255,.8);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ============================================================
   CONTENT GRID
============================================================ */
.content-grid {
  max-width: 1160px; margin: 2rem auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   SHARED CARD BASE
============================================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,.22);
}

/* ============================================================
   TAG / BADGE
============================================================ */
.tag {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-size: .72rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .07em;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: 40px; padding: .55rem 1.3rem;
  font-weight: 700; font-size: .9rem;
  cursor: pointer; border: 2px solid transparent;
  font-family: 'Roboto', sans-serif;
  transition: all .2s; text-decoration: none;
}

.btn-gold {
  background: var(--gold); color: var(--ink);
  border-color: var(--ink);
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-dark {
  background: var(--ink); color: var(--gold);
  border-color: var(--ink);
}
.btn-dark:hover { background: #2a2a2a; }

.btn-ghost {
  background: rgba(255,255,255,.12); color: white;
  border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   FORM ELEMENTS
============================================================ */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block; font-weight: 600; font-size: .85rem;
  color: #555; margin-bottom: .4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%; padding: .65rem .95rem;
  border: 2px solid #e2e2e2; border-radius: var(--radius);
  font-family: 'Roboto', sans-serif; font-size: .95rem;
  color: var(--ink); background: #fafafa; outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(247,183,49,.15);
  background: white;
}

.form-textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5,30,70,.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: white; color: var(--ink);
  border-radius: 16px;
  width: 100%; max-width: 720px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 72px rgba(0,0,0,.3);
  transform: translateY(20px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  padding: 2rem;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.modal-header h2 { font-size: 1.25rem; font-weight: 700; }

.modal-close-btn {
  background: #f2f2f2; border: none; border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0;
}
.modal-close-btn:hover { background: #e4e4e4; }
.modal-close-btn .material-symbols-outlined { font-size: 18px; color: #555; }

/* ============================================================
   TOAST
============================================================ */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--ink); color: var(--gold);
  padding: .8rem 1.4rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transform: translateY(80px); opacity: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   EMPTY STATE
============================================================ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 4rem 2rem;
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.empty-state h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }
.empty-state p { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1000px) {
  .navbar { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .navbar .btn { display: none; }
  .nav-menu-btn { display: flex; }
  .toolbar-row { padding: .75rem 1.25rem; }
  .content-grid { grid-template-columns: 1fr; padding: 0 1.25rem; }
  .page-header { padding: 2.5rem 1.25rem 2rem; }
}
