/* bilet.masiad.org.tr - MASİAD Uyumlu Stiller */

/* === Koltuk Haritası === */
.seat-map-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
    touch-action: none; /* JS ile yönetilecek */
    cursor: grab;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafbfc;
}
.seat-map-container:active {
    cursor: grabbing;
}

.seat-map-inner {
    transform-origin: 0 0;
    will-change: transform;
    display: inline-block;
    padding: 16px;
}

/* Zoom kontrolleri */
.zoom-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
}
.zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.15s;
    user-select: none;
}
.zoom-btn:hover {
    background: #f3f4f6;
}
.zoom-btn:active {
    background: #e5e7eb;
}

.seat {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    border: 1.5px solid transparent;
    user-select: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.seat:hover {
    z-index: 10;
}

.seat.available {
    background-color: #e8f2fc;
    border-color: #9ecaf1;
    color: #1a5091;
}
.seat.available:hover {
    background-color: #c5dff7;
    border-color: #4a9be4;
}

.seat.selected {
    background-color: #1f5fa8;
    border-color: #15417a;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.3);
}

.seat.reserved {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.seat.held {
    background-color: #fef5eb;
    border-color: #f5a333;
    color: #d97612;
    cursor: not-allowed;
}

/* Sahne */
.stage {
    background: linear-gradient(135deg, #1f5fa8, #15417a);
    color: white;
    border-radius: 10px 10px 50% 50%;
    padding: 12px 32px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(31, 95, 168, 0.3);
}

/* Bölüm başlıkları */
.section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 6px;
}

/* Satır etiketi */
.row-label {
    width: 18px;
    font-size: 10px;
    font-weight: 700;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Koltuk satırı */
.seat-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 2px;
    justify-content: center;
}

/* Bölüm konteyner */
.section-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: top;
}

/* Responsive: sections wrapper */
.sections-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    min-width: max-content;
}

/* Geri sayım */
.countdown-bar {
    height: 4px;
    background: linear-gradient(90deg, #1f5fa8, #f28b19);
    border-radius: 2px;
    transition: width 1s linear;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(31, 95, 168, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(31, 95, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 95, 168, 0); }
}

.seat.selected {
    animation: pulse-ring 2s infinite;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Modal overlay */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Tooltip - sadece desktop */
@media (min-width: 769px) {
    .seat[data-tooltip]:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 110%;
        left: 50%;
        transform: translateX(-50%);
        background: #111827;
        color: white;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 11px;
        white-space: nowrap;
        z-index: 100;
        pointer-events: none;
    }
}

/* Admin koltuk haritası */
.seat.admin-reserved {
    background-color: #fecaca;
    border-color: #f87171;
    color: #b91c1c;
    cursor: pointer;
    font-size: 8px;
}
.seat.admin-paid {
    background-color: #bbf7d0;
    border-color: #4ade80;
    color: #166534;
    cursor: pointer;
    font-size: 8px;
}

/* Zoom ipucu - mobilde göster */
.zoom-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    z-index: 15;
    pointer-events: none;
    transition: opacity 0.5s;
    text-align: center;
}

/* Print stili */
@media print {
    .no-print { display: none !important; }
    .seat { border: 1px solid #ccc !important; }
}
