/**
 * Announcements Page Styles
 * Elegant announcement cards with timeline-inspired design
 */

/* ========================================
   HERO SECTION
   ======================================== */
.announcements-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.announcements-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 35, 0.98) 100%),
        url('../img/concert-hall.jpg') center/cover no-repeat;
    z-index: 1;
}

.announcements-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.announcements-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.announcements-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.announcements-hero-content .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.announcements-content {
    background: var(--color-bg-dark);
    padding: 4rem 0;
    min-height: 50vh;
}

.announcements-content .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   ANNOUNCEMENTS GRID
   ======================================== */
.announcements-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ========================================
   ANNOUNCEMENT CARD
   ======================================== */
.announcement-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(197, 161, 90, 0.2);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-card:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 161, 90, 0.4);
    box-shadow: 0 15px 40px rgba(197, 161, 90, 0.15);
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-gold) 0%, rgba(197, 161, 90, 0.3) 100%);
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-card:hover::before {
    opacity: 1;
}

/* Card Frame */
.announcement-card .card-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-card:hover .card-frame {
    opacity: 1;
}

.announcement-card .frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gold);
}

.announcement-card .frame-corner-tl {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.announcement-card .frame-corner-tr {
    top: 8px;
    right: 8px;
    border-left: none;
    border-bottom: none;
}

.announcement-card .frame-corner-bl {
    bottom: 8px;
    left: 8px;
    border-right: none;
    border-top: none;
}

.announcement-card .frame-corner-br {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

/* ========================================
   DATE BADGE
   ======================================== */
.announcement-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 90px;
    background: linear-gradient(145deg, rgba(197, 161, 90, 0.2) 0%, rgba(197, 161, 90, 0.1) 100%);
    border: 1px solid rgba(197, 161, 90, 0.3);
    border-radius: 12px;
    flex-shrink: 0;
}

.announcement-date .date-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.announcement-date .date-month {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.announcement-date .date-year {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.15rem;
}

/* ========================================
   ANNOUNCEMENT CONTENT
   ======================================== */
.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.announcement-title .title-en {
    display: none;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.announcement-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.announcement-meta i {
    color: var(--color-gold);
    font-size: 0.8rem;
}

.meta-file {
    background: rgba(197, 161, 90, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(197, 161, 90, 0.2);
}

/* ========================================
   ANNOUNCEMENT ACTIONS
   ======================================== */
.announcement-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-announcement {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download {
    background: linear-gradient(135deg, var(--color-gold) 0%, #d4a94c 100%);
    color: var(--color-bg-dark);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 161, 90, 0.4);
    color: var(--color-bg-dark);
}

.btn-view {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.no-file-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* ========================================
   NO ANNOUNCEMENTS
   ======================================== */
.no-announcements {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(197, 161, 90, 0.15);
    border-radius: 20px;
}

.no-announcements-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(197, 161, 90, 0.2) 0%, rgba(197, 161, 90, 0.1) 100%);
    border-radius: 50%;
}

.no-announcements-icon i {
    font-size: 2.5rem;
    color: var(--color-gold);
}

.no-announcements h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.no-announcements p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* ========================================
   INFO SECTION
   ======================================== */
.announcements-info {
    margin-top: 3rem;
}

.info-card-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, rgba(197, 161, 90, 0.1) 0%, rgba(197, 161, 90, 0.05) 100%);
    border: 1px solid rgba(197, 161, 90, 0.2);
    border-radius: 16px;
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, #d4a94c 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.25rem;
    color: var(--color-bg-dark);
}

.info-text h4 {
    color: var(--color-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .announcements-hero {
        min-height: 40vh;
    }
    
    .announcements-content {
        padding: 2rem 0;
    }
    
    .announcement-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .announcement-date {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .announcement-date .date-day {
        font-size: 1.5rem;
    }
    
    .announcement-date .date-month,
    .announcement-date .date-year {
        font-size: 0.9rem;
    }
    
    .announcement-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .btn-announcement {
        flex: 1;
        justify-content: center;
    }
    
    .info-card-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .info-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .announcement-card {
        padding: 1rem;
    }
    
    .announcement-title {
        font-size: 1.1rem;
    }
    
    .btn-announcement {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-announcement span {
        display: none;
    }
    
    .btn-announcement i {
        margin: 0;
    }
}
