/*
 * Event Details Page Styles
 * Converted from G2.Web.Client/Components/EventDetails/*.razor.css
 */

/* ============================================
   Hero Header Styles (EventDetailsHeroHeader)
   ============================================ */

/* Image wrapper defines the fixed placeholder */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Image always covers the wrapper */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Transparent "glass" effect for badges */
.badge-glass {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-button {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    transition: all 0.3s ease;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    border-radius: 0.375rem;
}

.glass-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

.glass-button:active {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(0);
}

/* ============================================
   Card and Content Styles
   ============================================ */

/* Text color utilities */
.text-black-75 {
    color: rgba(0, 0, 0, 0.75);
}

.text-black-50 {
    color: rgba(0, 0, 0, 0.5);
}



/* ============================================
   Insight Resource Card Styles
   ============================================ */

.insight-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Text truncation utilities */
.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-fixed-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5em;
}

/* Tags container */
.tags-container {
    overflow: hidden;
}

.tags-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 991.98px) {
    .related-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .related-carousel .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 575.98px) {
    .hero-image-wrapper {
        aspect-ratio: 4 / 3;
    }
    
    .glass-button {
        width: 100%;
        justify-content: center;
    }
}
