/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f0fa;
    --accent: #FFD700;
    --text-dark: #2d3748;
    --text-light: #e2e8f0;
    --text-muted: #a0aec0;
    --bg-dark: #1a202c;
    --bg-panel: #2d3748;
    --bg-light: #374151;
    --white: #ffffff;
    --border-light: #4a5568;
    --border-dark: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --positions-panel-height: 540px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
.site-header {
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-dark);
}

.header-container {
  max-width: calc((100vh - 80px) * 1.4);
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.site-logo a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-item a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.3s;
  position: relative;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--accent);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background: #0066cc; /* solid blue matching new primary */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/header_overlay.svg') no-repeat center center;
  background-size: 80vw;
  opacity: 0.5;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.15)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}
.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-lg);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Information Section */
.info-section {
  padding: 5rem 0;
  background: var(--bg-dark);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--bg-panel);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-dark);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.info-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Articles Section (Listing/Cards) */
.articles-section {
  padding: 5rem 0;
  background: var(--bg-panel);
}

.articles-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.articles-scroll::-webkit-scrollbar {
  height: 8px;
}

.articles-scroll::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 10px;
}

.articles-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.article-card {
  flex: 0 0 350px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border-dark);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.article-card .article-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-image-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.article-card .article-content {
  padding: 1.5rem;
}

.article-card .article-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.article-card .article-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.article-card .article-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.article-card .article-cta:hover {
  background: var(--primary-dark);
  transform: translateX(5px);
}

/* Individual Article Page */
.content.article {
  padding: 0 0 3rem 0;
}

.content.article .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3), 4px 0 10px rgba(0, 0, 0, 0.3);
}

.content.article .article-image {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.content.article .article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--accent);
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-category {
  font-weight: 600;
}

.article-category a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.article-category a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.article-author {
  font-weight: 600;
}

.article-date {
  font-style: italic;
}

.content.article .article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.content.article .article-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.content.article .article-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.content.article .article-content p {
  margin-bottom: 1.2rem;
}

.content.article .article-content ul,
.content.article .article-content ol {
  margin-bottom: 1.2rem;
  padding-left: 2rem;
}

.content.article .article-content li {
  margin-bottom: 0.5rem;
}

.content.article .article-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s;
}

.content.article .article-content a:hover {
  color: var(--primary-dark);
}

.content.article .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-references {
  background: var(--bg-dark);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.article-references h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.article-references ul,
.article-references ol {
  padding-left: 1.5rem;
}

.article-references li {
  margin-bottom: 0.8rem;
}

.article-references a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.article-references a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.back-link:hover {
  background: var(--primary-dark);
  transform: translateX(-5px);
  box-shadow: var(--shadow-lg);
}

/* Footer Styles */
.site-footer {
  background: #0f1419;
  color: var(--text-muted);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-dark);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

/* Restricted Content Styles */
.restricted-page {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.access-badge {
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-public {
    background: #e2e8f0;
    color: #4a5568;
}

.badge-member {
    background: #bee3f8;
    color: #2c5282;
}

.badge-premium {
    background: #fbd38d;
    color: #744210;
}

.badge-vip {
    background: #fc8181;
    color: #742a2a;
}

.restricted-content {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border: 1px solid var(--border-dark);
}

.access-denied {
    text-align: center;
    padding: 4rem 2rem;
}

.access-denied h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.access-denied p {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 2rem;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.member-info {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border-dark);
}

.member-info p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  
  .main-nav.active {
    max-height: 400px;
  }
  
  .nav-menu {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .nav-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-dark);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-scroll {
    padding: 1rem 1rem 1rem 0;
  }
  
  .article-card {
    flex: 0 0 300px;
  }
  
  /* Article Page Responsive */
  .content.article {
    padding: 2rem 1rem;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .content.article .article-content {
    font-size: 1rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
