/* GENEL STİLLER */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: white;
    padding: 20px;
}

.quiz-container {
    max-width: 1400px; /* Maksimum genişlik */
    margin: 0 auto; /* Ortala */
    padding: 20px;
}

/* Quiz sayfasındaki h1 başlıkları biraz küçült */
.quiz-container > h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: center;
}

/* Header (ANA SAYFA) */
.home-header {
    text-align: center;
    margin-bottom: 15px; /* 30px'ten 15px'e düştü */
}

.home-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.home-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* MOBİLDE BAŞLIK KÜÇÜLSÜN */
@media (max-width: 480px) {
    .home-header h1 {
        font-size: 1.4rem !important;
    }
}

/* QUIZ HEADER (Soru / Puan) */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 12px;
    flex-wrap: wrap;
}

.question-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffd700;
}

.score-badge {
    background: rgba(59, 130, 246, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-badge::before {
    content: "💎";
    font-size: 1.2rem;
}

/* PROGRESS BAR */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s;
}

/* Category Tag (istersen kullan) */
.category-tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.3);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    font-weight: 600;
}

/* QUESTION BOX – biraz sıkı */
.question-box {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px 22px;
    margin-bottom: 25px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* SORU METNİ – %30 kadar küçük */
.question-text {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* OPTIONS – GOT tarzı, masaüstünde uzun */
.options-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-button {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
    text-align: left;
    width: 100%;         /* her ekranda kutu geniş */
}

.option-button:hover:not(.correct):not(.wrong):not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(6px);
}

.option-button.correct {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    animation: correctPulse 0.5s ease;
}

.option-button.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    animation: shake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.option-button:disabled {
    cursor: not-allowed;
}

.option-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.option-button.correct .option-letter {
    background: #22c55e;
}

.option-button.wrong .option-letter {
    background: #ef4444;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Result Page */
.result-box {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.result-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.result-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.result-score {
    margin-bottom: 25px;
}

.score-big {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.score-percentage {
    font-size: 1rem;
    color: #94a3b8;
    margin-top: 10px;
    font-weight: 600;
}

.result-message {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Buttons */
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Share Buttons */
.share-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-button.twitter {
    background: #000000;
    color: white;
}

.share-button.whatsapp {
    background: #25D366;
    color: white;
}

.share-button.facebook {
    background: #1877f2;
    color: white;
}

.share-button.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

/* Home Page – test kartları */
.test-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    text-align: center;
    display: block;
}

/* MASAÜSTÜ İÇİN GRID - Testler yan yana (SADECE ANA SAYFA) */
@media (min-width: 769px) {
    /* Grid sadece home-header varsa aktif olur (ana sayfa) */
    .quiz-container:has(.home-header) {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
        align-items: start;
    }

    /* Header ve özel bölümler grid dışında tam genişlik */
    .quiz-container > .home-header,
    .quiz-container > .search-container,
    .quiz-container > .email-box,
    .quiz-container > .seo-footer,
    .quiz-container > .iletisim-kutusu {
        grid-column: 1 / -1;
    }

    .quiz-container:has(.home-header) .test-card {
        margin-bottom: 0; /* Grid'de margin gerekmez */
        padding: 28px 20px; /* Biraz daha kompakt */
    }

    .quiz-container:has(.home-header) .test-card h3 {
        font-size: 1.35rem; /* Başlık biraz küçük */
    }

    .quiz-container:has(.home-header) .test-card p {
        font-size: 0.95rem; /* Açıklama biraz küçük */
    }

    /* Test sayfalarında normal görünüm */
    .quiz-container:not(:has(.home-header)) {
        max-width: 900px; /* Test sayfaları daha dar */
        display: block;
    }
}

/* MOBİL - Alt alta */
@media (max-width: 768px) {
    .test-card {
        margin-bottom: 15px;
    }
}

.test-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.test-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.test-card p {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 18px;
}

.start-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ÖNERİ KUTUSU (ŞIK TASARIM) */
.suggest-container {
    max-width: 600px;
    margin: 20px auto 10px auto;
}

.suggest-box {
    background: #ffffff;
    border: 2px solid #4a6fa5;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.suggest-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
}

.suggest-input:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 8px rgba(74,111,165,0.3);
}

.suggest-btn {
    background: linear-gradient(135deg, #4a6fa5, #6ea0ff);
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s;
    white-space: nowrap;
}

.suggest-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Gönderim sonucu mesajı */
.suggest-result {
    margin-top: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    display: none;
}


/* ARAMA KUTUSU STİLLERİ */
.search-container {
    max-width: 600px;
    margin: 10px auto 25px auto; /* Üst: 10px, Alt: 25px */
    width: 100%;
    padding: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

#searchInput {
    width: 100%;
    padding: 15px 45px 15px 20px;
    font-size: 16px;
    border: 2px solid #4a6fa5;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
}

#searchInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

#searchInput::placeholder {
    color: #666;
}

#clearSearch {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
}

#clearSearch:hover {
    color: #333;
}

#searchResults {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    display: none;
}

