/* --- CSS DEĞİŞKENLERİ (TEMA) --- */
:root {
    /* Renk Paleti */
    --defter-zemin: #f4e7d4;
    --cizgi-rengi: rgba(115, 17, 63, 0.15);
    
    --bordo: #73113f;
    --bordo-dark: #4a0b28;
    --mavi: #1d5b79;
    --mavi-dark: #12394c;
    
    --text-main: #333333;
    --text-muted: #555555;
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(115, 17, 63, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(115, 17, 63, 0.08);
    
    /* Fontlar */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    
    /* Oyun */
    --correct-color: #799659;
    --present-color: #fcdc3a;
    --absent-color: #73113f;
}

/* Koyu Mod (Oyun için opsiyonel) */
body.dark-theme {
    --defter-zemin: #1a1510;
    --cizgi-rengi: rgba(255, 255, 255, 0.08);
    --text-main: #e09f9f;
    --text-muted: #a37c7c;
    --glass-bg: rgba(45, 38, 31, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--defter-zemin);
    background-image: 
        linear-gradient(var(--cizgi-rengi) 1px, transparent 1px),
        linear-gradient(90deg, var(--cizgi-rengi) 1px, transparent 1px);
    background-size: 25px 25px;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Arka plan animasyon glow gizli default temada, karanlık olunca açılabilir */
.bg-glow { display: none; }
body.dark-theme .bg-glow { display: block; position: fixed; width: 600px; height: 600px; border-radius: 50%; filter: blur(150px); z-index: -1; opacity: 0.15; animation: floatGlow 10s infinite alternate; }
body.dark-theme .bg-glow-bordo { top: -100px; left: -100px; background: var(--bordo); }
body.dark-theme .bg-glow-mavi { bottom: -100px; right: -100px; background: var(--mavi); animation-delay: -5s; }

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* --- ORTAK SINIFLAR --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.text-center { text-align: center; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.mt-3 { margin-top: 1rem; }

.page-section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    text-transform: lowercase;
    margin-bottom: 3rem;
    color: var(--bordo);
    display: inline-block;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--mavi);
    border-radius: 2px;
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Glassmorphism */
.glass-nav, .glass-icon, .glass-card, .glass-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Butonlar */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bordo);
    color: #fff4d6;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--mavi);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--mavi);
    background: var(--bordo-dark);
}

/* --- NAVİGASYON --- */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 1000;
}

.nav-link {
    color: var(--mavi);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--bordo); }
.game-nav-link { color: var(--bordo); }
.game-nav-link:hover { color: var(--mavi); }

/* --- SOSYAL MEDYA --- */
.floating-socials {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 500;
}

.glass-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mavi);
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.glass-icon:hover {
    background: var(--bordo);
    color: white;
    transform: scale(1.1) translateX(5px);
    border-color: transparent;
}

/* --- HERO (ANA SAYFA) --- */
.hero-section {
    text-align: center;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(4px 4px 10px rgba(0,0,0,0.08));
    margin-bottom: 2rem;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.game-cta-container {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.cta-text {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    color: var(--bordo);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

/* --- BÖLÜMLER --- */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.episode-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    background: white;
}
.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px var(--cizgi-rengi);
}

.episode-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
}
.episode-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.episode-card:hover .episode-img-wrapper img {
    transform: scale(1.05);
}

.episode-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.episode-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mavi);
    font-weight: 600;
    margin-bottom: 5px;
}

.episode-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--bordo);
}

.episode-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.podcast-links {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pod-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.pod-btn.spotify {
    background: #1DB954;
    color: white;
}
.pod-btn.spotify:hover { background: #1ed760; }
.pod-btn.apple {
    background: #872ec4;
    color: white;
}
.pod-btn.apple:hover { background: #a546e5; }
.pod-btn.youtube {
    background: #FF0000;
    color: white;
}
.pod-btn.youtube:hover { background: #ff3333; }

/* --- KARAKTERLER --- */
\.characters-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.character-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.char-layout-clean {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .char-layout-clean {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

.char-profile-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 0 0 200px;
}

.char-img-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 4px solid transparent;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.misra-img-border { border-color: var(--bordo); }
.tolga-img-border { border-color: var(--mavi); }

.char-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transition: transform 0.5s ease;
}

.character-card:hover .char-portrait {
    transform: scale(1.08);
}

.char-name {
    font-size: 2.2rem;
    margin: 0;
    font-family: var(--font-accent);
    font-style: italic;
}
.misra-card .char-name { color: var(--bordo); }
.tolga-card .char-name { color: var(--mavi); }

.char-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.char-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
}

.misra-tag { background: rgba(115, 17, 63, 0.1); color: var(--bordo); }
.tolga-tag { background: rgba(29, 91, 121, 0.1); color: var(--mavi); }

.char-info-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    text-align: left;
}

@media (max-width: 900px) {
    .char-info-col {
        text-align: center;
    }
}

.info-section h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
}

@media (max-width: 900px) {
    .info-section h4 {
        justify-content: center;
    }
}

.misra-info h4 { color: var(--bordo); }
.tolga-info h4 { color: var(--mavi); }

.info-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.char-socials {
    display: flex;
    gap: 15px;
}
.char-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}
.char-social-btn:hover { transform: scale(1.1); }
.misra-social { background: var(--bordo); }
.tolga-social { background: var(--mavi); }

