/* ================================================
   SECURITY HUB — security-hub.css
   West Hill Community Association
   Uses existing CSS variables from styles.css
   ================================================ */

/* ---- HERO ---- */
.sh-hero {
    position: relative;
    background: linear-gradient(135deg, #0B1120 0%, #1E293B 60%, #0F2942 100%);
    padding: 6rem 0 4rem;
    overflow: hidden;
    color: white;
}

.sh-hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url('images/Past-Westhill-day-images/Westhill-day-20.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.sh-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.sh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(243, 146, 0, 0.15);
    color: #F39200;
    border: 1px solid rgba(243, 146, 0, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sh-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.sh-hero-content>p {
    font-size: 1.1rem;
    color: #94A3B8;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2rem;
}

.sh-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.sh-hero-stats {
    display: flex;
    gap: 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.sh-hero-stat {
    padding: 0 2.5rem 0 0;
    margin-right: 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-hero-stat:last-child {
    border-right: none;
}

.sh-hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.sh-hero-stat span {
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- SHARED SECTION STYLES ---- */
.sh-section {
    padding: 5rem 0;
    background: var(--background);
}

.sh-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ---- SHARED CARD ICON ---- */
.sh-card-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.sh-icon-lg {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.6rem;
    margin-bottom: 0;
}

.sh-icon-orange {
    background: rgba(243, 146, 0, 0.12);
    color: var(--primary);
}

.sh-icon-blue {
    background: rgba(0, 130, 202, 0.1);
    color: var(--secondary);
}

.sh-icon-green {
    background: rgba(62, 174, 75, 0.1);
    color: var(--accent-green);
}

.sh-icon-red {
    background: rgba(227, 32, 94, 0.1);
    color: var(--accent-red);
}

/* ---- TAGS ---- */
.sh-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
}

.sh-tag-blue {
    background: rgba(0, 130, 202, 0.1);
    color: var(--secondary);
}

.sh-tag-green {
    background: rgba(62, 174, 75, 0.1);
    color: var(--accent-green);
}

.sh-tag-red {
    background: rgba(227, 32, 94, 0.1);
    color: var(--accent-red);
}

.sh-tag-purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
}

.sh-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.sh-tag-group .sh-tag {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ---- CHECK LIST ---- */
.sh-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sh-check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sh-check-list li i {
    color: var(--accent-green);
    flex-shrink: 0;
    font-size: 0.95rem;
}

/* ---- RESOURCE LINK ---- */
.sh-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.75rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.sh-link:hover {
    color: var(--primary-dark);
    gap: 0.65rem;
}

/* ---- FOUR PILLARS ---- */
.sh-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sh-pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sh-pillar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.sh-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.sh-pillar-card:hover::after {
    transform: scaleX(1);
}

.sh-pillar-num {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    user-select: none;
}

.sh-pillar-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.sh-pillar-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---- REPORTING GRID ---- */
.sh-report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.sh-report-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.sh-report-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.sh-report-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.sh-report-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.sh-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sh-contact-pill {
    display: block;
    padding: 0.55rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.sh-contact-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.sh-pill-danger {
    background: rgba(227, 32, 94, 0.07);
    border-color: rgba(227, 32, 94, 0.4);
    color: var(--accent-red);
    font-weight: 700;
}

.sh-pill-danger:hover {
    background: var(--accent-red) !important;
    color: white !important;
    border-color: var(--accent-red) !important;
}

/* ---- CHANNELS ---- */
.sh-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sh-channel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.sh-channel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sh-channel-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.sh-channel-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.sh-channel-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.sh-channel-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}

/* ---- SAFETY NETWORK ---- */
.sh-network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sh-network-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.sh-network-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.sh-network-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sh-network-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.sh-network-card>p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* ---- DATA GRID ---- */
.sh-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sh-data-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.sh-data-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sh-data-card h3 {
    font-size: 1rem;
    font-weight: 700;
}

.sh-data-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

/* ---- ADVOCACY ---- */
.sh-advocacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sh-advocacy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.sh-advocacy-card:hover {
    box-shadow: var(--shadow-md);
}

.sh-advocacy-card h3 {
    font-size: 1rem;
    font-weight: 700;
}

.sh-advocacy-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---- RESOURCES ---- */
.sh-resources-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.sh-resource-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: var(--transition);
}

.sh-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.sh-resource-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.sh-resource-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

/* ---- DOWNLOADS ---- */
.sh-downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.sh-dl-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: var(--transition);
}

.sh-dl-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.sh-dl-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.sh-dl-info {
    flex: 1;
}

.sh-dl-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.sh-dl-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sh-dl-btn {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: var(--transition);
}

.sh-dl-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}

/* ---- EMERGENCY BAR ---- */
.sh-emergency-bar {
    background: linear-gradient(135deg, #1A0808, #2D1010);
    border-top: 1px solid rgba(227, 32, 94, 0.3);
    padding: 2rem 0;
}

.sh-emergency-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.sh-emergency-text {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: white;
}

.sh-emergency-text>i {
    font-size: 2rem;
    color: var(--accent-red);
    flex-shrink: 0;
}

.sh-emergency-text h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.sh-emergency-text p {
    color: #94A3B8;
    font-size: 0.85rem;
    margin: 0;
}

.sh-emergency-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sh-emerg-btn {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: var(--transition);
}

.sh-emerg-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.sh-emerg-red {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.sh-emerg-red:hover {
    background: #c01550;
    color: white;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .sh-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sh-resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .sh-report-grid {
        grid-template-columns: 1fr;
    }

    .sh-network-grid {
        grid-template-columns: 1fr;
    }

    .sh-data-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sh-advocacy-grid {
        grid-template-columns: 1fr;
    }

    .sh-resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sh-channels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sh-hero {
        padding: 4rem 0 3rem;
    }

    .sh-pillars-grid {
        grid-template-columns: 1fr;
    }

    .sh-data-grid {
        grid-template-columns: 1fr;
    }

    .sh-resources-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sh-downloads-grid {
        grid-template-columns: 1fr;
    }

    .sh-emergency-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sh-hero-stat {
        margin-right: 1.5rem;
        padding-right: 1.5rem;
    }

    .sh-hero-stats {
        gap: 0.75rem;
    }
}

@media (max-width: 420px) {
    .sh-resources-grid {
        grid-template-columns: 1fr;
    }
}