/* Main Container */
.event-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section for Event Details - 1920x1080 aspect ratio */
.event-details-hero {
    width: 100vw;
    max-width: 100%;
    aspect-ratio: 16 / 9; /* 1920x1080 aspect ratio */
    min-height: 400px;
    max-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-start; /* keep title below header */
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    margin: 0;
    /* header is absolutely positioned over the page; add top padding so hero title never sits under it */
    padding: 160px 0 40px;
    z-index: 1;
    left: 0;
    right: 0;
}

.event-details-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.event-details-hero .hero-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .event-details-hero {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    .event-details-hero {
        padding-top: 120px;
    }
}

@media (max-width: 576px) {
    .event-details-hero {
        padding-top: 110px;
    }
}

/* Event Gallery Styles */
.event-gallery {
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9; /* 1920x1080 aspect ratio */
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9; /* 1920x1080 aspect ratio */
}

.gallery-item.small {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 16 / 9; /* 1920x1080 aspect ratio */
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {
    .video-container {
        margin-bottom: 20px;
        border-radius: 5px;
    }
    
    .event-details-container .hero-section,
    .hero-section[data-hero-image] {
        min-height: 300px;
        aspect-ratio: 16 / 9;
        max-height: 70vh;
    }
    
    .hero-section[data-hero-image] .hero-title {
        font-size: 2rem;
    }
    
    .hero-section[data-hero-image] .hero-content {
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large,
    .gallery-item.small {
        grid-column: span 1;
        aspect-ratio: 16 / 9;
    }
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Event Info Styles */
.event-info-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 40px;
}

.event-info {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 35px;
    flex: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.event-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.event-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1rem;
}

.ticket-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 35px;
    flex: 0 0 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ticket-info h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.ticket-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.ticket-tier {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.ticket-tier:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ticket-tier:hover {
    padding-left: 5px;
}

.ticket-name {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #333;
}

.ticket-price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.25rem;
}

.ticket-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 5px;
}

.progress {
    height: 8px;
    margin: 12px 0;
    background: linear-gradient(90deg, #e9ecef, #f5f5f5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 0, 128, 0.4);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-direction: column;
}

.action-button {
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-button:hover::before {
    width: 300px;
    height: 300px;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e0006e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.35);
    color: white;
}

.secondary-button {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.05) 0%, rgba(255, 0, 128, 0.02) 100%);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.share-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.share-container h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.share-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
}

.share-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.share-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.share-input button {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 128, 0.3);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-button {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.share-button.whatsapp {
    background-color: #25d366;
}

.share-button.link {
    background-color: #333;
}

.share-button.link:hover {
    background-color: #28a745 !important;
}

.payment-method-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.payment-icon {
    width: 40px;
    height: 25px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

.event-highlights {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.event-highlights li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.event-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
}

.sold-out-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.free-badge {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .event-info-container {
        flex-direction: column;
    }
    
    .ticket-info {
        flex: 1;
        position: relative;
        top: 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large,
    .gallery-item.small {
        grid-column: span 1;
        aspect-ratio: 16 / 9;
    }
    
    .event-details-container {
        padding: 20px 15px;
    }
    
    .event-info,
    .ticket-info,
    .share-container {
        padding: 20px;
    }
}
