/* 1. Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0f;
  color: #c8c8d0;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #fff;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* 2. Top Bar / Header */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #f3d382, #d4a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 25px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #a0a0ab;
  position: relative;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a853;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* 3. Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 40px; /* padding-top > 80px to account for header */
}

/* 4. Hero Section */
.hero-section {
  margin-bottom: 40px;
}
.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 15px;
  letter-spacing: -1px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #888893;
  margin-bottom: 25px;
}
.hero-meta-author {
  color: #d4a853;
  font-weight: 600;
}
.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 5. Article Container */
.article-container {
  background: #12121a;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 6. Article Sections */
.article-section {
  display: none;
}
.article-section.visible {
  display: block;
  animation: fadeIn 0.5s ease-out;
}
.article-section p {
  font-size: 17px;
  line-height: 1.8;
  color: #c8c8d0;
  margin-bottom: 24px;
}

/* 7. Card Numbers */
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(212, 168, 83, 0.1);
  color: #d4a853;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(212, 168, 83, 0.3);
}

/* 8. Gate Wall & Swipe Button */
.gate-wall {
  position: relative;
  padding: 40px 0;
  text-align: center;
  margin-top: 20px;
}
.gate-blur {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(18, 18, 26, 0), #12121a);
  pointer-events: none;
}
.reveal-btn {
  position: relative;
  z-index: 20;
  background: rgba(212, 168, 83, 0.05);
  border: 1px solid #d4a853;
  color: #d4a853;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.1);
}
.reveal-btn:hover {
  background: rgba(212, 168, 83, 0.15);
  box-shadow: 0 0 25px rgba(212, 168, 83, 0.3);
  transform: translateY(-2px);
}
.reveal-icon {
  font-size: 20px;
}
.reveal-text {
  letter-spacing: 0.5px;
}
.reveal-counter {
  background: #d4a853;
  color: #0a0a0f;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* 9. Ad Containers */
.top-ad-container, .inline-ad-box, .ad-placeholder-container, .ezoic-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: #0d0d14;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.ad-label {
  font-size: 11px;
  color: #555561;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

/* 10. Sidebar */
.sidebar {
  display: block;
}
.sidebar-sticky-wrapper {
  position: sticky;
  top: 90px;
}
.sidebar-widget {
  background: #12121a;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-widget h3 {
  font-size: 16px;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 11. Mobile Sticky Ad */
.mobile-sticky-ad {
  display: none;
}

/* 12. Progress Bar */
.progress-bar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 998;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4a853, #f3d382);
  transition: width 0.3s ease;
}

/* 13. Homepage Styles */
.hero-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 50px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 40px 40px;
  background: linear-gradient(to top, rgba(10, 10, 15, 1), rgba(10, 10, 15, 0));
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.article-card {
  background: #12121a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-category {
  display: inline-block;
  background: rgba(212, 168, 83, 0.1);
  color: #d4a853;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
  align-self: flex-start;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.4;
}
.card-excerpt {
  font-size: 14px;
  color: #888893;
  margin: 0 0 20px;
  line-height: 1.6;
  flex: 1;
}
.card-meta {
  font-size: 12px;
  color: #666673;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 15px;
}

/* 14. Footer */
.site-footer {
  background: #0d0d14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 20px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul a {
  color: #888893;
  font-size: 14px;
}
.footer-col ul a:hover {
  color: #d4a853;
}
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #555561;
  font-size: 13px;
}

/* 15. Responsive */
@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }
  .sidebar {
    display: none;
  }
  .mobile-sticky-ad {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #000;
    z-index: 999;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .progress-bar-container {
    bottom: 60px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 480px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* 16. Animations */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(212, 168, 83, 0.1); }
  50% { transform: scale(1.02); box-shadow: 0 0 25px rgba(212, 168, 83, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(212, 168, 83, 0.1); }
}
.reveal-btn {
  animation: pulse 2.5s infinite;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ADDITIONAL HOMEPAGE & ARTICLE STYLES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-banner {
  display: block;
  background-size: cover;
  background-position: center;
}
.hero-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 40px 40px;
  background: linear-gradient(to top, rgba(10, 10, 15, 1), rgba(10, 10, 15, 0));
}
.hero-banner-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 12px 0;
}
.category-badge {
  display: inline-block;
  background: rgba(212, 168, 83, 0.15);
  color: #d4a853;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero-excerpt {
  font-size: 16px;
  color: #a0a0ab;
  margin: 10px 0;
  line-height: 1.6;
}
.article-meta {
  font-size: 13px;
  color: #666673;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 30px;
}
.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 10px;
  line-height: 1.4;
}
.card-content p {
  font-size: 14px;
  color: #888893;
  margin: 0 0 15px;
  line-height: 1.6;
  flex: 1;
}
.articles-section {
  padding: 20px 0 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.brand-col p {
  color: #888893;
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
}

/* Article page specific */
.hero-section h1 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}
.hero-image, .article-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.meta {
  font-size: 14px;
  color: #888893;
  margin: 15px 0 30px;
}
.article-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hero-banner { height: 300px; }
  .hero-banner-content h2 { font-size: 24px; }
  .hero-banner-content { padding: 30px 20px 20px; }
  .hero-section h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* Mobile Menu */
.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links.active {
        display: flex;
    }
}
