@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --font-main: 'Sora', sans-serif;
  --font-mono: ui-monospace, monospace;
  
  --bg-dark: #0f1430;
  --bg-light: #1a1f49;
  --bg-radial: rgba(124, 58, 237, 0.4);
  
  --surface-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.10);
  
  --text-primary: #ffffff;
  --text-muted: #aab0d4;
  --text-faint: #8a90c0;
  
  --accent-gold-start: #f4c45a;
  --accent-gold-end: #fbbf24;
  --accent-violet-start: #8b5cf6;
  --accent-violet-end: #d946ef;
  
  --gold-gradient: linear-gradient(135deg, var(--accent-gold-start), var(--accent-gold-end));
  --violet-gradient: linear-gradient(135deg, var(--accent-violet-start), var(--accent-violet-end));
  
  --cat-hero-gradient: linear-gradient(135deg, #241a4d, #3a2270);
  --cat-stripe-texture: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,0) 12px 24px);
  
  --gold-tint-bg: rgba(244, 196, 90, 0.16);
  --gold-tint-border: rgba(244, 196, 90, 0.4);
  --divider-color: rgba(255, 255, 255, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: 
    radial-gradient(120% 80% at 50% -10%, var(--bg-radial), transparent 60%),
    linear-gradient(165deg, var(--bg-dark), var(--bg-light));
  background-attachment: fixed;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography Scale */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-violet-gradient {
  background: var(--violet-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Nav */
.top-nav {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--divider-color);
  gap: 30px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.logo-star {
  color: var(--accent-gold-start);
}

.search-pill {
  flex: 1;
  max-width: 430px;
  position: relative;
}
.search-pill input {
  width: 100%;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 11px 20px 11px 45px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.search-pill input::placeholder {
  color: var(--text-faint);
}
.search-pill input:focus {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
}
.search-pill i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 1.2rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}
.btn-solid {
  background: var(--violet-gradient);
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.6);
}
.btn-outline {
  background: transparent;
  color: var(--accent-gold-start);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--accent-gold-start);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover {
  background: rgba(244, 196, 90, 0.1);
  transform: translateY(-2px);
}

/* Mobile elements hidden on desktop */
.mobile-icons, .mobile-menu-dropdown, .mobile-cta-row {
  display: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 70px 20px 50px;
  max-width: 800px;
  margin: 0 auto;
}
.hero .eyebrow {
  color: var(--accent-gold-start);
  margin-bottom: 15px;
}
.hero h1 {
  font-weight: 800;
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 15px;
}
.hero p {
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 40px;
}
.stat-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
}
.stat-card .eyebrow {
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}
.stat-card .number {
  font-weight: 800;
  font-size: 38px;
  margin: 0;
  line-height: 1;
}
.stat-card .number.gold {
  color: var(--accent-gold-start);
}

/* Time Tiles */
.time-tiles {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.time-tile {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  flex: 1;
}
.time-tile.gold {
  background: var(--gold-tint-bg);
  color: var(--accent-gold-start);
}
.time-tile .val {
  font-weight: 800;
  font-size: 24px;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.time-tile .lbl {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.time-tile.gold .lbl {
  color: var(--accent-gold-start);
  opacity: 0.8;
}

/* Categories */
.categories-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}
.categories-header h2 {
  font-weight: 700;
  font-size: 28px;
  margin: 0;
}
.categories-header span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.25s;
  display: block;
}
.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px -20px rgba(124,58,237,.55);
  border-color: rgba(244,196,90,.5);
}

.cat-img-block {
  height: 188px;
  background: var(--cat-hero-gradient), var(--cat-stripe-texture);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-img-block .big-num {
  font-weight: 800;
  font-size: 80px;
  color: rgba(255,255,255,0.06);
  position: absolute;
}
.cat-img-block .img-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: absolute;
  bottom: 12px;
  left: 20px;
  font-weight: 600;
}

.cat-info {
  padding: 22px;
}
.cat-info h3 {
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 8px;
}
.cat-info p {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.cat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.cat-footer .count {
  color: var(--text-faint);
}
.cat-footer .view-link {
  color: var(--accent-gold-start);
  font-weight: 600;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px;
  color: var(--text-faint);
  font-size: 14px;
  border-top: 1px solid var(--divider-color);
  margin-top: 40px;
}

/* Utilities */
.expired-text {
  color: var(--text-faint);
  font-size: 18px;
  font-weight: 600;
}

/* Search results dropdown override */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-light);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-top: 5px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.search-results.show {
  display: block;
}
.search-item {
  padding: 12px 20px;
  border-bottom: 1px solid var(--divider-color);
}
.search-item:last-child {
  border-bottom: none;
}
.search-item a {
  color: var(--text-primary);
  font-size: 14px;
}
.search-item a:hover {
  color: var(--accent-gold-start);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .top-nav {
    flex-wrap: wrap;
    padding: 8px 18px 12px;
    justify-content: space-between;
  }
  
  .search-pill {
    order: 3;
    max-width: 100%;
    margin-top: 15px;
    flex: 0 0 100%;
  }
  
  .mobile-icons {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .mobile-icons i {
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
  }
  .nav-actions { display: none; }
  
  @keyframes popIn {
    0% { opacity: 0; transform: scale(0.95); }
    50% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
  }

  .mobile-menu-dropdown {
    position: fixed;
    top: 70px;
    left: 18px;
    right: 18px;
    width: auto;
    background: var(--bg-light);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    z-index: 9999;
  }
  .mobile-menu-dropdown.active {
    visibility: visible;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  
  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid var(--divider-color);
  }
  .menu-header .eyebrow {
    color: var(--text-faint);
  }
  .menu-header i {
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
  }
  
  .mobile-menu-dropdown a {
    padding: 18px 25px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--divider-color);
  }
  .mobile-menu-dropdown a:last-child {
    border-bottom: none;
  }
  .mobile-menu-dropdown a .arrow {
    color: var(--text-faint);
    font-weight: 400;
  }
  .mobile-menu-dropdown a.gold-link {
    color: var(--accent-gold-start);
  }
  .mobile-menu-dropdown a.gold-link .arrow {
    color: var(--accent-gold-start);
  }

  /* Hero */
  .hero {
    padding: 26px 22px 18px;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }
  .hero p {
    font-size: 13px;
  }
  
  /* Mobile CTA Row */
  .mobile-cta-row {
    display: flex;
    gap: 15px;
    padding: 0 18px;
    margin-bottom: 26px;
  }
  .mobile-cta-row .btn-solid, .mobile-cta-row .btn-outline {
    flex: 1;
    padding: 13px;
    justify-content: center;
    font-size: 14px;
  }

  /* Stats Row */
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    padding: 0 18px;
    margin-bottom: 26px;
  }
  .stat-card {
    padding: 16px;
    border-radius: 16px;
  }
  .stat-card .eyebrow {
    font-size: 10px;
  }
  .stat-card .number {
    font-size: 28px;
  }
  .time-card {
    grid-column: 1 / -1;
  }
  .time-tile .val {
    font-size: 20px;
  }
  
  /* Categories Section */
  .categories-section {
    padding: 0 18px 40px;
  }
  .categories-header h2 {
    font-size: 20px;
  }
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .category-card {
    border-radius: 16px;
  }
  .cat-img-block {
    height: 130px;
  }
  .cat-info h3 {
    font-size: 18px;
  }
  .cat-info p {
    font-size: 13px;
  }
}
.peks-logo { height: 36px !important; }
@media (max-width: 600px) { .peks-logo { height: 24px !important; } }
