/*
 * 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);
}

/* ============================================
   Registration Form Styles
   ============================================ */

/* Required field indicator */
.form-label.required::after {
    content: " *";
    color: var(--bs-danger, #dc3545);
}

/* Form card styling */
#eventRegistrationForm .form-control,
#eventRegistrationForm .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#eventRegistrationForm .form-control:focus,
#eventRegistrationForm .form-select:focus {
    border-color: var(--bs-primary, #6f42c1);
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
}

/* ============================================
   Carousel Styles
   ============================================ */

.related-carousel {
    background: transparent;
    border: none;
}

.related-carousel .carousel-control-prev,
.related-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.8;
}

.related-carousel .carousel-control-prev {
    left: -20px;
}

.related-carousel .carousel-control-next {
    right: -20px;
}

.related-carousel .carousel-control-prev:hover,
.related-carousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

.related-carousel .carousel-control-prev-icon,
.related-carousel .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
}

/* ============================================
   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;
    }
}



.btn-linkedin {
    background-color: #0077B5 !important;
    border-color: #0077B5 !important;
    color: #ffffff !important;
}

    .btn-linkedin:hover {
        background-color: #0077B5 !important;
        border-color: #0077B5 !important;
        color: #ffffff !important;
    }

/* X (Twitter/X) */
.btn-x {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

    .btn-x:hover {
        background-color: #000000 !important;
        border-color: #000000 !important;
        color: #ffffff !important;
    }

/* Facebook */
.btn-facebook {
    background-color: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #ffffff !important;
}

    .btn-facebook:hover {
        background-color: #1877F2 !important;
        border-color: #1877F2 !important;
        color: #ffffff !important;
    }
