/* ================================
   RetroSuit — Documentation Page CSS
   ================================ */

/* --------- Root Variables --------- */
:root {
    --bg-dark: #0e0e12;
    --bg-card: #121212;
    --bg-accent: #1f1f27;
    --primary: #4f8cff;
    --secondary: #00d1b2;
    --text-main: #ffffff;
    --text-soft: #e0e0e0;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-light: 0 4px 14px rgba(0,0,0,0.3);
    --max-width: 1200px;
    --transition: 0.25s ease;
    --gap-section: 2rem;
    --font-base: "Poppins", sans-serif;
}

/* --------- Base Styles --------- */
body {
    font-family: var(--font-base);
    background: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

h1,h2,h3 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1.25rem;
    color: var(--text-main);
}

section {
    padding: 3.5rem 1.75rem;
    max-width: var(--max-width);
    margin: 0 auto var(--gap-section);
}

/* ================================
   Hero Section
   ================================ */
.features-hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    background: linear-gradient(180deg, #4f8cff20, transparent 80%);
    border-radius: 40px;
    margin-bottom: var(--gap-section);
}
.features-hero h1 {
    font-size: 2.8rem;
}
.features-hero p {
    max-width: 700px;
    margin: 2rem auto 0;
    font-size: 1.125rem;
    color: var(--text-soft);
}

/* ================================
   Search Input
   ================================ */
#doc-search {
    width: 100%;
    max-width: 450px;
    padding: 0.85rem 1.2rem;
    border-radius: 0.75rem;
    border: 1px solid #2a2a32;
    background: var(--bg-accent);
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    transition: border var(--transition), box-shadow var(--transition);
}
#doc-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.25);
    outline: none;
}

/* ================================
   Documentation Lists
   ================================ */
.doc-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.doc-list li {
    margin-bottom: 0.9rem;
    font-size: 1rem;
}

.doc-list li a {
    color: var(--text-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.doc-list li a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ================================
   Learn Section Cards (Optional)
   ================================ */
.learn-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    margin-bottom: var(--gap-section);
    box-shadow: var(--shadow-light);
}
.learn-content h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

/* ================================
   CTA Section
   ================================ */
.cta {
    text-align: center;
    padding: 3.5rem 2rem;
    background: linear-gradient(0deg, #4f8cff20, transparent 80%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
}

.cta h2 {
    margin-bottom: 1rem;
    font-size: 1.9rem;
}

.cta p {
    margin-bottom: 2rem;
}

.cta button {
    padding: 0.9rem 1.5rem;
    margin: 0.25rem;
    background: var(--primary);
    border: none;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cta .btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.15);
}

.cta button:hover {
    background: #366cd9;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(79,140,255,0.4);
}

.cta .btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* ================================
   Release Notes
   ================================ */
.learn-content ul.release-notes {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}
.learn-content ul.release-notes li {
    margin-bottom: 0.8rem;
}
.learn-content ul.release-notes li a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color var(--transition);
}
.learn-content ul.release-notes li a:hover {
    color: var(--primary);
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 900px) {
    .features-hero h1 { font-size: 2.4rem; }
    .features-hero p { font-size: 1rem; }
    .learn-content h2 { font-size: 1.55rem; }
}

@media (max-width: 768px) {
    .learn-section { padding: 2.25rem 1.25rem; }
    .cta { padding: 2.5rem 1.25rem; }
    .doc-list li { font-size: 0.95rem; }
}

/* ================================
   Buttons (for links and actions)
   ================================ */
   .btn,
   .btn-ghost {
       display: inline-block;
       padding: 0.8rem 1.5rem;
       border-radius: 10px;
       font-weight: 600;
       text-decoration: none;
       text-align: center;
       transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
       cursor: pointer;
   }
   
   /* Solid Button */
   .btn {
       background: var(--primary);
       color: #fff;
       box-shadow: 0 0 12px rgba(79,140,255,0.6), 0 0 24px rgba(79,140,255,0.3);
   }
   .btn:hover {
       opacity: 0.95;
       transform: translateY(-2px);
       box-shadow: 0 0 16px rgba(79,140,255,0.8), 0 0 32px rgba(79,140,255,0.45);
   }
   
   /* Ghost Button */
   .btn-ghost {
       border: 1px solid rgba(255,255,255,0.15);
       background: transparent;
       color: rgba(255,255,255,0.9);
       box-shadow: 0 0 10px rgba(255,255,255,0.05);
   }
   .btn-ghost:hover {
       background: rgba(255,255,255,0.06);
       transform: translateY(-1px);
       color: #fff;
       box-shadow: 0 0 14px rgba(255,255,255,0.15), 0 0 24px rgba(255,255,255,0.1);
   }
   