/* Landing Page Styles - Card-Based Design Variant */


/* Hero Section - Using details.css styles */
/* Hero section styling is now handled by details.css */

/* Hero section background gradient (placeholder when no image) */
.hero-section {
    background: linear-gradient(271deg, #233d6c 0%, #234071de 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    padding: 3rem 2rem 2rem;
}

.hero-section::after {
    background-color: rgb(0 0 0 / 32%);
}

/* Darker overlay when banner image is present */
.hero-section[data-bg-image="true"]::after {
    background-color: rgb(0 0 0 / 64%);
}

/* Host Badge */
.host-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none; /* Hidden by default, shown via JavaScript when data is available */
    background-color: var(--white-color, #ffffff);
    color: var(--primary-color, #233D6C);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif);
    z-index: 10;
}

#heroTitle {
    color: #fff !important;
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif) !important;
    font-size: var(--font-size-large) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

#heroSubtitle {
    color: #fff !important;
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif) !important;
    font-size: var(--font-size-medium) !important;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 0.5rem;
    line-height: 1.5rem;
}

/* Main Content - Using container py-4 from ChapterDetails */
.main-content {
    /* Container padding handled by Bootstrap container py-4 class */
}

/* Content Sections - Using details.css overview-main-section and overview-sub-section classes */
/* Section styling is now handled by details.css */

/* Remove border-bottom from about section when there are no speakers */
.overview-sub-section.no-speakers,
.overview-sub-section {
    border-bottom: none !important;
}

.event-description {
    margin-bottom: 1rem;
}

.event-description,
.speakers-list .section-content {
    line-height: 20px;
}

/* Speakers list styling */
.speakers-list {
    margin-top: 0;
}

/* First speaker border-bottom - matches About this event section border-bottom */
/* Uses the same border-bottom style as overview-sub-section */
.speaker-first-with-border {
    border-bottom: 1px solid var(--gray-variant-01);
    padding-bottom: 1.5rem;
}

/* Custom HTML Content - Using overview-main-section class from details.css */
.custom-html-content h2 {
    color: var(--primary-color, #233D6C);
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif);
    font-size: var(--font-size-medium, 20px);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.custom-html-content h3 {
    color: var(--primary-color, #233D6C);
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif);
    font-size: var(--font-size-mobile-large, 18px);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.custom-html-content p {
    color: var(--dark-charcoal, #333);
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
    font-size: var(--font-size-general, 16px);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.custom-html-content ul,
.custom-html-content ol {
    color: var(--dark-charcoal, #333);
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
    font-size: var(--font-size-general, 16px);
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.custom-html-content li {
    margin-bottom: 0.5rem;
}

.custom-html-content a {
    color: var(--primary-color, #233D6C);
    text-decoration: underline;
}

.custom-html-content a:hover {
    color: var(--secondary-color, #2AA6DE);
}

.custom-html-content img {
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
}

.custom-html-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.custom-html-content th {
    background-color: var(--light-gray-variant-01, #E8E8E8);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-charcoal, #333);
    border: 1px solid var(--gray-variant-01, #DEDEDE);
    font-family: var(--font-franklingothic-demi, 'Franklingothic Demi', sans-serif);
}

.custom-html-content td {
    padding: 0.75rem;
    border: 1px solid var(--gray-variant-01, #DEDEDE);
    color: var(--dark-charcoal, #333);
    font-family: var(--font-franklin-gothic, 'Franklin Gothic', sans-serif);
}

/* Sidebar - Using overview-sidebar-card class from details.css */
.sidebar-sticky {
    position: sticky;
    top: 1.5rem;
}

/* Align sidebar with left content - ensure both columns start at same vertical position */
.main-content .row {
    align-items: flex-start;
}

.sidebar-item {
    margin-bottom: 1rem;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

/* Price Row */
.price-row {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-variant-01);
}

.price-row:last-child {
    border-bottom: none !important;
}

/* Register Button */
.btn-register {
    height: 2.75rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Button states based on registration status - High specificity to override Bootstrap */
/* Available state - Primary blue button */
#registerButton.btn-register.btn-primary,
button#registerButton.btn-register.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

#registerButton.btn-register.btn-primary:hover,
button#registerButton.btn-register.btn-primary:hover {
    background-color: var(--white-color) !important;
    border-color: var(--black-color) !important;
    color: var(--black-color) !important;
}

/* Registered state - Light blue background with dark blue text and border */
#registerButton.btn-register.btn-outline-primary,
button#registerButton.btn-register.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: var(--selected-primary-color) !important;
}

#registerButton.btn-register.btn-outline-primary:hover,
button#registerButton.btn-register.btn-outline-primary:hover {
    background-color: var(--hover-primary-background-color) !important;
    border-color: var(--hover-primary-border-color) !important;
    color: var(--primary-color) !important;
}

/* Waitlist/Full state - Using btn-outline-primary (same as Leave Chapter button) */
#registerButton.btn-register.btn-outline-primary.waitlist-state,
button#registerButton.btn-register.btn-outline-primary.waitlist-state {
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: var(--white-color) !important;
}

#registerButton.btn-register.btn-outline-primary.waitlist-state:hover,
button#registerButton.btn-register.btn-outline-primary.waitlist-state:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

/* Past Event state - Gray secondary button */
#registerButton.btn-register.btn-secondary,
button#registerButton.btn-register.btn-secondary {
    background-color: var(--light-gray-variant-01) !important;
    border-color: var(--gray-variant-01) !important;
    color: var(--dark-charcoal) !important;
}

#registerButton.btn-register.btn-secondary:hover,
#registerButton.btn-register.btn-secondary:disabled,
button#registerButton.btn-register.btn-secondary:hover,
button#registerButton.btn-register.btn-secondary:disabled {
    background-color: var(--light-gray-variant-01) !important;
    border-color: var(--gray-variant-01) !important;
    color: var(--gray-variant-03) !important;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Disabled Full Event state - Primary button styled as disabled */
.btn-disabled-full,
.btn-register.btn-disabled-full {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    /* Allow pointer events for tooltip, but prevent clicks via JavaScript */
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }

    .hero-section {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
}

@media (max-width: 767.98px) {
    #heroTitle {
        font-size: 1.5rem !important;
    }

    #heroSubtitle {
        font-size: 0.875rem !important;
    }
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}
