/* Önceki style.css içeriği tamamen aynı kalacak. */
/* Kopyalamaya gerek yok, sadece not olarak bırakıyorum. */
body {
    margin: 0;
    background-color: #000;
    color: #00ff00;
    font-family: 'Consolas', 'Monaco', 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: none; /* Fare imlecini gizle */
}

/* Spinner (Yükleme Ekranı) Stilleri */
.spinner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #ff0000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.message {
    margin-top: 25px;
    font-size: 22px;
    color: #ff0000;
    text-shadow: 0 0 8px #ff0000;
}
.small-text {
    margin-top: 15px;
    font-size: 18px;
    color: #ff5500;
}

/* Hacker Efekti Katmanı */
.hacker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.99);
    color: #00ff00;
    font-family: 'Consolas', 'Monaco', 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 20px; /* Genel padding */
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    cursor: none;
}

.hacker-overlay.active {
    opacity: 1;
}

.hacker-content {
    max-width: 95%;
    max-height: 95%;
    overflow: hidden; /* İçerik taşmasını engelle */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Glitch Efektli Başlık */
.glitch-text {
    font-size: clamp(32px, 10vw, 100px); /* Temel olarak iyi, mobil için ayar yapılacak */
    margin-bottom: 20px;
    color: #ff0000;
    text-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000, 0 0 45px #ff0000;
    animation: glitch 0.3s infinite alternate;
    position: relative;
    user-select: none;
    line-height: 1;
}

@keyframes glitch {
    0% {
        text-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000, 0 0 45px #ff0000;
        transform: translate(0);
    }
    10% { transform: translate(-5px, 5px); }
    20% { transform: translate(5px, -5px); }
    30% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    50% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    90% { transform: translate(-0.5px, 0.5px); }
    100% { transform: translate(0); }
}

/* Titreme Efektli Metinler */
.flicker-text {
    font-size: clamp(18px, 3vw, 35px);
    margin-bottom: 10px;
    color: #ffff00;
    animation: flicker 0.05s infinite alternate;
    user-select: none;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}

.warning-data-text {
    font-size: clamp(16px, 2.5vw, 30px);
    margin: 8px 0;
    user-select: none;
}

.code-flow {
    white-space: pre-wrap;
    word-break: break-all;
    text-align: left;
    height: 40vh; /* Temel yükseklik */
    overflow-y: scroll;
    font-size: clamp(12px, 1.8vw, 18px);
    line-height: 1.1;
    background-color: rgba(0, 255, 0, 0.03);
    border: 2px dashed #00ff00;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #002200;
    user-select: none;
    pointer-events: none;
}

.code-flow::-webkit-scrollbar {
    width: 10px;
}
.code-flow::-webkit-scrollbar-track {
    background: #002200;
}
.code-flow::-webkit-scrollbar-thumb {
    background-color: #00ff00;
    border-radius: 5px;
    border: 2px solid #00ff00;
}

.countdown {
    margin-top: 30px;
    font-size: clamp(18px, 3vw, 32px);
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff;
    user-select: none;
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.warning-text {
    margin-top: 20px;
    font-size: clamp(16px, 2.5vw, 28px);
    color: #ffcc00;
    animation: flicker 0.1s infinite alternate;
    user-select: none;
}

/* Sahte Hata Modalı */
.fake-error-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222;
    border: 5px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
    z-index: 100;
    width: clamp(320px, 85vw, 600px); /* Mobil için genişlik ayarı */
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: modal-appear 0.2s ease-out;
    user-select: none;
}

@keyframes modal-appear {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-header {
    background-color: #b30000;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    border-bottom: 2px solid #ff0000;
    cursor: default;
    pointer-events: none;
}

.modal-title {
    font-size: 18px;
    text-shadow: 0 0 5px black;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: default !important;
    padding: 0 8px;
    pointer-events: none !important;
    opacity: 0.3 !important;
}

.modal-body {
    padding: 25px;
    font-size: 16px; /* Biraz daha küçük font */
    line-height: 1.6;
    text-align: left;
}

.modal-body p {
    margin-bottom: 15px;
    color: #ffdd00;
}

.modal-ok-btn {
    display: block;
    width: 120px;
    margin: 25px auto 0;
    padding: 10px 20px;
    background-color: #8b0000;
    color: white;
    border: 2px solid #ff0000;
    border-radius: 5px;
    cursor: default !important;
    font-size: 18px;
    pointer-events: none !important;
    opacity: 0.3 !important;
}

/* --- Mobil Uyumlu Medya Sorguları --- */

/* Telefonlar için (Örnek: 600px genişliğe kadar) */
@media (max-width: 600px) {
    .hacker-overlay {
        padding: 10px; /* Kenar boşluklarını azalt */
    }

    .glitch-text {
        font-size: clamp(24px, 8vw, 60px); /* Telefon ekranında daha küçük ana başlık */
        margin-bottom: 10px;
    }

    .flicker-text, .warning-data-text {
        font-size: clamp(14px, 2.5vw, 20px); /* Telefonlarda daha küçük metinler */
        margin-bottom: 5px;
    }

    .code-flow {
        height: 35vh; /* Kod akış alanının yüksekliğini ayarla */
        font-size: clamp(9px, 1.5vw, 14px); /* Mobil için daha küçük kod fontu */
        padding: 10px;
    }

    .countdown {
        font-size: clamp(16px, 2.8vw, 24px); /* Geri sayım fontu */
        margin-top: 15px;
    }

    .warning-text {
        font-size: clamp(14px, 2.2vw, 20px); /* Uyarı metni fontu */
        margin-top: 10px;
    }

    .fake-error-modal {
        width: 95vw; /* Modal genişliğini artır */
        padding: 10px; /* Modal içi boşluğu azalt */
    }

    .modal-header {
        font-size: 16px; /* Modal başlık fontu */
        padding: 8px 15px;
    }

    .modal-body {
        padding: 15px; /* Modal gövde boşluğu */
        font-size: 14px; /* Modal metin fontu */
    }

    .modal-body p {
        margin-bottom: 10px;
    }

    .modal-ok-btn {
        width: 100px;
        font-size: 16px;
        padding: 8px 15px;
        margin-top: 15px;
    }

    .spinner .message, .spinner .small-text {
        font-size: clamp(16px, 4vw, 20px); /* Spinner metinleri mobil için ayarla */
    }
}

/* Küçük telefonlar veya yatay görünüm için ek ayarlamalar */
@media (max-height: 400px) and (orientation: landscape) {
    .hacker-content {
        max-height: 98%; /* Yatayda daha fazla yer aç */
    }
    .code-flow {
        height: 25vh; /* Yatayda kod akışı için daha az yükseklik */
    }
}