/* Footfay Content Generator — Brand Stylesheet */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #1a2b5f;
  --navy-light: #253a7a;
  --navy-dark: #111d42;
  --gold: #c5a55a;
  --gold-light: #d4ba7a;
  --gold-muted: #e8dcc3;
  --surface: #f8f9fc;
  --surface-card: #ffffff;
  --border: #e2e6ef;
  --text-primary: #1a1d26;
  --text-secondary: #5a6178;
  --text-muted: #8b91a8;
}

* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body {
  background: var(--surface);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── Navbar ── */
.fc-nav {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(26, 43, 95, 0.25);
  position: sticky;
  top: 0;
  z-index: 40;
}

.fc-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.fc-nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}

.fc-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.fc-brand img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.fc-brand-text {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.fc-brand-sub {
  font-weight: 400;
  font-size: 0.625rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-top: -2px;
}

.fc-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fc-nav-icon {
  display: inline;
  vertical-align: -2px;
  margin-right: 4px;
}

.fc-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
  border: none;
  background: none;
  cursor: pointer;
}

.fc-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.fc-nav-link.active {
  color: #ffffff;
  background: rgba(197, 165, 90, 0.2);
}

/* ── Dropdown Menus ── */
.fc-dropdown {
  position: relative;
}

.fc-dropdown-trigger {
  position: relative;
}

.fc-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 0.375rem;
  z-index: 50;
}

.fc-dropdown-menu.fc-dropdown-right {
  left: auto;
  right: 0;
}

.fc-dropdown-menu.open {
  display: block;
  animation: fc-dropdown-in 0.15s ease;
}

@keyframes fc-dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.fc-dropdown-header {
  padding: 0.5rem 0.75rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.fc-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.1s ease;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.fc-dropdown-item:hover {
  background: var(--surface);
}

.fc-dropdown-item.active {
  background: rgba(26, 43, 95, 0.08);
  color: var(--navy);
  font-weight: 600;
}

.fc-dropdown-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.fc-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.375rem 0;
}

.fc-dropdown-danger {
  color: #dc2626;
}
.fc-dropdown-danger svg {
  color: #dc2626;
}

/* ── User Button ── */
.fc-user-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.fc-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(197, 165, 90, 0.2);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 165, 90, 0.35);
  transition: all 0.15s ease;
}

.fc-user-btn:hover .fc-user-avatar {
  background: rgba(197, 165, 90, 0.35);
  border-color: var(--gold);
}

/* ── Language Toggle ── */
.fc-lang-toggle {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(197, 165, 90, 0.15);
  border: 1px solid rgba(197, 165, 90, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.04em;
}

.fc-lang-toggle:hover {
  background: rgba(197, 165, 90, 0.3);
  border-color: var(--gold);
}

/* ── Desktop/Mobile visibility ── */
.fc-desktop-only { display: flex; }
.fc-mobile-only { display: none !important; }

.fc-mobile-top {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}

/* ── Main Container ── */
.fc-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .fc-main {
    padding: 1rem 0.75rem;
  }
}

/* ── Page Headers ── */
.fc-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.fc-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.fc-page-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Cards ── */
.fc-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

.fc-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ── Buttons ── */
.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.fc-btn-primary {
  background: var(--navy);
  color: #ffffff;
}
.fc-btn-primary:hover { background: var(--navy-light); }

.fc-btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.fc-btn-gold:hover { background: var(--gold-light); }

.fc-btn-success {
  background: #059669;
  color: #ffffff;
}
.fc-btn-success:hover { background: #047857; }

.fc-btn-danger {
  background: #dc2626;
  color: #ffffff;
}
.fc-btn-danger:hover { background: #b91c1c; }

.fc-btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.fc-btn-outline:hover {
  background: var(--surface);
  border-color: #c5cad6;
}

.fc-btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
}

/* ── Drop Zone ── */
.fc-dropzone {
  border: 2px dashed #c5cad6;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  background: var(--surface-card);
  transition: all 0.2s ease;
}

.fc-dropzone.drag-over,
#drop-zone.drag-over {
  border-color: var(--gold);
  background: #fefcf5;
  box-shadow: 0 0 0 4px rgba(197, 165, 90, 0.15);
}

