/* PİRPİRİM SHOW - Ana Stil Dosyası */

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #1a1a1a;
    --light-gray: #ecf0f1;
    --gray: #95a5a6;
    --white: #ffffff;
    --sahne-color: #8b4513;
    --koltuk-bos: #32cd32;
    --koltuk-satildi: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--dark-color);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--warning-color);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.legend {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.legend-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.legend-box.bos {
    background: var(--koltuk-bos);
}

.legend-box.satildi {
    background: var(--koltuk-satildi);
}

/* WhatsApp Butonu */
.whatsapp-btn a {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #25D366;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-btn a:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
}

.whatsapp-btn i {
    font-size: 16px;
}
.back-link, .admin-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover, .admin-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Salon Container */
.salon-container {
    padding: 40px;
    background: var(--light-gray);
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.sahne-isik {
    text-align: center;
    margin-bottom: 30px;
}

.sign {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    border: 3px solid var(--danger-color);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
    letter-spacing: 2px;
}

.salon-plan {
    position: relative;
    margin-bottom: 40px;
}

.giris-sign {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.sign-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 30px 12px;
    background: var(--white);
    border: 3px solid var(--danger-color);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.4;
}

.koltuk-alani {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.sira-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 5px 0;
}

.koltuk {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--koltuk-bos);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 3px;
}

.koltuk:hover:not(.satildi) {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.koltuk.satildi {
    background: var(--koltuk-satildi);
    cursor: not-allowed;
    opacity: 0.8;
}

/* Kullanılmış biletli koltuk (sarı) - özellikle admin panelinde görsel ayrım için */
.koltuk.kullanildi {
    background: #f1c40f; /* sarı */
    cursor: not-allowed;
    opacity: 0.9;
}

.koltuk.kullanildi .koltuk-label {
    background: #f1c40f;
    color: #2c3e50;
}

.koltuk-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--koltuk-bos);
    color: var(--dark-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    border: 2px solid rgba(0, 0, 0, 0.3);
    z-index: 5;
    min-width: 35px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.koltuk.satildi .koltuk-label {
    background: var(--koltuk-satildi);
    color: var(--white);
}

.koltuk i {
    color: var(--white);
    font-size: 1.2rem;
}

/* Sahne */
.sahne {
    margin-top: 40px;
    text-align: center;
}

.sahne-panel {
    background: linear-gradient(135deg, var(--sahne-color) 0%, #654321 100%);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sahne-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
}

.sahne-panel h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 5px;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    padding: 25px 30px;
    background: var(--light-gray);
    text-align: center;
    border-top: 2px solid var(--gray);
}

footer p {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

footer i {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 5px;
        overflow-x: hidden;
    }
    
    /* WhatsApp Butonu Mobil */
    .whatsapp-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .whatsapp-btn a {
        padding: 8px 12px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
    
    .container {
        border-radius: 10px;
        overflow-x: hidden;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .legend {
        justify-content: center;
        gap: 15px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 2rem;
    }

    .salon-container {
        padding: 10px;
        overflow-x: hidden;
    }

    .salon-plan {
        flex-direction: column;
        align-items: center;
    }

    .koltuk {
        width: 28px;
        height: 28px;
        min-width: 28px;
        margin: 0 1px;
        position: relative;
        flex-direction: column !important;
        padding: 2px !important;
    }
    
    .koltuk i {
        display: block !important;
        font-size: 0.75rem !important;
        color: var(--white) !important;
        margin-bottom: 1px !important;
        line-height: 1 !important;
    }
    
    .koltuk-label {
        position: static !important;
        transform: none !important;
        font-size: 0.5rem !important;
        padding: 1px 2px !important;
        width: 100% !important;
        font-weight: 700 !important;
        background: transparent !important;
        color: var(--white) !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9) !important;
        display: block !important;
        white-space: nowrap !important;
        text-align: center !important;
        line-height: 1 !important;
    }
    
    .sira-row {
        gap: 2px;
        justify-content: center;
        flex-wrap: nowrap;
        margin-bottom: 12px;
        padding: 3px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sira-row::-webkit-scrollbar {
        display: none;
    }
    
    .sira-row {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .sahne-panel h2 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .sahne-panel {
        padding: 20px 10px;
    }

    .sahne-isik {
        margin-bottom: 15px;
    }

    .sign {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .koltuk-alani {
        padding: 10px 5px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .container {
        border-radius: 0;
    }

    /* WhatsApp Butonu Küçük Mobil */
    .whatsapp-btn a {
        font-size: 0.75rem;
        padding: 7px 10px;
    }

    .koltuk {
        width: 24px;
        height: 24px;
        min-width: 24px;
        margin: 0 1px;
        position: relative;
        flex-direction: column !important;
        padding: 2px !important;
    }
    
    .koltuk i {
        display: block !important;
        font-size: 0.65rem !important;
        color: var(--white) !important;
        margin-bottom: 1px !important;
        line-height: 1 !important;
    }
    
    .koltuk-label {
        position: static !important;
        transform: none !important;
        font-size: 0.45rem !important;
        padding: 1px 2px !important;
        width: 100% !important;
        font-weight: 700 !important;
        background: transparent !important;
        color: var(--white) !important;
        border: none !important;
        box-shadow: none !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9) !important;
        display: block !important;
        white-space: nowrap !important;
        text-align: center !important;
        line-height: 1 !important;
    }

    .sira-row {
        gap: 1px;
        margin-bottom: 10px;
        padding: 2px 0;
    }
    
    .koltuk-alani {
        padding: 5px 2px;
    }

    .sahne-panel h2 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .sign {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}