/**
 * Event Ticket System - Single Ticket Widget CSS
 * Design: Boogiekathi CI (passend zum Multi-Day-Widget)
 * - Dunkelrot: #611111
 * - Gold: #D3B574
 * - TT-Club Grün: #008054
 */

/* ===== WIDGET CONTAINER ===== */
.ets-ticket-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(97, 17, 17, 0.3);
    box-sizing: border-box;
}

.ets-ticket-widget *,
.ets-ticket-widget *::before,
.ets-ticket-widget *::after {
    box-sizing: border-box;
}

/* ===== HEADER ===== */
.ets-tw-header {
    background: linear-gradient(135deg, #611111 0%, #4a0d0d 100%);
    padding: 25px 20px;
    text-align: center;
}

.ets-tw-header h3 {
    color: #ffffff;
    font-size: 1.5em;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ets-tw-subtitle {
    color: rgba(211, 181, 116, 0.85);
    font-size: 0.95em;
    margin: 0;
}

/* ===== CONTENT BEREICH ===== */
.ets-tw-content {
    background: #611111;
    padding: 20px;
}

/* ===== EVENT INFO GRID (2x2) ===== */
.ets-tw-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ets-tw-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.ets-tw-info-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ets-tw-info-icon {
    font-size: 1.3em;
    color: #D3B574;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.ets-tw-info-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ets-tw-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ets-tw-info-value {
    color: #ffffff;
    font-size: 0.95em;
    font-weight: 500;
}

.ets-tw-info-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

/* Full-width Info Item */
.ets-tw-info-item.full-width {
    grid-column: 1 / -1;
}

/* Preis-Kachel - dezent hervorgehoben */
.ets-tw-info-item.ets-tw-info-price {
    background: rgba(211, 181, 116, 0.15);
    border: 1px solid rgba(211, 181, 116, 0.3);
}

.ets-tw-info-item.ets-tw-info-price:hover {
    background: rgba(211, 181, 116, 0.2);
}

.ets-tw-price-highlight {
    color: #D3B574 !important;
    font-weight: 700;
    font-size: 1.1em;
}

/* ===== PREIS BEREICH ===== */
.ets-tw-price-section {
    background: rgba(211, 181, 116, 0.15);
    border: 2px solid rgba(211, 181, 116, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.ets-tw-price-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ets-tw-price-value {
    color: #D3B574;
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.2;
}

.ets-tw-price-range {
    color: #fff;
    font-size: 1.6em;
    font-weight: 700;
}

.ets-tw-price-range .ets-tw-price-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.ets-tw-price-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    margin-top: 8px;
}

/* ===== ANZAHL AUSWAHL ===== */
.ets-tw-quantity-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.ets-tw-quantity-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    font-weight: 500;
}

.ets-tw-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.ets-tw-quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #D3B574;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ets-tw-quantity-btn:hover {
    background: rgba(211, 181, 116, 0.3);
}

.ets-tw-quantity-btn:active {
    transform: scale(0.95);
}

.ets-tw-quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

.ets-tw-quantity-input::-webkit-outer-spin-button,
.ets-tw-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ets-tw-quantity-total {
    color: #D3B574;
    font-size: 1.1em;
    font-weight: 600;
}

/* ===== TT-CLUB SECTION ===== */
.ets-tw-ttclub {
    background: linear-gradient(135deg, rgba(0, 128, 84, 0.2) 0%, rgba(0, 80, 52, 0.3) 100%);
    border: 2px solid rgba(0, 128, 84, 0.4);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.ets-tw-ttclub-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ets-tw-ttclub-logo {
    font-size: 1.5em;
}

.ets-tw-ttclub-title {
    color: #4CAF93;
    font-weight: 700;
    font-size: 1em;
}

.ets-tw-ttclub-discount {
    margin-left: auto;
    background: #008054;
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.ets-tw-ttclub-input-wrapper {
    position: relative;
}

.ets-tw-ttclub-input {
    width: 100%;
    padding: 14px 50px 14px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px;
    background: rgba(0, 60, 40, 0.5) !important;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ets-tw-ttclub-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
}

.ets-tw-ttclub-input:focus {
    outline: none;
    border-color: #008054 !important;
    background: rgba(0, 80, 52, 0.6) !important;
    box-shadow: 0 0 15px rgba(0, 128, 84, 0.3);
}

.ets-tw-ttclub-input.valid {
    border-color: #4CAF50 !important;
}

.ets-tw-ttclub-status {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ets-tw-ttclub-status.valid {
    opacity: 1;
    color: #4CAF50;
}

.ets-tw-ttclub-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8em;
    margin-top: 8px;
    text-align: center;
}

/* TT-Club Limit Reached */
.ets-tw-ttclub.limit-reached {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.2) 0%, rgba(80, 80, 80, 0.3) 100%);
    border-color: rgba(128, 128, 128, 0.4);
}

.ets-tw-ttclub.limit-reached .ets-tw-ttclub-title {
    color: rgba(255, 255, 255, 0.6);
}

.ets-tw-ttclub-limit-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    text-align: center;
}

