/* Event Page Specific Styles */

.event-poster {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
    margin: 1.5em 0;
}

.event-info {
    background-color: #f0f0f0;
    padding: 1.5em;
    border-radius: 8px;
    margin: 0;
    border-left: 4px solid #c8102e;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-info h3 {
    margin-top: 0;
    color: #c8102e;
}

.event-info p {
    margin-bottom: 0.5em;
}

.event-info p:last-child {
    margin-bottom: 0;
}

.event-info strong {
    color: #000;
}

.cast-list {
    margin: 1em 0;
    padding-left: 1.5em;
}

.cast-list li {
    margin-bottom: 0.5em;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5em 0;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Lazy video placeholder */
.video-container .video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        box-shadow: 0 6px 30px rgba(200, 16, 46, 0.6);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
}

.video-container .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(200, 16, 46, 0.9);
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.video-container .video-play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.video-container .video-play-button:hover,
.video-container .video-play-button:focus {
    background: rgba(200, 16, 46, 1);
    outline: none;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
    animation: none;
}

.highlight {
    background-color: #fff4e6;
    padding: 1em;
    border-radius: 8px;
    margin: 1em 0;
    border-left: 4px solid #ff9800;
}

.consulate-info {
    background-color: #f5f5f5;
    border-left: 4px solid #c8102e;
}

.consulate-info a {
    color: #c8102e;
    text-decoration: underline;
}

.consulate-info a:hover {
    color: #a00c24;
}

/* Responsive - Event Pages */
@media (max-width: 767px) {
    .event-poster {
        content: url('/files/events/mobile-Szkocja-film-Powstaniec.jpg');
    }
    /* Match the video thumbnail to the event poster image on mobile */
    .video-container .video-thumb {
        content: url('/files/events/mobile-Szkocja-film-Powstaniec.jpg');
    }
}

@media (min-width: 768px) {
    .event-poster {
        content: url('/files/events/2025-Szkocja-film-Powstaniec.jpg');
    }
    .video-container .video-thumb {
        content: url('/files/events/2025-Szkocja-film-Powstaniec.jpg');
    }
    .events-container {
        grid-template-columns: 1fr 1fr;
    }
}
