/* Buy-In Parties Page
   Palette: Teal #1ED0EB, Hot Pink #EB1E80, Yellow #EBD41E, Lavender #E7D4FF, Deep Teal text #0A8CA0 */

body {
    background: #ffffff;
}

main {
    background: #ffffff;
}

.hamburger {
    display: none !important;
}

.mobile-menu {
    display: none !important;
}

@media (min-width: 769px) {
    .site-header {
        transition: transform 0.3s ease-in-out;
        transform: translateY(0);
    }

    .site-header.header-hidden {
        transform: translateY(-100%);
    }
}

.parties-section {
    margin-bottom: 4rem;
}

.section-intro {
    background: #f3fcfe;
    border: 2px solid rgba(30, 208, 235, 0.35);
    border-top: none !important;
    border-bottom: none;
    border-left: 5px solid #1ED0EB;
    border-right: 5px solid #1ED0EB;
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(30, 208, 235, 0.12);
}

.section-intro p {
    color: #333333 !important;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-intro a {
    color: #0A8CA0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-intro a:hover {
    color: #EB1E80;
}

.coming-soon-message {
    text-align: center;
    margin: 2rem auto;
    padding: 3rem 2rem;
    max-width: 700px;
    background: #faf5ff;
    border: 2px solid rgba(235, 30, 128, 0.35);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(235, 30, 128, 0.1);
}

.coming-soon-message h2 {
    font-size: 2rem;
    color: #0A8CA0 !important;
    font-weight: 800;
    margin-bottom: 1rem;
}

.coming-soon-message p {
    color: #333333 !important;
    font-size: 1.05rem;
    line-height: 1.7;
}

.tax-note {
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555555;
    text-align: center;
    border-top: 2px solid #f0f0f0;
}

.view-toggle {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #1ED0EB;
    background: #ffffff;
    color: #0A8CA0;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.toggle-btn:hover {
    box-shadow: 0 0 14px rgba(30, 208, 235, 0.45);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: #1ED0EB;
    color: #0a0e27;
    box-shadow: 0 0 14px rgba(30, 208, 235, 0.45);
}

.parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.party-card {
    border: 2px solid rgba(30, 208, 235, 0.35);
    overflow: hidden;
    background: #ffffff;
    border-left: 5px solid #1ED0EB;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.party-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(30, 208, 235, 0.25);
    border-color: #1ED0EB;
}

.party-card.sold-out {
    position: relative;
    border-left-color: #9a9a9a;
    border-color: rgba(150, 150, 150, 0.4);
    box-shadow: none;
}

.party-card.sold-out .party-image,
.party-card.sold-out .party-card-content {
    opacity: 0.45;
    filter: grayscale(0.8);
}

.party-card.sold-out::after {
    content: 'SOLD OUT';
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    padding: 0.4rem 1.1rem;
    border: 4px solid #EB1E80;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #EB1E80;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.party-card.sold-out:hover {
    transform: none;
    box-shadow: none;
}

.party-card.past {
    opacity: 0.55;
    filter: grayscale(1);
}

.party-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--gray-light);
}

.hero {
    background:
        radial-gradient(circle at 15% 40%, rgba(30, 208, 235, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(235, 30, 128, 0.14) 0%, transparent 45%),
        #ffffff !important;
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem !important;
    border-bottom: 4px solid #EB1E80 !important;
    border-image: none !important;
}

.hero h1 {
    color: #EB1E80 !important;
    font-size: 4.5rem !important;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 24px rgba(235, 30, 128, 0.35);
    animation: glow 3s ease-in-out infinite;
}

.hero-subtitle {
    color: #0A8CA0 !important;
    font-size: 1.4rem !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    font-weight: 600;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(235, 30, 128, 0.3), 0 0 40px rgba(30, 208, 235, 0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(235, 30, 128, 0.5), 0 0 60px rgba(30, 208, 235, 0.35);
    }
}

/* Override rainbow h2 styles for this page */
h2 {
    border-image: none !important;
    border-color: #EB1E80 !important;
}

.party-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.status-badge {
    display: inline-block;
    background: #EB1E80;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.party-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0A8CA0;
    margin-bottom: 0.5rem;
}

.party-hosts {
    font-size: 0.9rem;
    font-style: italic;
    color: #555555;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid #EBD41E;
}

.party-label {
    font-weight: 600;
    color: #0A8CA0;
    display: inline-block;
    min-width: 60px;
}

.party-details {
    font-size: 0.95rem;
    color: #444444;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.party-detail-item {
    margin-bottom: 0.75rem;
}

.party-description {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.party-cost {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0A8CA0;
    margin-bottom: 1rem;
}

.party-cta {
    display: inline-block;
    background: #1ED0EB;
    color: #0a0e27;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.party-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(30, 208, 235, 0.5);
}

.calendar-view {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.calendar-month {
    background: #ffffff;
    border: 2px solid rgba(30, 208, 235, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.calendar-header {
    background: #1ED0EB;
    color: #0a0e27;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f3fcfe;
    border-bottom: 2px solid rgba(30, 208, 235, 0.35);
}

.calendar-weekday {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #0A8CA0;
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    background: #ffffff;
}

.calendar-day {
    background: #ffffff;
    padding: 0.75rem;
    height: 120px;
    border: 1px solid #e3f6fa;
    position: relative;
    font-size: 0.8rem;
    overflow: hidden;
}

.calendar-day.other-month {
    background: #f7f7f7;
    color: #aaaaaa;
}

.calendar-day-number {
    font-weight: 700;
    color: #0A8CA0;
    margin-bottom: 0.5rem;
}

.calendar-party {
    display: block;
    background: #EB1E80;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-badge.families,
.calendar-party.families {
    background: #EB1E80;
}

.status-badge.adults,
.calendar-party.adults {
    background: #1E3A8A;
}

.calendar-party.sold-out {
    background: #9a9a9a;
}

.calendar-party:hover {
    opacity: 0.9;
    transform: scale(1.02);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .parties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem !important;
    }

    .party-name {
        font-size: 1.1rem;
    }

    .section-intro {
        padding: 2rem 1rem;
    }

    .coming-soon-message {
        padding: 2rem 1rem;
    }

    .coming-soon-message h2 {
        font-size: 1.4rem;
    }

    .calendar-day {
        height: 100px;
        padding: 0.5rem;
    }
}
