/* Event Detail Page Styles */

.event-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    overflow: hidden;
}

.event-hero__image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.event-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 2;
}

.event-hero__content {
    position: relative;
    z-index: 3;
    color: #fff;
    width: 100%;
}

.event-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.event-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    color: #fff;
}

.event-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-hero__meta-item i {
    font-size: 1.2em;
}

.event-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-container--narrow {
    max-width: 900px;
}

.event-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: #ffffff;
}

.event-section--gallery {
    background: #f6f6eb;
}

.event-section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: clamp(30px, 4vw, 50px);
    text-align: center;
}

.event-description__text {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: #525252;
    text-align: justify;
    text-justify: inter-word;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: normal;
    max-width: 100%;
    display: block;
}

/* Video Section Styles */
.event-section--video {
    background: #ffffff !important;
    padding: clamp(60px, 8vw, 100px) 0 !important;
    width: 100% !important;
    display: none;
}

.event-section--video.active {
    display: block !important;
}

.event-video-container {
    width: 100% !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
}

.event-video-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 700px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: #000 !important;
    max-width: none !important;
}

.event-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 4px !important;
}

/* Gallery Styles */
.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.event-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 1;
    background: #e0e0e0;
}

.event-gallery__item--1 {
    grid-column: span 2;
    grid-row: span 2;
}

.event-gallery__item--2 {
    grid-column: span 1;
}

.event-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-gallery__item:hover .event-gallery__image {
    transform: scale(1.05);
}

.event-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.event-gallery__item:hover .event-gallery__overlay {
    opacity: 1;
}

.event-gallery__overlay i {
    font-size: 2.5rem;
    color: #fff;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

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

@keyframes closeIconPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    }
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox__close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
    font-size: 2.5rem !important;
    cursor: pointer;
    z-index: 1003 !important;
    padding: 8px 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px);
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2) !important;
    line-height: 1;
    text-decoration: none;
    font-weight: bold;
}

.lightbox__close i {
    font-size: 1.8rem;
    color: #fff;
}

.lightbox.active .lightbox__close {
    animation: closeIconPulse 2s ease-in-out infinite;
}

.lightbox__close:hover {
    transform: scale(1.15) rotate(90deg);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: none;
}

.lightbox__close:active {
    transform: scale(0.95);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px;
    transition: background 0.3s ease;
    z-index: 1001;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1002;
}

/* CTA Section */
.event-cta {
    padding: clamp(60px, 8vw, 100px) 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
}

.event-cta__content {
    text-align: center;
}

/* Arabic RTL Support */
html[lang="ar"] .event-cta__content {
    text-align: center;
    direction: rtl;
}

.event-cta__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.event-cta__text {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
    text-align: center;
    color: #ffffff;
}

.event-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-cta__button:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .event-hero {
        height: 60vh;
        min-height: 450px;
    }

    .event-hero__meta {
        flex-direction: column;
        gap: 15px;
    }

    .event-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .event-gallery__item--1 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .event-video-wrapper {
        height: 450px;
    }

    .lightbox__prev,
    .lightbox__next {
        font-size: 1.5rem;
        padding: 10px;
    }

    .lightbox__prev {
        left: 10px;
    }

    .lightbox__next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .event-hero {
        height: 50vh;
        min-height: 400px;
    }

    .event-hero__title {
        margin-bottom: 15px;
    }

    .event-hero__meta {
        font-size: 0.9rem;
    }

    .event-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
