:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-cyan: #00f2ff;
    --accent-purple: #7000ff;
    --accent-green: #00ff88;
    --accent-red: #ff3333;
    --panel-bg: rgba(20, 20, 20, 0.95);
    --border-color: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

.presentation-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

/* --- SLIDE LAYOUT (GRID SYSTEM) --- */
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    /* Merkezi hizalama için */
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* İçerik Kutusu - Ana Yapı */
.slide-content {
    width: 90%;
    height: 85%;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);

    /* GRID LAYOUT: Ekranı ikiye böl */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Sol (Metin) geniş, Sağ (Görsel) dar */
    grid-template-rows: auto 1fr;
    /* Başlık satırı, İçerik satırı */
    gap: 20px;

    position: relative;
    z-index: 20;
    /* En üstte */
}

/* Başlık (Tüm genişliği kaplasın) */
.slide-content h2 {
    grid-column: 1 / -1;
    /* Baştan sona */
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-purple);
    padding-bottom: 10px;
    margin: 0;
    font-size: 2.2rem;
    text-transform: uppercase;
}

/* Sol Sütun: Metin ve Listeler */
.text-content,
.list-content {
    grid-column: 1 / 2;
    /* Sol sütun */
    font-size: 1.4rem;
    line-height: 1.6;
    align-self: start;
    /* Yukarı hizala */
}

.list-content ul {
    list-style: none;
    padding: 0;
}

.list-content li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 15px;
    border-left: 5px solid var(--accent-purple);
    border-radius: 0 10px 10px 0;
}

/* Sağ Sütun: Görseller */
.slide-visual,
.slide-visual-bottom {
    grid-column: 2 / 3;
    /* Sağ sütun */
    grid-row: 2 / 3;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

/* Görsel Stilleri (Absolute DEĞİL, kapsayıcıya uysun) */
.slide-visual img,
.slide-visual-bottom img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- ÖZEL SLAYT TİPLERİ --- */

/* Kapak Slaydı (Ortalanmış) */
#slide-1 .content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 30;
}

#slide-1 .main-title {
    font-size: 5rem;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

/* Oyun ve Quiz Slaytları (Tek Sütun) */
.game-area,
.quiz-container {
    grid-column: 1 / -1;
    /* Tam genişlik */
    grid-row: 2 / -1;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid var(--accent-cyan);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- OYUN STİLLERİ --- */
.game-title {
    color: var(--accent-cyan);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Drag & Drop */
.dd-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.drop-zone {
    width: 45%;
    min-height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.draggable-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.draggable {
    background: var(--accent-purple);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: grab;
    font-weight: bold;
}

/* Hangman & Word Search */
.hangman-canvas {
    border-bottom: 4px solid white;
    margin-bottom: 20px;
}

.word-display {
    font-size: 2rem;
    letter-spacing: 10px;
    font-family: monospace;
    margin-bottom: 20px;
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    max-width: 600px;
}

.key-btn {
    width: 40px;
    height: 40px;
    background: #333;
    border: 1px solid #555;
    color: white;
    cursor: pointer;
}

.key-btn:hover {
    background: #555;
}

.key-btn.correct {
    background: var(--accent-green);
    color: black;
}

.key-btn.wrong {
    background: var(--accent-red);
}

.ws-grid {
    display: grid;
    grid-template-columns: repeat(8, 40px);
    gap: 5px;
}

.option-btn.selected {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.reveal-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

.reveal-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.explanation {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 4px;
    font-size: 0.95rem;
}

.ws-cell {
    width: 40px;
    height: 40px;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.ws-cell.selected {
    background: var(--accent-cyan);
    color: black;
}

/* --- QUIZ STİLLERİ --- */
.question-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.options-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.option-btn {
    background: #222;
    border: 1px solid #444;
    padding: 15px;
    color: white;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.option-btn:hover {
    background: #333;
    border-color: var(--accent-cyan);
}

.option-btn.correct {
    background: var(--accent-green);
    color: black;
    border-color: var(--accent-green);
}

.option-btn.wrong {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.feedback-area {
    margin-top: 15px;
    padding: 15px;
    background: #333;
    border-radius: 8px;
    display: none;
}

.feedback-area.visible {
    display: block;
    animation: fadeIn 0.5s;
}

/* --- NAVİGASYON --- */
.controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 20px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent-cyan);
    color: black;
}

.progress-bar-container {
    width: 40%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    width: 0%;
    transition: width 0.3s;
}

/* Küçük Ekran Desteği */
@media (max-width: 900px) {
    .slide-content {
        grid-template-columns: 1fr;
        /* Mobilde tek sütun */
        overflow-y: auto;
    }

    .slide-visual,
    .slide-visual-bottom {
        display: none;
        /* Mobilde görselleri gizle, yer aç */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Image Container (Background Images) - Eski yapıdan kalan, ama artık sadece dekoratif */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* En arkada */
    opacity: 0.15;
    /* Çok silik */
}

.slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feedback Styles */
.game-feedback {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    display: none;
    /* Başlangıçta gizli */
}

.game-feedback.visible {
    display: block;
    animation: fadeIn 0.5s;
}

.game-feedback.success {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.game-feedback.fail {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.15);
    border: 1px solid #ff3333;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

/* --- GAME INFO BOX --- */
.game-info-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #00f2fe;
    /* Cyan accent */
    border-radius: 8px;
    font-size: 0.95rem;
    color: #ddd;
    text-align: left;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-info-box h4 {
    color: #4facfe;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.game-info-box ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.game-info-box li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.game-info-box strong {
    color: #fff;
}



/* Word Search List Styles */
.word-item {
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.word-item.found {
    text-decoration: line-through;
    color: #888;
    background: #222 !important;
    border-color: #333;
    opacity: 0.6;
}

/* --- SLIDE NUMBER --- */
.slide-number {
    position: absolute;
    bottom: 25px;
    right: 35px;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    z-index: 100;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
    /* Tıklamayı engelle */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Kapak Navigasyon */
.slide-nav-input input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.slide-nav-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}