/* ============================================
   VolleyBul - Announcements CSS
   ============================================ */

/* Hero Section */
.announcements-hero {
    background:
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e3a5f 100%);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.announcements-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(249, 115, 22, 0.25) 2px, transparent 2px),
        radial-gradient(circle, rgba(13, 148, 136, 0.2) 2px, transparent 2px);
    background-size: 60px 60px, 80px 80px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
    animation: announcementsDotsFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes announcementsDotsFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.announcements-hero>* {
    position: relative;
    z-index: 1;
}

.announcements-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.announcements-hero-content h1 i {
    color: #fbbf24;
}

.announcements-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

.empty-state p {
    color: #64748b;
}

/* Announcement Card */
.announcement-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.announcement-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.announcement-card:hover .announcement-image img {
    transform: scale(1.1);
}

.announcement-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(30, 58, 95, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.announcement-date-badge i {
    margin-right: 6px;
    color: #fbbf24;
}

/* Card Content */
.announcement-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
    line-height: 1.4;
}

.announcement-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* Card Footer */
.announcement-footer {
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #1e3a5f;
    gap: 12px;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

/* Announcement Detail Page */
.announcement-detail-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.announcement-detail-card .announcement-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 40px;
    color: #fff;
    position: relative;
}

.announcement-detail-card .announcement-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
}

.announcement-detail-card .announcement-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.announcement-detail-card .announcement-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.announcement-detail-card .announcement-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.announcement-detail-card .announcement-meta i {
    color: #fbbf24;
}

.announcement-feature-image {
    max-height: 400px;
    overflow: hidden;
}

.announcement-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-detail-card .announcement-content {
    padding: 40px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.announcement-detail-card .announcement-footer {
    padding: 30px 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .announcements-hero {
        padding: 40px 15px;
    }

    .announcements-hero-content h1 {
        font-size: 1.75rem;
    }

    .announcement-image {
        height: 160px;
    }

    .announcement-content {
        padding: 20px;
    }

    .announcement-detail-card .announcement-header {
        padding: 25px;
    }

    .announcement-detail-card .announcement-title {
        font-size: 1.5rem;
    }

    .announcement-detail-card .announcement-content {
        padding: 25px;
    }

    .announcement-detail-card .announcement-footer {
        padding: 20px 25px;
    }
}