﻿/* ==========================================================================
   1. GLOBAL VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --page-bg: #080808;
    --panel-bg: #111111;
    --panel-border: #1a1a1a;
    --muted-text: #8d8d8d;
    --text-soft: #b0b0b0;
    --gold-brand: #d4af37;
    --gold-gradient: linear-gradient(90deg, #4a3509 0%, #1a1204 50%, #080808 100%);
    --borderRadius: 12px;
}

main {
    max-width: 920px;
    margin: 0 auto;
}

.notifications-page {
    padding: 0 16px 90px; /* Added bottom padding to prevent bottom menu overlap */
}

/* ==========================================================================
   2. HEADER & NAVIGATION STYLING
   ========================================================================== */
.announcement-header {
    background: var(--gold-gradient);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    border-radius: var(--borderRadius);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 20px;
}

    .announcement-header::before {
        content: '';
        position: absolute;
        width: 140px;
        height: 140px;
        background: rgba(212, 175, 55, 0.05);
        border-radius: 50%;
        left: -30px;
        top: -30px;
        pointer-events: none;
    }

.bell-circle {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-brand);
    font-size: 22px;
    margin-right: 16px;
    flex-shrink: 0; /* Prevents shrinking on flex containers */
    z-index: 2;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.header-subtitle {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.4;
}

/* ==========================================================================
   3. DYNAMIC NOTIFICATION CARDS
   ========================================================================== */
.news-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--borderRadius);
    padding: 16px;
    margin-top: 16px;
    transition: all 0.25s ease;
}

    .news-card:hover {
        border-color: rgba(212, 175, 55, 0.4);
        background: #141414;
        transform: translateY(-1px);
    }

.news-heading {
    color: var(--gold-brand);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.news-des {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
}

.news-date {
    color: var(--muted-text);
    font-size: 11px;
    font-weight: 500;
}

/* Media Display Layout Inside Handler */
.media-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

    .media-container img {
        width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .media-container iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
        border: none;
    }

/* ==========================================================================
   4. MOBILE RESPONSIVE OPTIMIZATIONS (768px & Down)
   ========================================================================== */
@media (max-width: 768px) {
    .announcement-header {
        padding: 20px 16px;
    }

    /* Fixed the oval shape bug from old code */
    .bell-circle {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-right: 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .news-card {
        padding: 14px;
    }

    .news-heading {
        font-size: 14px;
    }

    .news-des {
        font-size: 12.5px;
    }
}
