/* Festival Highlights Gallery Styles */
.festival-highlights-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Gallery Item Container */
.highlight-gallery-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.highlight-gallery-item:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Image-based Highlight Cards */
.highlight-image-card {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 400px;
}

.highlight-image-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.highlight-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

/* Image Overlay */
.highlight-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(50, 52, 142, 0.85) 0%,
        rgba(69, 73, 179, 0.85) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.highlight-image-card:hover .highlight-image-overlay {
    opacity: 1;
}

.highlight-overlay-content {
    color: white;
    width: 100%;
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    opacity: 0.9;
}

.highlight-overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    line-height: 1.2;
}

.highlight-overlay-excerpt {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    opacity: 0.95;
    color: white;
}

.highlight-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.highlight-expand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* Text-based Highlight Cards */
.highlight-text-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.highlight-text-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #32348e 0%, #4549b3 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.highlight-text-card:hover::before {
    transform: scaleX(1);
}

.highlight-text-card:hover {
    border-color: #32348e;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 15px 40px rgba(50, 52, 142, 0.1);
}

.highlight-text-content {
    text-align: center;
    width: 100%;
}

.highlight-text-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #32348e;
    opacity: 0.8;
}

.highlight-text-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.highlight-text-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.highlight-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #32348e;
    transition: all 0.3s ease;
}

.highlight-read-more:hover {
    transform: translateX(5px);
    color: #4549b3;
}

/* Modal Styles */
.highlight-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.highlight-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 3% auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideInFromTop 0.4s ease;
}

.highlight-modal-header {
    background: linear-gradient(135deg, #32348e 0%, #4549b3 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.highlight-modal-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.highlight-modal-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.highlight-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.highlight-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.highlight-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.highlight-modal-image {
    margin-bottom: 2rem;
    text-align: center;
}

.highlight-modal-image img {
    max-height: 300px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highlight-modal-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.highlight-modal-text h1,
.highlight-modal-text h2,
.highlight-modal-text h3,
.highlight-modal-text h4,
.highlight-modal-text h5,
.highlight-modal-text h6 {
    color: #32348e;
    margin-bottom: 1rem;
}

.highlight-modal-text p {
    margin-bottom: 1rem;
}

.highlight-modal-text ul,
.highlight-modal-text ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .festival-highlights-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-image-card {
        height: 300px;
    }
    
    .highlight-text-card {
        height: auto;
        min-height: 250px;
        padding: 1.5rem;
    }
    
    .highlight-image-overlay {
        padding: 1.5rem;
    }
    
    .highlight-overlay-title {
        font-size: 1.3rem;
    }
    
    .highlight-text-title {
        font-size: 1.2rem;
    }
    
    .highlight-modal-dialog {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .highlight-modal-header {
        padding: 1.5rem;
    }
    
    .highlight-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .highlight-modal-body {
        padding: 1.5rem;
    }
    
    .highlight-modal-image img {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .highlight-image-card {
        height: 250px;
    }
    
    .highlight-text-card {
        min-height: 200px;
        padding: 1rem;
    }
    
    .highlight-modal-dialog {
        margin: 1% auto;
    }
    
    .highlight-modal-header {
        padding: 1rem;
    }
    
    .highlight-modal-body {
        padding: 1rem;
    }
} 