/* Temel Ayarlar */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


body {

    font-family: Arial, sans-serif;

    background-color: #ffffff;

    margin: 0;

    padding: 20px;

}





/* Header & Navigasyon */

header {

    padding: 2rem 5%;

    border-bottom: 1px solid #f0f0f0;

}



nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.logo {

    font-weight: 800;

    letter-spacing: 2px;

    font-size: 1.2rem;

}

.logo a {
    text-decoration: none; /* Alt çizgiyi kaldırır */
    color: inherit;        /* Rengi, üst kapsayıcı olan .logo sınıfından alır */
    display: inline-block; /* Tıklanabilir alanı düzgün sınırlar */
    outline: none;         /* Tıklama sonrası oluşan çerçeveyi kaldırır */
}

.logo a:hover, 
.logo a:active, 
.logo a:visited {
    text-decoration: none; /* Üzerine gelince veya tıklanınca alt çizgi çıkmasını engeller */
    color: inherit;        /* Renk değişimini her durumda engeller */
}


.nav-links {

    display: flex;

    list-style: none;

    gap: 2rem;

}



.nav-links a {

    text-decoration: none;

    color: #666;

    font-size: 0.9rem;

    transition: color 0.3s ease;

}



.nav-links a:hover {

    color: #000;

}



/* Main / Hero Bölümü */

main {

    flex: 1;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    min-height: 74vh;
    padding-top: 10px;

}



.display-block{

    display: block;

}

.hero h1 {

    font-size: 3rem;

    font-weight: 300;

    margin-bottom: 0rem;

    letter-spacing: -1px;

}



.hero p {

    color: #888;

    font-size: 1.1rem;

    margin-bottom: 1rem;

}



/* Ayna Metaforu (Küçük Bir Detay) */

.mirror-dot {

    width: 12px;

    height: 12px;

    background-color: #000;

    border-radius: 50%;

    margin: 0 auto;

    box-shadow: 0 0 15px rgba(0,0,0,0.1);

}



/* Footer */

footer {

    padding: 2rem;

    text-align: center;

    font-size: 0.8rem;

    color: #aaa;

    border-top: 1px solid #f0f0f0;

}

/* Masaüstü Stilleri (Önceki kodun devamı) */

.hamburger {

    display: none; /* Masaüstünde gizli */

    cursor: pointer;

    flex-direction: column;

    gap: 5px;

}



.hamburger span {

    display: block;

    width: 25px;

    height: 2px;

    background-color: #333;

    transition: all 0.3s ease;

}



/* MOBİL TASARIM (Ekran 768px'den küçükse) */

@media (max-width: 768px) {

    .hamburger {

        display: flex; /* Mobilde görünür */

        z-index: 1001;

    }



    .nav-links {

        position: fixed;

        right: -100%; /* Başlangıçta ekranın dışında */

        top: 0;

        width: 70%;

        height: 100vh;

        background-color: #fff;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        box-shadow: -10px 0 30px rgba(0,0,0,0.05);

        transition: 0.4s ease-in-out;

        z-index: 1000;

    }



    .nav-links.active {

        right: 0; /* Tıklanınca ekrana girer */

    }



    /* Hamburger "X" animasyonu (Opsiyonel) */

    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

    .hamburger.active span:nth-child(2) { opacity: 0; }

    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

}



/* word cloud */


.container {
    max-width: 600px;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding:30px;

}


.controls {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-bottom: 20px;

}


select, button {

    padding: 10px;

    font-size: 16px;

    border-radius: 8px;

    border: 1px solid #ccc;

}



button {

    background: #4a6cf7;

    color: white;

    border: none;

    cursor: pointer;

}



button:active {
    transform: scale(0.98);
}



#topic {

    height: 35px;

    padding: 10px;

    font-size: 16px;

    border-radius: 8px;

    border:1px solid #80808052;

    margin-top:15px;

}



.word-card {

    perspective: 1000px;

    height: 90px;

    cursor: pointer;

}


.word-card.flipped .card-inner {

    transform: rotateY(180deg);

}


.word-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.word {

    font-size: 18px;

    font-weight: bold;

}


.card-inner {

    position: relative;

    width: 100%;

    height: 100%;

    transition: transform 0.6s;

    transform-style: preserve-3d;

}


.card-face {

    position: absolute;

    width: 100%;

    height: 100%;

    backface-visibility: hidden;

    border-radius: 14px;

    background: white;

    box-shadow: 0 4px 12px rgba(0,0,0,0.06);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 12px;

    box-sizing: border-box;

}


.card-front {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-weight: 600;

    font-size: 16px;

}


.card-back {

    transform: rotateY(180deg);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: normal;

    font-size: 16px;

    text-align: center;

}



.type {

    font-size: 11px;

    padding: 3px 6px;

    border-radius: 6px;

}



.meaning {

    margin-top: 10px;

    display: none;

    color: #333;

}



.meaning-text {

    font-weight: normal;

}



.type.isim {

    background: #d1f0ff;

    color: #0077b6;

}



.type.fiil {

    background: #ffe0e0;

    color: #d00000;

}


.type.sifat {

    background: #e6ffe6;
    color: #2b9348;

}



.type.zarf {

    background: #fff3cd;
    color: #b08900;

}





#dictionary {

    display: flex;

    flex-direction: column;

    gap: 5px;

}





.group-wrapper {

    background: #ffffff;

    padding: 20px;

    border-radius: 18px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.05);

    border: 1px solid #eef1f5;

    overflow: hidden;

}



.group-title {

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 18px;

    padding-left: 12px;

    border-left: 5px solid #4a6cf7;

    color: #2b2f42;

    cursor: pointer;

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.group-title span {

    font-size: 14px;

    transition: transform 0.3s ease;

}



.group-wrapper.collapsed .group-title span {

    transform: rotate(-90deg);

}



.group-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));

    gap: 14px;

    transition: all 0.4s ease;

}



.group-wrapper.collapsed .group-grid {

    max-height: 0;

    opacity: 0;

    overflow: hidden;

    margin-top: 0;

}



 /*Bilgi Yarışması */       

.quiz-container { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 100%; max-width: 500px; }

.options { display: grid; gap: 10px; margin: 20px 0; }

button { padding: 12px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; transition: 0.3s; font-size: 16px; }

button:hover { background: #5555c6; }

button.selected { background: #0056b3; color: white; border-color: #0056b3; }

.btn-action { width: 100%; margin-top: 10px; font-weight: bold; }

#check-btn { background: #4a6cf7; color: white; border: none; }

#next-btn { background: #4d4f50; color: white; border: none; display: none; }

#result-msg { margin-top: 15px; font-weight: bold; text-align: center; font-size: 18px; }

.score { text-align: right; color: #666; font-weight: bold; }

.category-select { width: 100%; padding: 10px; margin-bottom: 20px; }

.btn-answer {
   background: #858caa;
   text-align: left;
}


/*Ana sayfa menü kutuları */

.nodes-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Masaüstü: 3 sütun */
    gap: 20px;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
}

.node-box {
    padding: 30px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 4px; /* Minimalist köşe */
}

.node-box:hover {
    border-color: #000; /* Hover olunca çerçeve kararır */
    background: #fcfcfc;
    transform: translateY(-5px); /* Hafif bir "yükselme" efekti */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Mobil Tasarım: Ekran küçülünce 1 sütuna düşür */
@media (max-width: 768px) {
    .nodes-container {
        grid-template-columns: 1fr; /* Mobil: Tek sütun */
        gap: 15px;
    }
}