/* ================================
   RetroSuit — Help Center 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 1rem;
    color: var(--text-main);
}

section {
    padding: 3rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto var(--gap-section);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    text-align: center;
    background: linear-gradient(180deg, #4f8cff20, transparent 80%);
    border-radius: 40px;
    padding: 5rem 1.5rem 4rem;
    box-shadow: var(--shadow-light);
}

.hero h1 {
    font-size: 2.8rem;
}

.hero p {
    max-width: 700px;
    margin: 1.5rem auto 2rem;
    font-size: 1.125rem;
    color: var(--text-soft);
}

#search-bar {
    width: 100%;
    max-width: 400px;
    padding: 0.85rem 1.2rem;
    border-radius: 0.75rem;
    border: 1px solid #2a2a32;
    background: var(--bg-accent);
    color: var(--text-main);
    font-size: 1rem;
    transition: border var(--transition), box-shadow var(--transition);
}

#search-bar:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,140,255,0.25);
    outline: none;
}

/* ================================
   Featured Articles
   ================================ */
.featured-articles h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.article-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.article-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    background: var(--primary);
    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), 0 0 28px rgba(79,140,255,0.3);
}

.btn-ghost {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(79,140,255,0.4);
}

/* ================================
   Support Options Section
   ================================ */
.support-options {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-light);
}

.support-options h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.support-options p {
    color: var(--text-soft);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .featured-articles h2 { font-size: 1.55rem; }
    .support-options h2 { font-size: 1.55rem; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 1rem 3rem; }
    .featured-articles .article-list { grid-template-columns: 1fr; }
    .support-options { padding: 2rem 1rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-columns { flex-direction: column; gap: 1.25rem; }
}

/* ================================
   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);
   }
   
   /* ================================
   Popular Guide Categories Section
   ================================ */

.guide-categories {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3.5rem 2rem;
    box-shadow: var(--shadow-light);
    text-align: center;
}

.guide-categories h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.guide-categories p {
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
}

/* Grid Layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    max-width: var(--max-width);
    margin: 0 auto 2.5rem;
}

/* Category Cards */
.category-card {
    display: block;
    padding: 1.75rem 1.5rem;
    background: var(--bg-accent);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: 1px solid rgba(255,255,255,0.07);
}

.category-card:hover {
    transform: translateY(-6px);
    background: #1b1b22;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.category-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* Extra Buttons */
.extra-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Disabled Button Styling */
.btn-ghost.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .guide-categories {
        padding: 2.5rem 1.25rem;
    }

    .category-card {
        padding: 1.5rem;
    }
}
