/* ========================================
   ADVOCACY GALLERY PAGE STYLES
   Clean, Modern, Accessible Design
   ======================================== */

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 120px 0 70px;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item {
    font-size: 1rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--color-white);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    padding: 0 8px;
}

.page-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    line-height: 1.7;
}


/* ========================================
   STATISTICS SECTION
   ======================================== */

.stats-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 0 var(--spacing-lg) 60px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--color-accent);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
    font-size: 1.8rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    font-family: var(--font-secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin: 8px 0 0;
    font-weight: 600;
}


/* ========================================
   SECTION COMMON STYLES
   ======================================== */

.section-padding {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
    font-family: var(--font-secondary);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin-bottom: 25px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto;
}


/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
    background: var(--color-gray-50);
}

.program-section {
    background: var(--color-white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.program-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-gray-100);
}

.program-info {
    flex: 1;
}

.program-title {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.program-title i {
    color: var(--color-accent);
}

.program-count {
    font-size: 1rem;
    color: var(--color-gray-600);
    margin: 0;
    font-weight: 600;
}


/* ========================================
   MEDIA GRID - BIGGER IMAGES
   ======================================== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.media-item {
    position: relative;
}

.media-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--color-white);
}

.media-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Image Card - BIGGER */
.image-card {
    aspect-ratio: 4/3;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover img {
    transform: scale(1.15);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(123, 40, 105, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.media-overlay i {
    color: var(--color-white);
    font-size: 3rem;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

/* PDF Card */
.pdf-card {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.pdf-icon {
    font-size: 5rem;
    color: #E74C3C;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.pdf-card:hover .pdf-icon {
    transform: scale(1.15);
}

.pdf-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray-700);
    text-align: center;
}

.pdf-card:hover {
    background: linear-gradient(135deg, #c3cfe2, #f5f7fa);
}

/* Video Card */
.video-card {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #000000, #434343);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-card:hover::before {
    opacity: 1;
}

.video-icon {
    font-size: 5rem;
    color: var(--color-white);
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.video-card:hover .video-icon {
    transform: scale(1.3);
}

.video-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    position: relative;
    z-index: 2;
}


/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.empty-state i {
    font-size: 5rem;
    color: var(--color-gray-300);
    margin-bottom: 24px;
}

.empty-state h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1.05rem;
    color: var(--color-gray-600);
    margin: 0;
}


/* ========================================
   MODAL STYLES
   ======================================== */

.modal-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 20px 24px;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-title i {
    color: var(--color-secondary);
}

.modal-body {
    padding: 24px;
}

.btn-close {
    filter: brightness(0) invert(1);
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .stats-section {
        margin-top: -40px;
        padding-bottom: 40px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .program-section {
        padding: 24px 20px;
    }
    
    .program-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    
    .program-title {
        font-size: 1.5rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 90px 0 50px;
    }
    
    .program-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pdf-icon,
    .video-icon {
        font-size: 4rem;
    }
}


/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .page-header,
    .stats-section {
        display: none !important;
    }
    
    .program-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .media-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .media-item {
        width: 48%;
    }
}


/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.media-card:focus-within {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .media-card {
        border: 2px solid currentColor;
    }
}


/* ========================================
   LOADING ANIMATION
   ======================================== */

.image-card img {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}