/* --- BİZ KİMİZ --- */
.about-card {
    padding: 60px 40px;
    background: white;
}
.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
}
.divider {
    height: 1px;
    background: dashed 1px var(--cizgi-rengi);
    margin: 30px 0;
}
.about-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- OYUN ALANI --- */
.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-container {
    width: 100%;
    max-width: 600px;
    min-height: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: white;
}

body.dark-theme .game-container { background: var(--glass-bg); }

.theme-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--bordo);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}
body.dark-theme .theme-toggle-btn { color: var(--text-main); }

.glass-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(244, 231, 212, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-theme .glass-overlay { background: rgba(10, 10, 12, 0.9); }

.welcome-modal {
    background: white;
    padding: 20px;
    border-radius: 24px;
    border: 2px solid var(--bordo);
    max-width: 450px;
    text-align: center;
}
body.dark-theme .welcome-modal { background: var(--defter-zemin); border-color: var(--text-main); }

.instruction-colors {
    margin: 20px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ins-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.ins-box {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    color: white;
}
.ins-box.correct { background: var(--correct-color); color: white; }
.ins-box.present { background: var(--present-color); color: var(--bordo); }
.ins-box.absent { background: var(--absent-color); color: white; }

.glass-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--bordo);
    border: 2px solid var(--bordo);
}
body.dark-theme .glass-badge { color: var(--text-main); border-color: var(--text-main); }

.game-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#board {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}
.row {
    display: grid;
    gap: 8px;
}

.tile {
    width: 50px;
    height: 50px;
    border: 2px solid var(--bordo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: lowercase;
    background: white;
    color: var(--bordo);
    transition: all 0.3s ease;
}
body.dark-theme .tile { border-color: var(--text-main); background: transparent; color: var(--text-main); }

.tile.correct { background: var(--correct-color) !important; border-color: var(--correct-color) !important; color: white !important; }
.tile.present { background: var(--present-color) !important; border-color: var(--present-color) !important; color: var(--bordo) !important; }
.tile.absent { background: var(--absent-color) !important; border-color: var(--absent-color) !important; color: white !important; }

#input-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#guess-input {
    background: white;
    border: 2px solid var(--bordo);
    color: var(--bordo);
    padding: 15px;
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    outline: none;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: lowercase;
    transition: border-color 0.3s;
}
body.dark-theme #guess-input { background: rgba(255,255,255,0.1); border-color: var(--text-main); color: var(--text-main); }

#msg {
    margin-top: 10px;
    min-height: 24px;
    font-weight: bold;
    color: var(--bordo);
}
body.dark-theme #msg { color: var(--text-main); }

#keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}
.key-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.key {
    background: #e5d1a4;
    border: 2px solid rgba(0,0,0,0.1);
    color: var(--bordo);
    border-radius: 8px;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    user-select: none;
}
body.dark-theme .key { background: #3a2e24; color: var(--text-main); }

.key.large { flex: 1.5; font-size: 0.9rem; }
.key:active { transform: scale(0.95); }
.key.correct { background: var(--correct-color) !important; color: white !important; }
.key.present { background: var(--present-color) !important; color: var(--bordo) !important; }
.key.absent { background: var(--absent-color) !important; color: white !important; }

.quote-card {
    margin-top: 30px;
    padding: 30px;
    text-align: center;
    position: relative;
    display: none;
    background: white;
}
body.dark-theme .quote-card { background: rgba(0,0,0,0.4); }

.quote-icon {
    font-size: 2rem;
    color: var(--mavi);
    margin-bottom: 15px;
    opacity: 0.5;
}
#quote-text {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 15px;
}
#quote-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 2px;
}

/* --- FOOTER --- */
footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 2px dashed rgba(115, 17, 63, 0.2);
    margin-top: 50px;
}
.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}
footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ANİMASYONLAR --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake { animation: shake 0.4s; }


/* --- RESPONSIVE MOBİL --- */
@media (max-width: 768px) {
    .glass-nav {
        width: 90%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px;
    }
    .nav-link { font-size: 0.8rem; }
    
    .floating-socials {
        position: static;
        flex-direction: row;
        justify-content: center;
        transform: none;
        margin: 40px 0;
        margin-top: 100px;
    }
    
    .hero-subtitle { font-size: 1.8rem; }
    .section-title { font-size: 2.2rem; }
    
    .characters-layout { flex-direction: column; align-items: center; }
    
    .tile { width: 40px; height: 40px; font-size: 1.5rem; }
    .key { padding: 12px 0; font-size: 1rem; }
}

.hover-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* Özel Tolga Yakınlaştırması (Mısra ile Orantı) */
.tolga-img-border .char-portrait {
    transform: scale(1.55) translateY(18%);
}

.character-card:hover .tolga-img-border .char-portrait {
    transform: scale(1.65) translateY(18%);
}

/* Özel Mısra Yakınlaştırması */
.misra-img-border .char-portrait {
    transform: scale(1.15) translateY(5%);
}

.character-card:hover .misra-img-border .char-portrait {
    transform: scale(1.25) translateY(5%);
}


/* Tolga Ters Simetri */
.tolga-card .char-layout-clean {
    flex-direction: row-reverse;
}
@media (max-width: 900px) {
    .tolga-card .char-layout-clean {
        flex-direction: column;
    }
}
