/* Media Centre Page Styles */

/* Breadcrumb */
.breadcrumb-section a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Page Title Underline Animation */
.w-16.h-1 {
    animation: expandWidth 0.8s ease;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 4rem;
    }
}

/* Filter Tabs */
.filter-tab {
    cursor: pointer;
}

.filter-tab:hover {
    transform: translateY(-2px);
}

.filter-tab.active {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Year Pills */
.year-pill {
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.year-pill.active {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Media Card */
.media-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* PDF Icon Animation */
.media-card .pdf-icon {
    transition: all 0.3s ease;
}

.media-card:hover .pdf-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Archive Item */
.archive-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.archive-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.archive-item .pdf-icon-small {
    transition: all 0.3s ease;
}

.archive-item:hover .pdf-icon-small {
    transform: scale(1.15);
}

/* Load More Button */
.load-more-btn {
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.2);
}

/* Staggered Animation for Media Cards */
.media-card:nth-child(1) {
    animation: fadeInUp 0.5s ease 0.1s both;
}

.media-card:nth-child(2) {
    animation: fadeInUp 0.5s ease 0.15s both;
}

.media-card:nth-child(3) {
    animation: fadeInUp 0.5s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation for Archive Items */
.archive-item:nth-child(1) {
    animation: fadeInLeft 0.5s ease 0.1s both;
}

.archive-item:nth-child(2) {
    animation: fadeInLeft 0.5s ease 0.15s both;
}

.archive-item:nth-child(3) {
    animation: fadeInLeft 0.5s ease 0.2s both;
}

.archive-item:nth-child(4) {
    animation: fadeInLeft 0.5s ease 0.25s both;
}

.archive-item:nth-child(5) {
    animation: fadeInLeft 0.5s ease 0.3s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Text Hover Effects */
.media-card h3,
.archive-item h4 {
    transition: color 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tab,
    .year-pill {
        font-size: 0.813rem;
        padding: 0.5rem 1rem;
    }
    
    .media-card,
    .archive-item {
        padding: 1rem;
    }
    
    .media-card h3,
    .archive-item h4 {
        font-size: 0.875rem;
    }
}

/* Focus States for Accessibility */
.filter-tab:focus,
.year-pill:focus,
.media-card:focus,
.archive-item:focus,
.load-more-btn:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #fbbf24;
    color: #1e3a8a;
}

/* Section Titles */
h2 {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .filter-tab,
    .year-pill,
    .load-more-btn {
        display: none;
    }
    
    .media-card,
    .archive-item {
        page-break-inside: avoid;
        border: 1px solid #e5e7eb;
        box-shadow: none;
    }
}

/* Border Pulse on Active */
.filter-tab.active,
.year-pill.active {
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        border-color: #fbbf24;
    }
    50% {
        border-color: #f59e0b;
    }
}

/* Hover Shadow Enhancement */
.media-card:hover,
.archive-item:hover {
    border-color: #1e3a8a;
}

/* Date Text Styling */
.media-card p,
.archive-item p {
    transition: color 0.3s ease;
}

.media-card:hover p,
.archive-item:hover p {
    color: #1e3a8a;
}