/* --- ANA ŞABLON STİLLERİ --- */
/* Bu dosya, tüm araçlar tarafından kullanılan ortak görsel kuralları içerir. */

/* === BÖLÜM 1: TEMEL TASARIM VE DEĞİŞKENLER === */
:root {
    --c-brand: #6d28d9;
    --c-brand-light: #a78bfa;
    --c-dark: #334155;
    --c-light: #f1f5f9;
    --c-text: #1e293b;
    --c-white: #ffffff;
    --c-yellow: #facc15; /* Favori için sarı renk */
    --font-family: 'Lexend', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--c-dark);
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-light) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === BÖLÜM 2: ORTAK BİLEŞENLER === */

/* Yan Menü ve Köşe Kontrolleri */
.kose-kontrol {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
}

#arac-yan-menu {
    position: fixed;
    top: 50%;
    /* DÜZENLEME: Menü kapalıyken ikonun konumu ayarlandı */
    right: -3.5rem;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    /* DÜZENLEME: Yumuşak geçiş için eklendi */
    transition: right 0.3s ease-in-out;
}

/* DÜZENLEME: Menü açıldığında tüm grubun konumunu güncelleyen kural */
#arac-yan-menu:not(.kapali) {
    right: 1.5rem;
}

.kose-kontrol button,
#arac-yan-menu button,
.menu-icerik a {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    color: var(--c-text);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: block;
}

/* DÜZENLEME: Favori seçildiğinde yıldızın rengini sarı yapar */
#favori-btn .fas.fa-star {
    color: var(--c-yellow);
}

.kose-kontrol button:hover,
#arac-yan-menu button:hover,
.menu-icerik a:hover {
    background: var(--c-white);
    transform: scale(1.1);
}

#menu-toggle-btn {
    border-radius: 12px 0 0 12px;
}

.menu-icerik {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    border-radius: 0 12px 12px 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#arac-yan-menu:not(.kapali) .menu-icerik {
    transform: translateX(0);
}

/* Modal (Bilgi Penceresi) ve Panel (Ayarlar) İskeleti */
.modal,
.panel-overlay {
    background-color: rgba(10, 5, 20, 0.6);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1005;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden,
.panel-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-icerik {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-kapat-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.modal-baslik {
    color: var(--c-text);
    margin-top: 0;
}

.panel {
    background: rgba(245, 243, 255, 0.8);
    backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    z-index: 1010;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.panel.acik {
    transform: translateX(0);
}

.panel-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(209, 213, 219, 0.5);
    flex-shrink: 0;
}

.panel-baslik h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--c-text);
    font-weight: 700;
}

.panel-kapat-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.panel-icerik {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-grow: 1;
    overflow-y: auto;
}


/* === BÖLÜM 3: ARACA ÖZEL İÇERİK ALANI VE STİLLERİ === */
/* Bu alan, her aracın kendi içeriğini barındırır. */

#arac-alani {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
}

.arac-baslik {
    font-weight: 800;
    color: var(--c-white);
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 3rem;
    margin-bottom: 2rem;
}

#ana-ekran-buton {
    background: var(--c-white);
    color: var(--c-brand);
    border: none;
    border-radius: 50px;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#ana-ekran-buton:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

#sonuc-container {
    margin-top: 3rem;
    position: relative;
}

#sonuc-gosterim-alani {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

#sonuc-amac {
    font-size: 1.2rem;
    color: var(--c-brand);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0;
}

#sonuc-isim {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    margin: 0.5rem 0;
    line-height: 1.1;
    background: linear-gradient(45deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#sonuc-gorev {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--c-dark);
}

.buton-ikincil {
    background-color: transparent;
    color: var(--c-dark);
    border: 2px solid var(--c-brand-light);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 2rem;
}

.buton-ikincil:hover {
    background-color: var(--c-brand);
    color: var(--c-white);
    border-color: var(--c-brand);
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Ayarlar Paneli İçeriği Stilleri */
.panel-sekmeler {
    display: flex;
    background-color: rgba(209, 213, 219, 0.3);
    border-radius: 12px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.sekme-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
    border-radius: 9px;
    transition: all 0.2s;
}

.sekme-btn.aktif {
    background: var(--c-white);
    color: var(--c-brand);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.panel-sekme-icerik {
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.panel-sekme-icerik.aktif {
    display: flex;
}

.panel-aciklama {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0;
    margin-bottom: 1rem;
}

#panel-tab-ogrenciler textarea,
.havuz-bolumu textarea {
    width: 100%;
    flex-grow: 1;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(209, 213, 219, 0.8);
    border-radius: 12px;
    padding: 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--c-text);
    resize: none;
    transition: all 0.2s;
}

#panel-tab-ogrenciler textarea:focus,
.havuz-bolumu textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    background: var(--c-white);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.4);
}

.havuz-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.havuz-bolumu {
    margin-bottom: 1.5rem;
}

.havuz-bolumu label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--c-text);
}

.mod-secim-container .mod-secim-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.7);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(209, 213, 219, 0.8);
    cursor: pointer;
}

.mod-secim-container input[type="radio"] {
    margin-right: 1rem;
}

.buton-birincil {
    background: var(--c-brand);
    color: white;
    border: none;
    padding: 1rem 1.5rem; 
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
    flex-shrink: 0;
}

.buton-birincil:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
}

.hidden {
    display: none !important;
}
