/* ================================================================
# DACOG Search Engine – System Architecture
# File: guide-page.css
# Path: /static/css/guide-page.css
# Version: 3.0.0
# Description: Mathematical-Unit Ad Guide (Light/Hero Theme)
# ================================================================*/

/* 1. Base Container */
.guide-wrapper {
    padding-bottom: 3.125rem; /* 50px */
}

/* 2. Sidebar Navigation */
.guide-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 6.25rem; /* 100px */
    background-color: var(--dacog-bg-nav);
    border: 0.0625rem solid var(--dacog-border-color);
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    border-radius: 1rem;
    padding: 1.5rem;
    -webkit-box-shadow: var(--dacog-shadow-sm);
    -moz-box-shadow: var(--dacog-shadow-sm);
    box-shadow: var(--dacog-shadow-sm);
}

.guide-nav-link {
    color: var(--dacog-text-muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    -webkit-border-radius: 0.375rem;
    -moz-border-radius: 0.375rem;
    border-radius: 0.375rem;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.guide-nav-link:hover, .guide-nav-link.active {
    background-color: rgba(32, 201, 151, 0.1); /* Soft green */
    color: var(--dacog-accent-green);
}

/* 3. Main Content Sections (Theme-Aware Cards) */
.guide-section {
    background-color: var(--dacog-bg-nav);
    border: 0.0625rem solid var(--dacog-border-color);
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 1.875rem; /* 30px */
    -webkit-box-shadow: var(--dacog-shadow-sm);
    -moz-box-shadow: var(--dacog-shadow-sm);
    box-shadow: var(--dacog-shadow-sm);
    color: var(--dacog-text-main);
}

.guide-section h3 {
    font-weight: 800;
    color: var(--dacog-text-main);
    margin-bottom: 1.25rem;
    border-bottom: 0.125rem solid var(--dacog-border-color);
    padding-bottom: 0.9375rem; /* 15px */
}

/* Typography inside sections */
.guide-section p, .guide-section li {
    color: var(--dacog-text-muted);
    line-height: 1.8;
}

.guide-section strong {
    color: var(--dacog-text-main);
}

/* 4. Specification Table */
.spec-table {
    border-color: var(--dacog-border-color);
}
.spec-table th {
    background-color: var(--dacog-bg-base);
    color: var(--dacog-text-main);
    font-weight: 700;
    border-color: var(--dacog-border-color);
    padding: 1rem;
}
.spec-table td {
    color: var(--dacog-text-muted);
    border-color: var(--dacog-border-color);
    padding: 1rem;
}
.theme-hero .spec-table td strong, .theme-hero .spec-table td .fw-bold {
    color: #ffffff;
}

/* 5. Pro Tip Box */
.pro-tip {
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 0.25rem solid var(--dacog-accent-primary);
    padding: 0.9375rem 1.25rem;
    -webkit-border-radius: 0 0.5rem 0.5rem 0;
    -moz-border-radius: 0 0.5rem 0.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.25rem 0;
}

/* Nested Pricing Cards */
.pricing-card {
    padding: 1.5rem;
    border: 0.0625rem solid var(--dacog-border-color);
    -webkit-border-radius: 0.75rem;
    -moz-border-radius: 0.75rem;
    border-radius: 0.75rem;
    background-color: var(--dacog-bg-base);
    height: 100%;
}
.pricing-card h5 { color: var(--dacog-text-main); }

/* ==========================================================================
   6. MEDIA QUERIES (AFRICAN TARGET OPTIMIZATION)
   ========================================================================== */

@media screen and (max-width: 62em) { /* 992px */
    .guide-sidebar {
        position: relative;
        top: 0;
    }
    
    .guide-sidebar .nav {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 30em) { /* 480px */
    .guide-wrapper {
        padding-top: 1.5rem;
    }
    
    .guide-header h1 {
        font-size: 2rem;
    }
    
    .guide-section {
        padding: 1.5rem; /* Compress padding for mobile screens */
    }
    
    .guide-section h3 {
        font-size: 1.25rem;
    }
    
    .table-responsive {
        border: 0.0625rem solid var(--dacog-border-color);
        -webkit-border-radius: 0.5rem;
        border-radius: 0.5rem;
    }
}
