* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.anket-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.anket-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.anket-header h1 {
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.aciklama {
    font-size: 1.1em;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.sorular-container {
    padding: 40px;
}

.soru-karti {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.soru-karti:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.soru-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2em;
    flex-shrink: 0;
}

.soru-metni {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.6;
}

.secenekler {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secenek {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    position: relative;
}

.secenek:hover {
    background: #f0f7ff;
    border-color: #667eea;
    transform: translateX(5px);
}

.secenek.dragging {
    opacity: 0.5;
    transform: scale(1.05);
}

.secenek.drag-over {
    background: #e8f4ff;
    border-color: #667eea;
}

.secenek input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.secenek label {
    cursor: pointer;
    flex: 1;
    font-size: 1em;
    color: #555;
    line-height: 1.4;
}

.secenek input[type="radio"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

/* Seçenek renklendirmeleri */
.secenek-5 input[type="radio"]:checked ~ label,
.secenek-5.selected {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    color: white !important;
    padding: 5px 10px;
    border-radius: 5px;
}

.secenek-4 input[type="radio"]:checked ~ label,
.secenek-4.selected {
    background: linear-gradient(90deg, #8BC34A 0%, #7CB342 100%);
    color: white !important;
    padding: 5px 10px;
    border-radius: 5px;
}

.secenek-3 input[type="radio"]:checked ~ label,
.secenek-3.selected {
    background: linear-gradient(90deg, #FFC107 0%, #FFB300 100%);
    color: white !important;
    padding: 5px 10px;
    border-radius: 5px;
}

.secenek-2 input[type="radio"]:checked ~ label,
.secenek-2.selected {
    background: linear-gradient(90deg, #FF9800 0%, #FB8C00 100%);
    color: white !important;
    padding: 5px 10px;
    border-radius: 5px;
}

.secenek-1 input[type="radio"]:checked ~ label,
.secenek-1.selected {
    background: linear-gradient(90deg, #f44336 0%, #e53935 100%);
    color: white !important;
    padding: 5px 10px;
    border-radius: 5px;
}

.buton-container {
    padding: 0 40px 40px;
    text-align: center;
}

.gonder-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gonder-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.gonder-btn:active:not(:disabled) {
    transform: translateY(0);
}

.gonder-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Güvenlik alanı stilleri */
.guvenlik-alani {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 40px;
    text-align: center;
}

.guvenlik-alani h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.matematik-soru {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin: 15px 0;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.matematik-soru span {
    font-weight: bold;
    color: #333;
}

.matematik-soru input {
    width: 80px;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    border: 2px solid #667eea;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.matematik-soru input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Hata ve uyarı mesajları */
.hata-mesaji {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 40px;
    text-align: center;
    display: none;
    border: 1px solid #fcc;
    animation: shake 0.5s;
}

.uyari-kutusu {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kalan-sure {
    background: #e8f4ff;
    color: #0066cc;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

/* Honeypot gizleme */
.honeypot {
    position: absolute;
    left: -9999px;
}

/* İlerleme çubuğu */
.ilerleme-container {
    margin-bottom: 20px;
}

.ilerleme-bar {
    background: #e0e0e0;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.ilerleme-dolu {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 0;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ilerleme-yuzde {
    color: #667eea;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    font-size: 1.1em;
}

/* Animasyonlar */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Tablet Görünüm */
@media (max-width: 1024px) and (min-width: 769px) {
    .anket-container {
        margin: 0 20px;
    }
    
    .sorular-container {
        padding: 30px;
    }
}

/* MOBİL UYUMLULUK - GÜNCELLENDİ */
@media (max-width: 768px) {
    body {
        padding: 10px;
        background-attachment: fixed;
    }
    
    .anket-container {
        border-radius: 15px;
        margin: 0;
    }
    
    .anket-header {
        padding: 25px 20px;
    }
    
    .anket-header h1 {
        font-size: 1.4em;
        line-height: 1.3;
    }
    
    .aciklama {
        font-size: 0.95em;
        padding: 0 10px;
    }
    
    .sorular-container {
        padding: 20px 15px;
    }
    
    .soru-karti {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    /* Soru numarası mobilde düzeltme */
    .soru-no {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
        margin-bottom: 12px;
        position: relative;
        z-index: 1;
    }
    
    .soru-metni {
        font-size: 1em;
        margin-bottom: 15px;
        clear: both;
    }
    
    .secenekler {
        gap: 8px;
    }
    
    .secenek {
        padding: 12px 15px;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .secenek:hover {
        transform: none;
    }
    
    .secenek:active {
        background: #f0f7ff;
        border-color: #667eea;
        transform: scale(0.98);
    }
    
    .secenek input[type="radio"] {
        width: 18px;
        height: 18px;
        margin-right: 12px;
    }
    
    .secenek label {
        font-size: 0.95em;
        padding: 2px 0;
    }
    
    /* Güvenlik alanı mobil */
    .guvenlik-alani {
        margin: 15px;
        padding: 15px;
    }
    
    .guvenlik-alani h3 {
        font-size: 1.1em;
    }
    
    .matematik-soru {
        font-size: 16px;
        padding: 10px 15px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .matematik-soru input {
        width: 60px;
        padding: 8px;
        font-size: 16px;
    }
    
    /* Buton container mobil */
    .buton-container {
        padding: 0 20px 25px;
    }
    
    .gonder-btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 1.1em;
    }
    
    /* Hata ve uyarı mesajları mobil */
    .hata-mesaji,
    .uyari-kutusu {
        margin: 15px;
        font-size: 0.95em;
    }
    
    /* İlerleme çubuğu mobil */
    .ilerleme-bar {
        height: 25px;
    }
    
    .ilerleme-yuzde {
        font-size: 1em;
    }
}

/* Çok küçük ekranlar için (350px ve altı) */
@media (max-width: 350px) {
    .anket-header h1 {
        font-size: 1.2em;
    }
    
    .soru-no {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    
    .soru-metni {
        font-size: 0.9em;
    }
    
    .secenek {
        padding: 10px 12px;
    }
    
    .secenek label {
        font-size: 0.9em;
    }
    
    .matematik-soru {
        font-size: 14px;
        gap: 5px;
    }
    
    .matematik-soru input {
        width: 50px;
        padding: 6px;
    }
}

/* Touch cihazlar için özel optimizasyonlar */
@media (hover: none) and (pointer: coarse) {
    .secenek {
        cursor: pointer;
        min-height: 48px; /* Touch target minimum boyutu */
    }
    
    .secenek input[type="radio"] {
        width: 24px;
        height: 24px;
    }
    
    /* Sürükle bırak yerine tıklama odaklı */
    .secenek:active {
        background: #e8f4ff;
        transform: scale(0.98);
    }
    
    .gonder-btn {
        min-height: 48px;
    }
}

/* Landscape mobil görünüm */
@media (max-width: 768px) and (orientation: landscape) {
    .anket-header {
        padding: 20px;
    }
    
    .anket-header h1 {
        font-size: 1.3em;
    }
    
    .sorular-container {
        padding: 15px;
    }
    
    .soru-karti {
        padding: 15px;
    }
}

/* Print stilleri */
@media print {
    body {
        background: white;
    }
    
    .anket-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .gonder-btn,
    .guvenlik-alani {
        display: none;
    }
}

/* Yüksek kontrast modu desteği */
@media (prefers-contrast: high) {
    .secenek {
        border-width: 3px;
    }
    
    .soru-no {
        border: 2px solid white;
    }
    
    .secenek input[type="radio"]:checked + label {
        text-decoration: underline;
    }
}

/* Karanlık mod desteği (opsiyonel) */
@media (prefers-color-scheme: dark) {
    /* İsteğe bağlı olarak karanlık mod stilleri eklenebilir */
}

/* Fokus stilleri (erişilebilirlik) */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

input[type="radio"]:focus-visible {
    outline-offset: 4px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection rengi */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}