/* TT-Club Progress Bar */
.ets-tw-ttclub-progress {
    margin-top: 12px;
}

.ets-tw-ttclub-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.ets-tw-ttclub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #008054, #4CAF93);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.ets-tw-ttclub-progress-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75em;
    margin-top: 5px;
    text-align: center;
}

/* ===== KAUFEN BUTTON ===== */
.ets-tw-buy-section {
    padding-top: 5px;
}

.ets-tw-buy-button {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #D3B574 0%, #C4A665 100%);
    color: #611111;
    border: none;
    border-radius: 10px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(211, 181, 116, 0.4);
}

.ets-tw-buy-button:hover {
    background: linear-gradient(135deg, #E0C485 0%, #D3B574 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 181, 116, 0.5);
}

.ets-tw-buy-button:active {
    transform: translateY(0);
}

.ets-tw-buy-button:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ets-tw-buy-button .ets-tw-btn-icon {
    margin-right: 8px;
}

/* Button Loading State */
.ets-tw-buy-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* ===== FOOTER / HINWEISE ===== */
.ets-tw-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    text-align: center;
}

.ets-tw-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    margin: 0;
}

.ets-tw-hint a {
    color: #D3B574;
    text-decoration: none;
}

.ets-tw-hint a:hover {
    text-decoration: underline;
}

/* ===== VERKAUF NICHT AKTIV ===== */
.ets-tw-sale-notice {
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.ets-tw-sale-notice-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.ets-tw-sale-notice-text {
    color: #fff;
    font-size: 1em;
    margin: 0;
}

.ets-tw-sale-notice-date {
    color: #D3B574;
    font-weight: 600;
}

/* Ausverkauft */
.ets-tw-sold-out {
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.ets-tw-sold-out-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.ets-tw-sold-out-text {
    color: #dc3545;
    font-size: 1.2em;
    font-weight: 700;
    margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media screen and (max-width: 768px) {
    .ets-ticket-widget {
        margin: 20px 0;
    }
    
    .ets-tw-header {
        padding: 20px 15px;
    }
    
    .ets-tw-header h3 {
        font-size: 1.3em;
    }
    
    .ets-tw-content {
        padding: 15px;
    }
    
    .ets-tw-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ets-tw-price-value {
        font-size: 1.8em;
    }
    
    .ets-tw-quantity-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .ets-tw-buy-button {
        padding: 15px 20px;
        font-size: 1em;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .ets-ticket-widget {
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .ets-tw-header {
        padding: 18px 12px;
    }
    
    .ets-tw-header h3 {
        font-size: 1.15em;
    }
    
    .ets-tw-content {
        padding: 12px;
    }
    
    .ets-tw-info-item {
        padding: 10px 12px;
    }
    
    .ets-tw-price-section {
        padding: 15px;
    }
    
    .ets-tw-price-value {
        font-size: 1.6em;
    }
    
    .ets-tw-ttclub {
        padding: 12px 15px;
    }
    
    .ets-tw-buy-button {
        padding: 14px 15px;
        font-size: 0.95em;
        letter-spacing: 0.5px;
    }
}

