﻿/* ==============================================
   Cyber Hygiene Templates - CSS Styles
   ============================================== */

/* --- CSS Variables --- */
:root {
    --ch-primary-blue: #1a56db;
    --ch-secondary-blue: #3b82f6;
    --ch-primary-dark: #1e3a8a;
    --ch-accent: #06b6d4;
    --ch-light-blue: #dbeafe;
    --ch-white: #ffffff;
    --ch-light-gray: #f8fafc;
    --ch-medium-gray: #e2e8f0;
    --ch-dark-gray: #64748b;
    --ch-text: #334155;
    --ch-border: #e2e8f0;
    --ch-success: #10b981;
    --ch-warning: #f59e0b;
    --ch-danger: #ef4444;
}

/* --- Base Styles --- */
.ch-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--ch-text);
    line-height: 1.6;
}

/* --- Page Header --- */
.ch-page-header {
    background: var(--ch-white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--ch-medium-gray);
    margin-bottom: 30px;
}

.ch-page-title {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: var(--ch-primary-dark);
    line-height: 1.2;
}

.ch-page-subtitle {
    font-size: 1.2rem;
    color: var(--ch-dark-gray);
    max-width: 700px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* --- Alert Banner --- */
.ch-alert-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    color: var(--ch-text);
}

    .ch-alert-banner strong {
        color: var(--ch-danger);
    }

.ch-alert-icon {
    color: var(--ch-danger);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* --- Content Sections --- */
.ch-content-section {
    margin-bottom: 60px;
}

.ch-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ch-border);
}

.ch-section-icon {
    width: 50px;
    height: 50px;
    background: var(--ch-light-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ch-primary-dark);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ch-section-title {
    font-size: 1.8rem;
    color: var(--ch-primary-dark);
    font-weight: 600;
    margin: 0;
}

.ch-content-body {
    padding-left: 65px;
}

    .ch-content-body p {
        margin: 0 0 20px 0;
        color: var(--ch-text);
        line-height: 1.7;
    }

        .ch-content-body p:last-child {
            margin-bottom: 0;
        }

/* --- Highlight Box (Blue) --- */
.ch-highlight-box {
    background: var(--ch-light-blue);
    border-left: 4px solid var(--ch-primary-blue);
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

    .ch-highlight-box .ch-box-title {
        color: var(--ch-primary-dark);
    }

        .ch-highlight-box .ch-box-title i {
            color: var(--ch-primary-blue);
        }

/* --- Warning Box (Red) --- */
.ch-warning-box {
    background: #fef2f2;
    border-left: 4px solid var(--ch-danger);
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

    .ch-warning-box .ch-box-title {
        color: var(--ch-danger);
    }

        .ch-warning-box .ch-box-title i {
            color: var(--ch-danger);
        }

/* --- Tip Box (Green) --- */
.ch-tip-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

    .ch-tip-box .ch-box-title {
        color: #166534;
    }

        .ch-tip-box .ch-box-title i {
            color: #22c55e;
        }

/* --- Box Title (shared) --- */
.ch-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

    .ch-box-title i {
        font-size: 1.1rem;
    }

.ch-highlight-box p,
.ch-warning-box p,
.ch-tip-box p {
    margin: 0;
    color: var(--ch-text);
    line-height: 1.7;
}

/* --- Checklist --- */
.ch-checklist {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

    .ch-checklist li {
        padding: 12px 0 12px 40px;
        position: relative;
        color: var(--ch-text);
        border-bottom: 1px solid var(--ch-border);
        line-height: 1.6;
    }

        .ch-checklist li:last-child {
            border-bottom: none;
        }

        .ch-checklist li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 12px;
            width: 28px;
            height: 28px;
            background: var(--ch-primary-blue);
            color: var(--ch-white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
        }

/* --- Navigation (if needed) --- */
.ch-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ch-primary-blue);
}

    .ch-logo i {
        font-size: 1.8rem;
    }

.ch-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.ch-nav a {
    color: var(--ch-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

    .ch-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--ch-primary-blue);
        transition: width 0.3s ease;
    }

    .ch-nav a:hover {
        color: var(--ch-primary-blue);
    }

        .ch-nav a:hover::after {
            width: 100%;
        }

/* --- Concave Top Decoration (if needed) --- */
.ch-concave-top {
    height: 20px;
    background: var(--ch-light-gray);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .ch-header-content {
        flex-direction: column;
        gap: 20px;
    }

    .ch-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .ch-page-title {
        font-size: 2rem;
    }

    .ch-page-subtitle {
        font-size: 1.1rem;
    }

    .ch-content-body {
        padding-left: 0;
    }

    .ch-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ch-section-title {
        font-size: 1.5rem;
    }

    .ch-alert-banner {
        flex-direction: column;
        text-align: center;
    }

    .ch-highlight-box,
    .ch-warning-box,
    .ch-tip-box {
        padding: 20px;
    }

    .ch-checklist li {
        padding-left: 35px;
    }

        .ch-checklist li::before {
            width: 24px;
            height: 24px;
            font-size: 0.65rem;
        }
}

@media (max-width: 480px) {
    .ch-container {
        padding: 0 15px;
    }

    .ch-page-header {
        padding: 2rem 0;
    }

    .ch-page-title {
        font-size: 1.75rem;
    }

    .ch-section-title {
        font-size: 1.3rem;
    }

    .ch-section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .ch-content-section {
        margin-bottom: 40px;
    }
}
