/* ============================================
   RetroSuit — Documentation Page CSS
   Based on Resources Page Styles
   ============================================ */

/* ---------- Root Variables ---------- */
:root {
    --bg-dark: #0e0e12;
    --bg-card: #121212;
    --bg-accent: #1f1f27;
    --primary: #4f8cff;
    --secondary: #00d1b2;
    --text-main: #ffffff;
    --text-soft: #d7d7d7;
    --radius: 14px;
    --shadow-light: 0 4px 14px rgba(0, 0, 0, 0.3);
    --max-width: 1200px;
    --transition: 0.25s ease;
    --font-base: "Poppins", sans-serif;
}

/* ---------- Base ---------- */
body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-base);
    margin: 0;
    padding: 0;
}

section {
    padding: 3.5rem 1.75rem;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
}

h1, h2, h3 {
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--text-main);
}

/* ============================================
   Hero Section
   ============================================ */
.features-hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    background: linear-gradient(180deg, #4f8cff20, transparent 80%);
    border-radius: 40px;
    margin-bottom: 2rem;
}

.features-hero h1 {
    font-size: 2.8rem;
}

.features-hero p {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 700px;
    margin: 2rem auto 0;
}

/* ============================================
   Documentation Search
   ============================================ */
#doc-search {
    width: 100%;
    max-width: 450px;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #2a2a32;
    background: var(--bg-accent);
    color: var(--text-main);
    font-size: 1rem;
    margin: 0 auto 2.5rem;
    display: block;
    box-sizing: border-box;
    transition: border var(--transition), box-shadow var(--transition);
}

#doc-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.25);
}

/* ============================================
   Documentation Sections
   ============================================ */
.learn-section {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.learn-content h2 {
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

/* ============================================
   Documentation Lists
   ============================================ */
.doc-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.doc-list li {
    margin-bottom: 0.9rem;
}

.doc-list li a {
    color: var(--text-soft);
    font-size: 1rem;
    text-decoration: none;
    padding-bottom: 3px;
    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);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    text-align: center;
    background: linear-gradient(0deg, #4f8cff20, transparent 80%);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
}

.cta h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.cta p {
    margin-bottom: 2rem;
    color: var(--text-soft);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 0 14px rgba(79,140,255,0.6);
}

.btn-ghost {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-left: 1rem;
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--primary);
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.btn-ghost:hover {
    background: rgba(79,140,255,0.1);
    transform: translateY(-2px);
}

/* ============================================
   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.5rem; }
}

@media (max-width: 768px) {
    .learn-section { padding: 2rem 1.25rem; }
}
