/* ==========================================================================
   OC Tickets — Main Stylesheet
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.oc-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.oc-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ba0c2f;
    letter-spacing: -0.5px;
}

.oc-header p {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.oc-cart-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.oc-cart-button.has-items {
    background: #fef2f2;
    border-color: #fecaca;
}

.oc-cart-button span {
    font-weight: 600;
    color: #475569;
}

.oc-cart-total {
    font-weight: 700;
    color: #dc2626;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.oc-hero {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    padding: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.oc-hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.oc-hero-text {
    flex: 1;
    text-align: left;
}

.oc-hero h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.oc-hero-text p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 16px;
}

.oc-hero-image {
    flex: 1;
    max-width: 520px;
}

.oc-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.oc-vip-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #059669;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Mobile: stack, center text, image below */
@media (max-width: 768px) {
    .oc-hero {
        padding: 28px 20px;
    }
    .oc-hero-inner {
        flex-direction: column;
        gap: 24px;
    }
    .oc-hero-text {
        text-align: center;
        order: 1;
    }
    .oc-hero-image {
        order: 2;
        max-width: 100%;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */
.oc-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 40px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.oc-filter-btn {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.oc-filter-btn:hover {
    background: #f1f5f9;
}

.oc-filter-btn.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* --------------------------------------------------------------------------
   Tickets List
   -------------------------------------------------------------------------- */
.oc-tickets-container {
    padding: 20px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.oc-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oc-ticket-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 24px;
    gap: 20px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.oc-ticket-row:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.oc-ticket-row.in-cart {
    border-color: #dc2626;
}

/* Empty state */
.oc-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.oc-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.oc-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.oc-empty-state p {
    font-size: 0.95rem;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   Date Block
   -------------------------------------------------------------------------- */
.oc-date-block {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    min-width: 70px;
    border: 1px solid #e2e8f0;
}

.oc-date-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.oc-date-day {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin: 4px 0;
}

.oc-date-dow {
    font-size: 0.75rem;
    font-weight: 700;
}

.oc-date-dow.weekday  { color: #6b7280; }
.oc-date-dow.friday,
.oc-date-dow.saturday { color: #3b82f6; }
.oc-date-dow.sunday   { color: #f97316; }

/* --------------------------------------------------------------------------
   Team Info
   -------------------------------------------------------------------------- */
.oc-team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 200px;
    min-width: 180px;
}

.oc-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.oc-opponent-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.oc-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Tier & Pricing
   -------------------------------------------------------------------------- */
.oc-pricing-info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oc-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 700;
}

.oc-tier-badge.platinum { background: #fef3c7; color: #b45309; }
.oc-tier-badge.gold     { background: #fef9c3; color: #a16207; }
.oc-tier-badge.silver   { background: #f3f4f6; color: #6b7280; }

.oc-pricing-line {
    font-size: 0.85rem;
    color: #64748b;
}

.oc-pricing-line strong {
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   CTA Button
   -------------------------------------------------------------------------- */
.oc-request-btn {
    padding: 14px 20px;
    background: #dc2626;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    min-width: 140px;
    transition: all 0.2s ease;
}

.oc-request-btn:hover {
    background: #b91c1c;
    transform: scale(1.02);
}

.oc-request-btn.in-cart {
    background: #fee2e2;
    border: 2px solid #dc2626;
    color: #dc2626;
}

.oc-request-btn .total {
    font-size: 1rem;
    font-weight: 800;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Floating Cart Bar
   -------------------------------------------------------------------------- */
.oc-floating-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border-radius: 16px;
    padding: 16px 32px;
    display: none;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.oc-floating-cart.show {
    display: flex;
}

.oc-floating-cart-info {
    color: #fff;
}

.oc-floating-cart-info .count {
    font-weight: 600;
}

.oc-floating-cart-info .total {
    font-weight: 700;
}

.oc-floating-cart-info .savings {
    color: #4ade80;
    margin-left: 12px;
    font-size: 0.85rem;
}

.oc-floating-cart-btn {
    padding: 12px 24px;
    background: #dc2626;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.oc-floating-cart-btn:hover {
    background: #b91c1c;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.oc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.oc-modal-overlay.show {
    display: flex;
}

.oc-modal {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.oc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #64748b;
}

.oc-modal h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.oc-modal > p,
#formState > p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.oc-cart-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    max-height: 200px;
    overflow-y: auto;
}

.oc-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.oc-cart-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.oc-cart-item-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.oc-cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.oc-cart-item-price {
    font-weight: 700;
    color: #0f172a;
}

.oc-cart-item-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.oc-cart-item-remove:hover,
.oc-cart-item-remove:focus-visible {
    background: #fef2f2;
    color: #dc2626;
    outline: none;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.oc-form-row {
    display: flex;
    gap: 12px;
}

.oc-form-row .oc-form-group {
    flex: 1;
}

.oc-form-group {
    margin-bottom: 12px;
}

.oc-form-input {
    width: 100%;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.oc-form-input:focus {
    border-color: #dc2626;
}

.oc-form-textarea {
    resize: none;
}

.oc-form-submit {
    width: 100%;
    padding: 16px;
    background: #dc2626;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-top: 8px;
}

.oc-form-submit:hover {
    background: #b91c1c;
}

.oc-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Thank You Page
   -------------------------------------------------------------------------- */
.oc-thank-you {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    background: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.oc-thank-you-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.oc-thank-you-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.oc-thank-you h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.oc-thank-you p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.oc-thank-you p a {
    color: #ba0c2f;
    text-decoration: none;
    font-weight: 600;
}

.oc-thank-you-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 28px;
    background: #dc2626;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

.oc-thank-you-btn:hover {
    background: #b91c1c;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.oc-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    margin-top: 40px;
}

.oc-footer p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .oc-header,
    .oc-filters,
    .oc-tickets-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .oc-hero {
        padding: 30px 20px;
    }

    .oc-hero h2 {
        font-size: 1.5rem;
    }

    .oc-ticket-row {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "date team"
            "pricing pricing"
            "button button";
        gap: 16px;
        padding: 16px;
        align-items: center;
    }

    .oc-date-block {
        grid-area: date;
        justify-self: start;
    }

    .oc-team-info {
        grid-area: team;
        justify-content: flex-end;
        flex: 0 1 auto;
        min-width: 0;
    }

    .oc-pricing-info {
        grid-area: pricing;
        align-items: center;
        text-align: center;
    }

    .oc-tier-badge {
        align-self: center;
    }

    .oc-request-btn {
        grid-area: button;
        justify-self: center;
        min-width: 200px;
    }

    .oc-floating-cart {
        left: 20px;
        right: 20px;
        transform: none;
        flex-direction: column;
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   Small phones (≤ 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .oc-header {
        padding: 12px 16px;
    }

    .oc-header h1 {
        font-size: 1.2rem;
    }

    .oc-header p {
        font-size: 0.7rem;
    }

    .oc-cart-button {
        padding: 8px 12px;
        gap: 8px;
    }

    .oc-cart-button span {
        font-size: 0.8rem;
    }

    .oc-hero {
        padding: 20px 16px;
    }

    .oc-hero h2 {
        font-size: 1.2rem;
    }

    .oc-hero-text p {
        font-size: 0.85rem;
    }

    .oc-vip-badge {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .oc-filters {
        padding: 12px 16px;
        gap: 6px;
    }

    .oc-filter-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .oc-tickets-container {
        padding: 12px 12px 100px;
    }

    .oc-ticket-row {
        padding: 12px;
        gap: 12px;
    }

    .oc-opponent-name {
        font-size: 1rem;
    }

    .oc-pricing-line {
        font-size: 0.78rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .oc-request-btn {
        min-width: unset;
        width: 100%;
    }

    .oc-floating-cart {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 12px 16px;
        border-radius: 12px;
    }

    .oc-floating-cart-btn {
        width: 100%;
        text-align: center;
    }

    .oc-modal-overlay {
        padding: 10px;
    }

    .oc-modal {
        padding: 24px 20px;
        border-radius: 16px;
        max-height: 95vh;
    }

    .oc-modal h3 {
        font-size: 1.25rem;
    }

    .oc-form-row {
        flex-direction: column;
        gap: 0;
    }

    .oc-footer {
        padding: 24px 16px;
        margin-top: 20px;
    }

    .oc-thank-you {
        padding: 24px 16px;
    }

    .oc-thank-you-card {
        padding: 32px 24px;
    }

    .oc-thank-you h1 {
        font-size: 1.4rem;
    }
}