.fc-dropzone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-dropzone-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-training { background: #dbeafe; color: #1e40af; }
.badge-match { background: #fef3c7; color: #92400e; }
.badge-facilities { background: #d1fae5; color: #065f46; }
.badge-spotlight { background: #ede9fe; color: #5b21b6; }
.badge-behind-scenes { background: #fce7f3; color: #9d174d; }
.badge-other { background: #f0f1f4; color: #4b5068; }

/* ── Status ── */
.status-pending_review { color: #d97706; }
.status-approved { color: #059669; }
.status-rejected { color: #dc2626; }
.status-published { color: var(--navy); }
.status-failed { color: #dc2626; }

/* ── Filter Pills ── */
.fc-filter-pill {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fc-filter-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.fc-filter-pill.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* ── Tables ── */
.fc-table {
  width: 100%;
  font-size: 0.8125rem;
}

.fc-table thead {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

.fc-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.fc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.fc-table tbody tr:hover {
  background: #f8f9fc;
}

.fc-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Review Cards ── */
.review-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.review-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.review-card img,
.review-card video {
  max-height: 220px;
  object-fit: cover;
  width: 100%;
}

/* ── Modal ── */
.fc-modal-backdrop {
  background: rgba(17, 29, 66, 0.6);
  backdrop-filter: blur(4px);
}

.fc-modal-panel {
  background: var(--surface-card);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border: 1px solid var(--border);
}

/* ── Form Inputs ── */
.fc-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  transition: all 0.15s ease;
  background: var(--surface-card);
}

.fc-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 43, 95, 0.1);
}

.fc-input::placeholder {
  color: var(--text-muted);
}

.fc-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .fc-nav-inner {
    flex-direction: column;
    height: auto;
    padding: 0.5rem 0.75rem 0;
    gap: 0;
  }

  .fc-desktop-only { display: none !important; }
  .fc-mobile-only { display: flex !important; }

  .fc-nav-left { display: none; }
  .fc-nav-right { display: none; }

  .fc-nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: calc(100% + 1.5rem);
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .fc-nav-links::-webkit-scrollbar {
    display: none;
  }

  .fc-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }

  .fc-nav-link.active {
    border-bottom: 2px solid var(--gold);
    background: rgba(197, 165, 90, 0.12);
  }

  .fc-nav-link svg, .fc-nav-icon {
    display: none !important;
  }

  .fc-brand img {
    height: 28px;
    width: 28px;
  }

  .fc-brand-text {
    font-size: 0.9375rem;
  }

  .fc-brand-sub {
    font-size: 0.6rem;
  }

  .fc-dropzone {
    padding: 1.5rem 1rem;
  }

  .fc-page-title {
    font-size: 1.25rem;
  }

  .fc-page-subtitle {
    font-size: 0.75rem;
  }

  .fc-page-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  #items {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .fc-page-header[style*="display:flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .fc-page-header > div:last-child {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    padding-bottom: 0.25rem;
  }

  .fc-filter-pill {
    padding: 0.3rem 0.625rem;
    font-size: 0.6875rem;
    flex-shrink: 0;
  }

  .review-card [style*="display:flex"][style*="gap:0.25rem"] {
    flex-wrap: wrap;
  }

  .fc-modal-panel {
    margin: 0.5rem !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .fc-btn {
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
  }

  .fc-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }

  #global-chat-panel button[id="global-chat-toggle"] span[style*="opacity:0.7"] {
    display: none;
  }
}

/* ── Footer accent ── */
.fc-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Animations ── */
@keyframes fc-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fc-animate-in {
  animation: fc-fade-in 0.3s ease;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #c5cad6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0a8bc; }
