/* Simple Ticket Forge – Frontend Shortcode Styles (Material/Tailwind-inspired) */

.stf-event-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Header ─────────────────────────────────────────────────────── */
.stf-event-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    padding: 28px 32px 24px;
}

.stf-event-name {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* ── Event Details ───────────────────────────────────────────────── */
.stf-event-details {
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stf-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.stf-detail-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.stf-detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.stf-detail-value {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

/* ── Ticket Section ──────────────────────────────────────────────── */
.stf-ticket-section {
    padding: 22px 32px 28px;
}

.stf-availability {
    margin-bottom: 16px;
}

.stf-ticket-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 5px 14px;
    border-radius: 20px;
}

.stf-ticket-count::before {
    content: '✓';
    font-weight: 800;
}

/* Status messages */
.stf-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.stf-status strong {
    display: block;
    font-weight: 700;
    font-size: 15px;
}

.stf-status--soon {
    background: #fefce8;
    border: 1px solid #fef08a;
    color: #854d0e;
}

.stf-status--closed {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.stf-status--soldout {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    justify-content: center;
}

.stf-status--unavailable {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}

.stf-error {
    color: #dc2626;
    font-size: 14px;
    padding: 12px 16px;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* ── Quantity stepper ────────────────────────────────────────────── */
.stf-qty-form {
    margin: 0;
}

.stf-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stf-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #1d4ed8;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.stf-qty-btn {
    width: 40px;
    height: 44px;
    background: #eff6ff;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: #1d4ed8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.stf-qty-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.stf-qty-btn:active {
    background: #1e40af;
    color: #ffffff;
}

.stf-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #eff6ff;
    color: #93c5fd;
}

.stf-qty-input {
    width: 52px;
    height: 44px;
    border: none;
    border-left: 1px solid #bfdbfe;
    border-right: 1px solid #bfdbfe;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
}

.stf-qty-input::-webkit-outer-spin-button,
.stf-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Add to Cart button ──────────────────────────────────────────── */
.stf-add-to-cart-btn {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1d4ed8;
    color: #ffffff;
    padding: 0 24px;
    height: 44px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.stf-add-to-cart-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.stf-add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .stf-event-header {
        padding: 22px 20px 18px;
    }

    .stf-event-name {
        font-size: 19px;
    }

    .stf-event-details,
    .stf-ticket-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}
