/* =========================================================
   GENEL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at top left,
            #18213d 0%,
            #0b1020 40%,
            #070b14 100%
        );

    color: #e7eaf0;
}


/* =========================================================
   ANA KONTEYNER
   ========================================================= */

.container {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 60px 0;
}


/* =========================================================
   KART
   ========================================================= */

.card {
    background: rgba(18, 25, 43, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    padding: 35px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(10px);
}


/* =========================================================
   BAŞLIKLAR
   ========================================================= */

h1 {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 2rem;
    font-weight: 700;

    letter-spacing: -0.5px;

    color: #ffffff;
}

h2 {
    color: #ffffff;
}

p {
    color: #aeb6c8;
    line-height: 1.7;
}


/* =========================================================
   FORM
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;

    margin-bottom: 8px;

    color: #d9deea;

    font-size: 0.95rem;
    font-weight: 600;
}

input {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid #2c3650;
    border-radius: 10px;

    outline: none;

    background: #0d1425;
    color: #ffffff;

    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input::placeholder {
    color: #657087;
}

input:focus {
    border-color: #6d5dfc;

    background: #10182b;

    box-shadow:
        0 0 0 3px rgba(109, 93, 252, 0.15);
}


/* =========================================================
   BUTONLAR
   ========================================================= */

button,
.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #6d5dfc,
            #4f7cff
        );

    color: #ffffff;

    font-size: 1rem;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(79, 124, 255, 0.25);
}

button:active,
.btn:active {
    transform: translateY(0);
}


/* =========================================================
   İKİNCİ BUTON
   ========================================================= */

.btn-secondary {
    background: #182138;

    border: 1px solid #2c3854;

    color: #cdd4e3;
}

.btn-secondary:hover {
    background: #202b46;
}


/* =========================================================
   LINKLER
   ========================================================= */

a {
    color: #8194ff;

    text-decoration: none;

    transition: color 0.2s ease;
}

a:hover {
    color: #a7b3ff;
    text-decoration: underline;
}


/* =========================================================
   FORM ALT LINK
   ========================================================= */

.form-footer {
    margin-top: 24px;

    text-align: center;

    color: #8993a8;
}


/* =========================================================
   HATA MESAJI
   ========================================================= */

.alert-error {
    margin-bottom: 22px;

    padding: 14px 16px;

    border: 1px solid rgba(255, 80, 100, 0.25);
    border-radius: 10px;

    background: rgba(160, 30, 50, 0.15);

    color: #ff9ca8;

    line-height: 1.5;
}


/* =========================================================
   BAŞARI MESAJI
   ========================================================= */

.alert-success {
    margin-bottom: 22px;

    padding: 14px 16px;

    border: 1px solid rgba(50, 200, 130, 0.25);
    border-radius: 10px;

    background: rgba(30, 160, 100, 0.13);

    color: #83e5b2;

    line-height: 1.5;
}


/* =========================================================
   ANA SAYFA
   ========================================================= */

.dashboard {
    text-align: center;
}

.dashboard-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #6d5dfc,
            #4f7cff
        );

    font-size: 2rem;

    box-shadow:
        0 15px 35px rgba(79, 124, 255, 0.2);
}

.dashboard h1 {
    margin-bottom: 8px;
}

.dashboard p {
    margin-bottom: 30px;
}


/* =========================================================
   TEST SAYFASI
   ========================================================= */

.test-card {
    text-align: center;
}

.test-title {
    margin-bottom: 10px;

    color: #8f9cff;

    font-size: 0.9rem;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.arabic-word {
    margin: 30px 0 15px;

    direction: rtl;

    font-family:
        "Traditional Arabic",
        "Amiri",
        "Noto Naskh Arabic",
        serif;

    font-size: 4rem;
    font-weight: normal;

    line-height: 1.5;

    color: #ffffff;
}

.question {
    margin-bottom: 30px;

    color: #9da7bb;

    font-size: 1rem;
}
.learned-word {
    margin: 20px 0 30px;
    padding: 18px 20px;
    text-align: center;
    border-radius: 10px;
    background: #171c26;
    border: 1px solid #2a3242;
    margin-bottom:10px;
}

.learned-word-arabic {
    font-size: 2rem;
    font-weight: 600;
    color: #f1f3f6;
    direction: rtl;
    margin-bottom: 6px;
    font-family:
        "Traditional Arabic",
        "Amiri",
        "Noto Naskh Arabic",
        serif;

    font-size: 4rem;
    font-weight: normal;

    line-height: 1.5;
}

.learned-word-turkish {
    font-size: 1rem;
    color: #aeb7c7;
}

/* =========================================================
   TEST SEÇENEKLERİ
   ========================================================= */

.answers {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-top: 25px;
}

.answer-button {
    width: 100%;

    min-height: 64px;

    padding: 14px 18px;

    border: 1px solid #2d3954;
    border-radius: 12px;

    background: #111a2d;

    color: #e6eaf2;

    font-size: 1.05rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.answer-button:hover {
    background: #19243c;

    border-color: #6678ff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25);
}
.skip-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.skip-button:hover {
    background: #1f2937;
    color: #ffffff;
    border-color: #6b7280;
}

/* =========================================================
   TEST ALT LINK
   ========================================================= */

.test-footer {
    margin-top: 30px;

    text-align: center;
}


/* =========================================================
   SONUÇ SAYFALARI
   ========================================================= */

.result-card {
    text-align: center;
}

.result-icon {
    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 25px;

    border-radius: 50%;

    font-size: 2.5rem;
}

.result-icon.success {
    background: rgba(40, 200, 130, 0.12);

    color: #6ee7a5;

    border: 1px solid rgba(40, 200, 130, 0.25);
}

.result-icon.error {
    background: rgba(255, 80, 100, 0.12);

    color: #ff8d9a;

    border: 1px solid rgba(255, 80, 100, 0.25);
}

.correct-answer {
    margin: 25px 0;

    padding: 18px;

    border-radius: 12px;

    background: #10182a;

    border: 1px solid #26324c;

    color: #cdd5e5;
}

.correct-answer strong {
    display: block;

    margin-top: 8px;

    color: #ffffff;

    font-size: 1.2rem;
}


/* =========================================================
   ÜST MENÜ
   ========================================================= */

.topbar {
    width: min(100% - 32px, 900px);

    margin: 25px auto 0;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 14px 18px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 14px;

    background: rgba(15, 22, 38, 0.75);

    backdrop-filter: blur(10px);
}

.logo {
    color: #ffffff;

    font-size: 1.1rem;
    font-weight: 700;

    text-decoration: none;
}

.user-info {
    color: #9da7ba;

    font-size: 0.9rem;
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 600px) {

    .container {
        width: min(100% - 20px, 760px);

        padding: 30px 0;
    }

    .card {
        padding: 25px 20px;

        border-radius: 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

.arabic-word {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.speak-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid #2a3242;
    border-radius: 50%;

    background: #171c26;
    color: #aeb7c7;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.1s;
}

.speak-button:hover {
    background: #222a38;
    color: #ffffff;
    border-color: #3a4558;
}

.speak-button:active {
    transform: scale(0.93);
}

    .answers {
        grid-template-columns: 1fr;
    }

    .answer-button {
        min-height: 58px;
    }

    .topbar {
        width: calc(100% - 20px);

        margin-top: 10px;
    }

}