/* ===== GENEL STILLER ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== BAŞLANGIÇ EKRANI ===== */
#baslangic-ekrani {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

#baslangic-ekrani:focus {
    outline: 4px solid #00d9ff;
    outline-offset: -4px;
}

.baslangic-icerik {
    text-align: center;
    color: white;
    padding: 40px;
}

.baslangic-icerik h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #00d9ff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.buyuk-yazi {
    font-size: 2rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.alt-bilgi {
    font-size: 1.2rem;
    opacity: 0.8;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ===== ANA EKRAN LAYOUT ===== */
#ana-ekran {
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    background: #000;
}

#ana-ekran.gizli {
    display: none;
}

/* BOŞ BUTONLAR */
.buyuk-buton.bos {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    color: #555 !important;
    cursor: not-allowed;
}

.buyuk-buton.bos .buton-numara,
.buyuk-buton.bos .buton-aciklama {
    opacity: 0.3;
}

/* ===== BÜYÜK BUTONLAR ===== */
.buyuk-buton {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    touch-action: manipulation;
}

.buyuk-buton:focus {
    outline: none;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.5);
}

.buyuk-buton:active {
    filter: brightness(1.1);
}

/* Buton 1 - Mavi/Mor */
#buton1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Buton 2 - Yeşil */
#buton2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

/* Buton 3 - Pembe/Kırmızı */
#buton3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Buton 0 - Tekrar - Turuncu */
#buton0,
.tekrar-buton {
    background: linear-gradient(135deg, #FFB75E 0%, #ED8F03 100%);
    color: white;
}

/* Buton içindeki yazılar */
.buton-numara {
    font-size: 6rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.buton-aciklama {
    font-size: 1.5rem;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Tam ekran buton (asansör için) */
.buyuk-buton.tam-ekran {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.buyuk-buton.tam-ekran .buton-numara {
    font-size: 8rem;
}

.buyuk-buton.tam-ekran .buton-aciklama {
    font-size: 2rem;
}

/* ===== AKTIF SES DURUMU ===== */
.buyuk-buton.caliniyor {
    animation: sesCaliniyor 0.5s ease infinite;
}

@keyframes sesCaliniyor {

    0%,
    100% {
        box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: inset 0 0 100px 20px rgba(255, 255, 255, 0.3);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
    .buton-numara {
        font-size: 4rem;
    }

    .buton-aciklama {
        font-size: 1rem;
    }

    .baslangic-icerik h1 {
        font-size: 2rem;
    }

    .buyuk-yazi {
        font-size: 1.5rem;
    }

    .buyuk-buton.tam-ekran .buton-numara {
        font-size: 5rem;
    }
}

@media (max-height: 500px) {
    .buton-numara {
        font-size: 3rem;
    }

    .buton-aciklama {
        font-size: 0.9rem;
    }
}