/**
 * SF Beer Week Hosting Pages Styles
 * Shared CSS for hosting overview and package signup pages
 */

/* Hero Section (hosting page only) */
.hosting-hero {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url('/assets/images/img/sfbw-glass-dark-beer_sfbw20-events_photo_202002_Carpenter,Tim_DSF9095.jpg') center/cover no-repeat,
        var(--primary-color);
    color: white;
    padding: 6rem 0;
    text-align: center;
    /* Full viewport width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 1rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Packages Section */
.packages-section {
    margin: 1rem 0 4rem 0;
    background-color: #eee;
    padding: 2rem 2rem 0 2rem;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.packages-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Toggle Controls */
.toggle-guidelines-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    width: 100%;
    position: relative;
}

.guidelines-button-right {
    position: absolute;
    right: 0;
    flex-shrink: 0;
}

.discount-notice {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #c53117 0%, #e04a2f 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(197, 49, 23, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.discount-notice i {
    font-size: 1rem;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(197, 49, 23, 0.3);
    }
    50% {
        box-shadow: 0 2px 16px rgba(197, 49, 23, 0.5);
    }
}

.participation-toggle {
    display: flex;
    position: relative;
    margin: 0;
    width: 340px;
    background-color: #e8eaed;
    border-radius: 10px;
    padding: 6px;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadce0;
}

.toggle-btn {
    flex: 0 0 50%;
    width: 50%;
    padding: 14px 0;
    border: none;
    background: transparent;
    color: #3c4043;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    text-transform: uppercase;
}

.toggle-btn.active {
    color: #EEA31B;
    font-weight: 700;
}

.toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.toggle-btn[data-type="sponsor"].active ~ .toggle-slider {
    transform: translateX(100%);
}

/* Location Toggles */
.location-toggle-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    text-align: center;
}

.location-label {
    font-size: 10px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.location-toggle {
    display: flex;
    position: relative;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.location-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
    min-width: 50px;
}

.location-btn.active {
    color: rgb(238, 163, 27);
}

.location-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    z-index: 1;
}

.location-btn[data-location="multiple"].active ~ .location-slider {
    transform: translateX(100%);
}

.location-btn[data-location="multiple"] {
    transform: translateX(2px);
}

.location-upto {
    font-size: 12px;
    font-weight: bold;
    color: #3c4043;
    margin-top: 4px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.location-upto.visible {
    opacity: 1;
    visibility: visible;
}

/* Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.package-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    padding-bottom: 2rem;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.package-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.package-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: left;
    background: linear-gradient(135deg, var(--surface), white);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.package-header h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.package-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-unit {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-light);
    display: block;
    margin-top: -0.5rem;
}

.package-subtitle {
    color: var(--text-light);
    margin: 0;
}

.package-features {
    padding: 0 2rem;
}

.package-features small {
    margin-left: 0.25rem;
    line-height: 1.2;
    margin-top: -0.1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 1.2rem;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    padding-right: 6px;
    padding-top: 2px;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-text {
    flex: 1;
    line-height: 1.5;
}

.feature-subtext {
    font-size: 18px;
}

/* Options Menu Card Style */
.package-card.options-menu {
    background: transparent;
    box-shadow: none;
    padding-bottom: 0;
}

.package-card.options-menu:hover {
    transform: none;
    box-shadow: none;
}

.package-card.options-menu .package-header {
    background: transparent;
    min-height: auto;
    padding-bottom: 0;
    text-align: center;
    padding-top: 0;
}

.package-card.options-menu .feature-item {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 3px solid #EEA31B;
    position: relative;
}

.feature-badge {
    position: absolute;
    top: 10px;
    right: -14px;
    margin-top: -20px;
    background: #EEA31B;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    transform: rotate(35deg);
    transform-origin: center center;
}

.package-card.options-menu .feature-item:last-child {
    margin-bottom: 0;
}

.package-card.options-menu .feature-icon {
    display: none;
}

.package-card.options-menu .feature-text {
    padding-left: 0;
}

.package-card.options-menu .package-features-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.package-card.options-menu .package-features-main .feature-item {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .package-card.options-menu .package-features-main {
        grid-template-columns: 1fr;
    }
}

.package-card.options-menu .package-features-additional .feature-item {
    background: linear-gradient(135deg, #fff8e7, #fff);
    border-left: 3px solid var(--primary-color);
}

/* Shared Benefits */
.shared-benefits-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.shared-benefits-section h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.shared-benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.shared-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    max-width: 300px;
}

.shared-benefit i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Button Styles */
.btn-block {
    width: 100%;
    margin: 0 2rem 2rem 2rem;
    width: calc(100% - 4rem);
}

/* More Sponsorship Options Card */
.more-options-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.more-options-card .more-options-icon {
    margin-bottom: 1.5rem;
}

.more-options-card h3 {
    color: var(--secondary-color, #333);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.more-options-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Browser Compatibility */
@supports not (background-attachment: fixed) {
    .hosting-hero {
        background-attachment: scroll;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hosting-hero {
        padding: 4rem 0;
        min-height: 400px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .shared-benefits {
        flex-direction: column;
        gap: 1.5rem;
    }

    .shared-benefit {
        justify-content: center;
        max-width: none;
    }

    .toggle-guidelines-container {
        flex-direction: column;
        gap: 1rem;
        position: static;
    }

    .discount-notice {
        position: static;
        left: auto;
        order: -1;
    }

    .guidelines-button-right {
        position: static;
        right: auto;
    }

    .participation-toggle {
        max-width: 280px;
    }

    .toggle-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

