/* Labirent & Bulmacalar */

.main-labirent {
    max-width: 600px;
}

.game-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.game-tab {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border: 2px solid var(--primary);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.game-tab:hover {
    background: #eef2ff;
}

.game-tab.active {
    background: var(--primary);
    color: white;
}

.game-panel {
    display: none;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.game-panel.active {
    display: block;
}

.game-intro {
    margin-bottom: 1.5rem;
}

.game-intro h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Labirent */
.maze-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.maze-mid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maze-btn {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.maze-btn:hover {
    background: #eef2ff;
    transform: scale(1.05);
}

.maze-container {
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 16px;
}

.maze {
    display: grid;
    gap: 2px;
    background: #64748b;
    padding: 2px;
    border-radius: 8px;
}

.maze-cell {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.maze-cell.path {
    background: #cbd5e1;
}

.maze-cell.wall {
    background: #475569;
}

.maze-cell.player {
    background: #93c5fd;
}

.maze-cell.goal {
    background: #fef3c7;
}

/* Eşleştirme */
.match-game {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.match-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-item {
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.match-item:hover {
    background: #eef2ff;
}

.match-item.selected {
    border-color: var(--accent);
    background: #fdf2f8;
}

.match-item.matched {
    opacity: 0.5;
    pointer-events: none;
    border-color: var(--success);
    background: #d1fae5;
}

/* Sıralama */
.sort-puzzle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 1rem 0;
}

.sort-slot {
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.sort-slot.filled {
    border-style: solid;
    background: #eef2ff;
}

.sort-piece {
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    cursor: grab;
    font-size: 1.25rem;
    font-weight: 800;
}

.sort-piece:hover {
    background: #eef2ff;
}

/* Mantık */
.logic-puzzle {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 16px;
    margin: 1rem 0;
}

.logic-sequence {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.logic-item {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
}

.logic-question {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #fef3c7;
    border: 2px dashed var(--secondary);
    border-radius: 12px;
}

.logic-choices {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.logic-choice {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.logic-choice:hover {
    background: #eef2ff;
    transform: scale(1.1);
}

/* Genel */
.game-feedback {
    min-height: 50px;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 16px;
    font-weight: 700;
    text-align: center;
}

.game-feedback.success {
    background: #d1fae5;
    color: #065f46;
}

.game-feedback.error {
    background: #fee2e2;
    color: #991b1b;
}

.game-feedback:empty {
    display: none;
}

.btn-restart {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-restart:hover {
    background: #d97706;
    transform: scale(1.05);
}

@media (max-width: 500px) {
    .maze-cell {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .match-game {
        grid-template-columns: 1fr;
    }
}
