/*
 * css/announcements.css
 * Premium stylesheet for the Official Announcements, Notifications & News Feed Page
 * Features vibrant gradients, interactive filter tabs, timeline card UI, and status tracker widgets
 */

:root {
    --ann-primary: #4338ca;
    --ann-primary-light: #6366f1;
    --ann-blue: #2563eb;
    --ann-success: #10b981;
    --ann-warning: #f59e0b;
    --ann-danger: #ef4444;
    --ann-dark: #0f172a;
    --ann-text: #1e293b;
    --ann-text-muted: #64748b;
    --ann-border: #e2e8f0;
    --ann-card: #ffffff;
    --ann-bg-alt: #f8fafc;
    --ann-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    --ann-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.14);
}

.ann-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4.5rem;
    color: var(--ann-text);
    font-family: 'Inter', sans-serif;
}

/* Breadcrumb */
.ann-breadcrumb {
    font-size: 0.88rem;
    color: var(--ann-text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ann-breadcrumb a {
    color: var(--ann-blue);
    text-decoration: none;
    font-weight: 600;
}
.ann-breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Banner */
.ann-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 24px;
    padding: 40px 46px;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(30, 27, 75, 0.35);
    margin-bottom: 38px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.ann-hero::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ann-hero-content {
    max-width: 740px;
    z-index: 2;
}

.ann-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}
.ann-ticker-badge .pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ann-hero h1 {
    font-size: 2.3rem;
    font-weight: 900;
    margin: 0 0 14px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ann-hero p {
    font-size: 1.08rem;
    color: #e0e7ff;
    margin: 0;
    line-height: 1.65;
    font-weight: 500;
}

.ann-hero-visual {
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 24px 28px;
    backdrop-filter: blur(12px);
    text-align: center;
    min-width: 240px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.ann-hero-visual .icon-area {
    font-size: 3.2rem;
    color: #fef08a;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
.ann-hero-visual h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    font-weight: 800;
}
.ann-hero-visual span {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Recruitment Status Tracker Banner */
.tracker-sec-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ann-text);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 46px;
}
.tracker-card {
    background: white;
    border: 1px solid var(--ann-border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--ann-shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s;
}
.tracker-card:hover {
    transform: translateY(-4px);
    border-color: #a5b4fc;
    box-shadow: var(--ann-shadow-lg);
}
.tracker-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.tracker-top h4 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ann-text);
}
.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}
.pill-active { background: #dcfce7; color: #15803d; }
.pill-soon { background: #fef3c7; color: #b45309; }
.pill-hot { background: #fee2e2; color: #b91c1c; }

.tracker-meta {
    font-size: 0.9rem;
    color: var(--ann-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.tracker-link {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ann-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tracker-link:hover { text-decoration: underline; }

/* Filter Tabs & Search Header */
.feed-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 2px solid var(--ann-border);
    padding-bottom: 18px;
}
.feed-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--ann-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.feed-title .bar {
    width: 6px;
    height: 28px;
    background: var(--ann-primary);
    border-radius: 4px;
}

.ann-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ann-tab-btn {
    background: var(--ann-bg-alt);
    border: 1px solid var(--ann-border);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ann-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ann-tab-btn:hover, .ann-tab-btn.active {
    background: var(--ann-primary);
    color: white;
    border-color: var(--ann-primary);
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
}

/* Timeline Announcement Feed */
.ann-feed-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ann-card {
    background: #ffffff;
    border: 1px solid var(--ann-border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--ann-shadow);
    display: flex;
    gap: 26px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ann-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ann-shadow-lg);
    border-color: #a5b4fc;
}

.ann-card.featured {
    border-left: 6px solid #4338ca;
    background: linear-gradient(to right, #fafbfe, #ffffff);
}
.ann-card.official {
    border-left: 6px solid #10b981;
}
.ann-card.exam {
    border-left: 6px solid #f59e0b;
}

.ann-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: var(--ann-bg-alt);
    border: 2px solid var(--ann-border);
    flex-shrink: 0;
    text-align: center;
}
.ann-date-box .day {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--ann-dark);
    line-height: 1;
}
.ann-date-box .month {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--ann-primary);
    text-transform: uppercase;
    margin-top: 4px;
}

.ann-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ann-meta-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tag-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
}
.tag-official { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag-exam { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.tag-platform { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.tag-result { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.tag-new {
    background: #ef4444;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.ann-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ann-text);
    line-height: 1.4;
}

.ann-body p {
    margin: 0 0 20px 0;
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.65;
}

.ann-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ann-btn-primary {
    background: var(--ann-primary);
    color: white;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.ann-btn-primary:hover {
    background: #312e81;
    transform: translateY(-2px);
    color: white;
}

.ann-btn-outline {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}
.ann-btn-outline:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Responsive queries */
@media (max-width: 900px) {
    .ann-hero { flex-direction: column; align-items: flex-start; }
    .ann-hero-visual { width: 100%; box-sizing: border-box; }
    .ann-card { flex-direction: column; gap: 16px; padding: 22px; }
    .ann-date-box { flex-direction: row; width: auto; height: auto; padding: 8px 16px; gap: 8px; justify-content: flex-start; }
    .ann-date-box .day { font-size: 1.25rem; }
    .ann-date-box .month { margin-top: 0; font-size: 0.85rem; }
}

@media (max-width: 600px) {
    .ann-wrapper { padding: 1rem 1rem 3.5rem; }
    .ann-hero { padding: 26px 20px; }
    .ann-hero h1 { font-size: 1.75rem; }
}
