/* ==========================================================================
   MINECRAFT APK - Informational Gaming Portal Design System
   Pure CSS3 | Modern Light Theme | High Contrast | Crisp Aesthetics | Fast Loading
   ========================================================================== */

/* 1. CSS Custom Properties / Design Tokens (Light Mode Only) */
:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-color: #e2e8f0;
  --border-accent: #86efac;

  --accent-green: #16a34a;
  --accent-green-hover: #15803d;
  --accent-green-glow: rgba(22, 163, 74, 0.15);
  --accent-green-subtle: #f0fdf4;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 25px rgba(22, 163, 74, 0.12);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --max-width: 1240px;
}

/* 2. Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--accent-green-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 3. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none !important;
}

.brand-logo img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 6px rgba(22, 163, 74, 0.25));
}

.brand-logo span {
  background: linear-gradient(135deg, #0f172a 40%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-green);
  background: var(--accent-green-subtle);
}

.search-box-header {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.55rem 1rem 0.55rem 2.3rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  width: 190px;
  transition: all var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-green);
  background: #ffffff;
  width: 240px;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  pointer-events: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* 4. Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: var(--accent-green-subtle);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: #ffffff;
}

/* 5. Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-content h1 span {
  color: var(--accent-green);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.25rem;
}

.hero-specs-pill {
  display: flex;
  gap: 2rem;
  padding: 1.1rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.spec-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.hero-card-preview img {
  margin: 0 auto 1.5rem auto;
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 6px 12px rgba(22, 163, 74, 0.2));
}

.card-title {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* 6. Content Section & Cards */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 2.75rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 auto;
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-green-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

/* 7. Callouts & Alert Boxes */
.callout {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border-left: 4px solid var(--accent-green);
  background: var(--accent-green-subtle);
  border-top: 1px solid #dcfce7;
  border-right: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
}

.callout h4 {
  font-size: 1.1rem;
  color: #15803d;
  margin-bottom: 0.5rem;
}

.callout p {
  margin-bottom: 0 !important;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* 8. Tables (System Requirements, Specs) */
.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-custom th, .table-custom td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.96rem;
}

.table-custom th {
  background: #f1f5f9;
  color: var(--text-primary);
  font-weight: 700;
}

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

.table-custom tr:nth-child(even) {
  background: #f8fafc;
}

.table-custom td strong {
  color: var(--accent-green);
}

/* 9. Step-by-Step Installation Component */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.step-number {
  background: var(--accent-green);
  color: #ffffff;
  font-weight: 900;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.step-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-info p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* 10. FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: #f8fafc;
  color: var(--accent-green);
}

.faq-toggle-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  background: #f8fafc;
}

.faq-item.active .faq-answer {
  padding: 0 1.75rem 1.5rem 1.75rem;
  max-height: 800px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* 11. Articles & Blog Layout */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card .card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.article-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent-green);
}

.read-more-link {
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
}

.page-header {
  padding: 3.5rem 0 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-green);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 3rem;
  padding: 3.5rem 0;
}

.article-body {
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 2.5rem 0 1.2rem 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.9rem 0;
  color: var(--accent-green);
}

.article-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.article-body ul, .article-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.75rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.6rem;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-green);
  padding: 1.25rem 1.75rem;
  background: var(--accent-green-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

code {
  background: #f1f5f9;
  color: #15803d;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  color: #f8fafc;
}

.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  color: var(--accent-green);
}

.toc-list {
  list-style: none !important;
  padding: 0 !important;
}

.toc-list li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--accent-green);
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
  color: var(--text-primary);
}

/* 12. Newsletter Section */
.newsletter-card {
  background: linear-gradient(135deg, #dcfce7 0%, #f8fafc 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.newsletter-card h3 {
  font-size: 2rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.newsletter-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 0.85rem;
  max-width: 540px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* 13. Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.5rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1.1rem;
  max-width: 340px;
  line-height: 1.65;
}

.footer-column h4 {
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-disclaimer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.75rem;
  line-height: 1.6;
  background: #f8fafc;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* 14. Mobile & Responsive Layout Adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-widget {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 1.75rem;
    display: none;
    gap: 1rem;
  }
  
  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-specs-pill {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