/* Email Subscribe Box */
.email-box {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.email-box h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.email-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-direction: row;
}

.email-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 25px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    min-width: 0;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
}

.email-submit {
    padding: 12px 28px;
    border-radius: 25px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.email-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}


/* SEO Footer */
.seo-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.seo-content {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.seo-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.seo-content p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
    text-align: left;
}

.seo-content p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #a78bfa;
}

/* Responsive */
@media (min-width: 1400px) {
    /* Çok büyük ekranlarda hala 5 sütun (220px) */
    .quiz-container:has(.home-header) {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 1200px) {
    /* Büyük ekranlarda 5 sütun */
    .quiz-container:has(.home-header) {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .quiz-container {
        display: block !important; /* Mobilde grid iptal */
    }

    .test-card {
        padding: 25px 20px;
        margin-bottom: 15px;
    }

    .test-card h3 {
        font-size: 1.3rem;
    }

    .search-container {
        padding: 0;
        margin: 20px 0;
    }

    #searchInput {
        font-size: 15px;
        padding: 13px 40px 13px 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .quiz-container {
        padding: 10px;
    }

    .home-header h1 {
        font-size: 2rem;
    }

    .home-header p {
        font-size: 1rem;
    }

    .test-card {
        padding: 20px 18px;
        margin-bottom: 12px;
        border-radius: 15px;
    }

    .test-card h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .test-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .start-button {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .search-container {
        margin: 15px 0;
    }

    #searchInput {
        padding: 12px 40px 12px 15px;
        font-size: 14px;
        border-radius: 20px;
    }

    #clearSearch {
        right: 12px;
        font-size: 16px;
    }

    .email-box {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .email-box h3 {
        font-size: 1.1rem;
    }

    .email-form {
        flex-direction: column;
        gap: 10px;
    }

    .email-input {
        padding: 12px 15px;
        font-size: 0.9rem;
        width: 100%;
    }

    .email-submit {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }

    .quiz-navigation {
        flex-wrap: wrap;
    }

    .nav-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .seo-content {
        padding: 20px 15px;
    }

    .seo-content h2 {
        font-size: 1.15rem;
    }

    .seo-content p {
        font-size: 0.85rem;
    }

    .quiz-container > h1 {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .option-button {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .option-letter {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}
/* --- ÖNERİ KUTUSU MASAÜSTÜ GRID HİZALAMA FIX --- */

/* Ana sayfada grid kullanıldığı için öneri kutusu grid içinde sola kayıyordu.
   Bu satır, öneri kutusunu tam genişliğe oturtur. */
.quiz-container .suggest-container {
    grid-column: 1 / -1 !important;
}

/* Masaüstünde arama kutusuyla hizalı dursun diye margin ayarı */
.suggest-container {
    max-width: 600px;
    margin: 25px auto 25px auto !important;
}/* MOBİLDE ÖNERİ BUTONU KISALSIN */
@media (max-width: 480px) {
    .suggest-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    .suggest-btn::after {
        content: "Gönder";
    }
    .suggest-btn {
        font-size: 0; /* gerçek yazıyı gizle */
    }
    .suggest-btn::after {
        font-size: 15px;
        font-weight: 600;
        color: white;
    }
}
.result-box {
    display: flex;
    flex-direction: column;
}

.result-box > h2 { order: 1; }
.result-box > p { order: 2; }
.share-section { order: 3 !important; }
.result-actions { order: 4; }
.share-section {
    margin: 40px 0 25px;
    text-align: center;
}

.share-section h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
}

.share-button {
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    display: block;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.share-button:hover {
    transform: scale(1.03);
}

/* Renkler */
.share-button.twitter { background: #000; }
.share-button.whatsapp { background: #25D366; }
.share-button.facebook { background: #1877F2; }
.share-button.instagram { background: linear-gradient(90deg,#f58529,#d62976,#962fbf,#4f5bd5); }

