/* CSS Variables for Theme Colors */
:root {
    --primary-color: #2b9348;
    --secondary-color: #0466c8;
    --accent-color: #ffd166;
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;

}

p + p {
  margin-top: 1.5rem;
}

h2{
    margin-top: 2rem;
    margin-bottom: 10px;
}
h4 {
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Header and Navigation */
header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-brand .logo {
  height: 60px;
  width: auto;
  display: block;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.tagline {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hide toggle on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-color);
  cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Mobile overrides */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: 2;
    z-index: 200;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 66.66%;
    height: 100%;
    background: var(--bg-color);
    padding: 2rem 1rem;
    gap: 1rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 150;
  }

  .nav-menu.open {
    right: 0;
  }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    border-color: var(--accent-color);
    border-radius: 9999px;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
    border-radius: 9999px;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-tertiary {
  background: #f0f0f0;
  color: #333;
  border-radius: 9999px;
}

.btn-tertiary:hover {
  background: #e0e0e0;
  transform: scale(1.05);
  color: var(--primary-color);
}

/* Content Section */
.content {
    padding: 2rem 0;
}

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

.content-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.content-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin-top: 2rem;
}

.disclaimer p {
    margin: 0;
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}
footer a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: var(--light-gray);
}

/* Code blocks */
code {
    background-color: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

pre {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 2rem 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Loading and Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* From Uiverse.io by Madflows */ 
.button {
  display: inline-flex;           /* prevents full width */
  align-items: center;
  gap: 0.35em;
  padding: 1em;
  color: #fff;
  text-decoration: none;          /* removes underline */
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 2em;
  border: 1px solid transparent;
  line-height: 1;
  background: linear-gradient(90deg,var(--primary-color), var(--secondary-color));
  box-shadow: 0 0.7em 1.5em -0.5em hsla(249, 62%, 51%, 0.745);
  transition: transform 0.3s, border-color 0.3s;
  margin-top: 20px;
}

.button__icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}

.button:hover {
  border-color: #f4f5f2;
  text-decoration: none;   /* keeps underline from reappearing */
}

.button:active {
  transform: scale(0.98);
  box-shadow: 0 0.5em 1.5em -0.5em hsla(249, 62%, 51%, 0.745);
}






/* Downloads Section */
.downloads {
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f7fa, #e4ebf7);
  font-family: "Inter", sans-serif;
}

.downloads h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  margin-top: 0px;
  color: #222;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch;
}

/* Main Mod Card (first one, full width) */
.download-card.main-card {
  grid-column: 1 / -1;
  padding: 40px 30px;
  border: 2px solid #14c6f3;
  background: #fdfefe;
  text-align: center;
  margin-bottom: 20px;
    margin-top: 20px;
}

.download-card.main-card h3 {
  font-size: 1.6rem;
  background: linear-gradient(
    90deg, 
    var(--primary-color), 
    #2b9348, 
    var(--secondary-color)
  );
  -webkit-background-clip: text; /* for Safari/Chrome */
  -webkit-text-fill-color: transparent;
  background-clip: text;         /* standard */
  color: transparent;            /* fallback */
}

.download-card.main-card h1 {
  font-size: 1.6rem;
  background: linear-gradient(
    90deg, 
    var(--primary-color), 
    #2b9348, 
    var(--secondary-color)
  );
  -webkit-background-clip: text; /* for Safari/Chrome */
  -webkit-text-fill-color: transparent;
  background-clip: text;         /* standard */
  color: transparent;            /* fallback */
}

.content h1 {
  font-size: 2rem; /* adjust size as you like */
  background: linear-gradient(
    90deg, 
    var(--primary-color), 
    #2b9348, 
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem; /* spacing under heading */
}



.download-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.download-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #333;
}

.btn-primary {
  background: #f2b542;
  color: #fff;
  border-color: #fff;
}

.btn-primary:hover {
  background: #0fa4cc;
  transform: scale(1.05);
}



/* Responsive */
@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
  .download-card.main-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}



/* FAQ Section */
.faq {
  padding: 20px 20px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  outline: none;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f5f5f5;
}

/* Arrow */
.faq-question::after {
  content: "▼";
  font-size: 14px;
  transition: transform 0.3s;
}
.faq-question.active::after {
  transform: rotate(180deg);
}

/* ... other CSS is the same ... */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  border-left: 3px solid #14c6f3;
  border-radius: 0 0 8px 8px;
  padding: 0 20px; /* Keep horizontal padding */
  opacity: 0;
  
  /* Unify all transitions to the same duration and timing function */
  transition: max-height 0.3s ease, padding 0.4s ease, opacity 0.3s ease;
}

.faq-answer.open {
  /* Use a fixed, large max-height */
  max-height: 500px;
  opacity: 1;
}

/* NEW: Inner element for padding */
.faq-answer-inner {
  padding-top: 0;
  padding-bottom: 0;
  transition: padding 0.4s ease; /* Transition the padding here */
}

.faq-answer.open .faq-answer-inner {
  padding-top: 15px;
  padding-bottom: 15px;
}


.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* each grid item styled like a card */
.install-grid .content-section,
.dependency-item {
  background: linear-gradient(135deg, #f5f7fa, #e4ebf7);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  min-width: 0;        /* 👈 important inside grid */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* each grid item styled like a card */
.content-grid .content-section {
  background: linear-gradient(135deg, #f5f7fa, #e4ebf7);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  min-width: 0;        /* important inside grid */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* headings inside cards */
.content-grid .content-section h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* responsive for small screens */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* headings inside */
.install-grid .content-section h2,
.dependency-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* responsive */
@media (max-width: 768px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
}

/* flex header with title + button */
.dependency-item .dependency-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dependency-item .dependency-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

/* keep button neat */
.dependency-item .dependency-header .button {
  margin-top: 0px;
}

/* make two-column grid */
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left = text wider, right = buttons */
  gap: 2rem;
  align-items: start; /* keeps top aligned */
}

/* space buttons vertically */
.requirements-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* make sure lists look clean */
.requirements-text h2 {
  margin-bottom: 10px;
  margin-top: 0px;
}

/* responsive: stack on small screens */
@media (max-width: 768px) {
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  .requirements-buttons {
    margin-top: 1rem;
  }
}

/* reusable grid layout */
.troubleshoot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* make items look clean */
.troubleshoot-grid > div {
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* responsive fallback */
@media (max-width: 768px) {
  .troubleshoot-grid {
    grid-template-columns: 1fr;
  }
}




.update-info, .update-category, .compatibility-info, .troubleshoot-updates {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}

.update-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 equal columns */
  gap: 1.5rem;
}


.checkbox-label {
  display: flex;
  gap: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}



/* Grid layout */
.grid-layout {
  display: grid;
  grid-template-columns: 250px 1fr; /* sidebar + main content */
  gap: 2rem;
}

/* Sidebar */
.sidebar {
  background: #f5f7fa;
  padding: 1rem;
  border-radius: 12px;
  position: sticky;
  top: 100px; /* stays visible when scrolling */
  height: fit-content;
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 0.6rem;
}

.sidebar ul li a {
  color: var(--primary-color, #2b9348);
  text-decoration: none;
  font-weight: 500;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}

/* Policy content */
.policy-content h1 {
  font-size: 2rem;
  background: linear-gradient(90deg, #2b9348, #14c6f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.policy-content .content-section {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #f5f7fa, #e4ebf7);
  padding: 1.5rem;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .grid-layout {
    grid-template-columns: 1fr; /* stack */
  }
  .sidebar {
    position: relative;
    top: auto;
    margin-bottom: 2rem;
  }
}
