:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --bg-primary: #f8fafc;
    --bg-transparent: transparent;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-wrapper: rgba(255, 255, 255, 0.9);
    --border-wrapper: rgba(0, 0, 0, 0.1);
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --h1-color: #4f46e5;
    --h2-color: #0284c7;
    --h1-border: rgba(99, 102, 241, 0.3);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --bg-primary: #1e293b;
    --bg-transparent: transparent;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --bg-wrapper: rgba(30, 41, 59, 0.6);
    --border-wrapper: rgba(255, 255, 255, 0.1);
    --box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    --h1-color: #818cf8;
    --h2-color: #38bdf8;
    --h1-border: rgba(99, 102, 241, 0.3);
    --card-bg: rgba(15, 23, 42, 0.8);
    --card-border: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-transparent);
    color: var(--text-main);
    padding: 2rem;
    margin: 0;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
        overflow-x: hidden; /* Yatay taşmayı gizle, dikey scroll serbest */
    }
    
    .content-wrapper {
        padding: 1.5rem 1rem;
    }
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-wrapper);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-wrapper);
    box-shadow: var(--box-shadow);
    transition: background 0.3s ease, border-color 0.3s ease;
}

h1 {
    color: var(--h1-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    border-bottom: 2px solid var(--h1-border);
    padding-bottom: 0.5rem;
}

h2 {
    color: var(--h2-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border-left: 4px solid #ec4899;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.interactive-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-5px);
    border-color: #818cf8;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.feature-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-wrapper);
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.02);
}

.notebook-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.notebook-title {
    color: #f59e0b;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
    padding-bottom: 0.5rem;
}

.notebook-box ul {
    margin-bottom: 0;
}

.notebook-box li {
    color: var(--text-main);
    font-weight: 600;
}

/* Mobile Responsiveness for Content Pages */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1.5rem;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .game-container {
        flex-direction: column;
    }

    .terms, .definitions {
        width: 100%;
    }

    .interactive-card {
        padding: 1.5rem;
    }

    .notebook-box {
        margin: 1.5rem 0;
        padding: 1rem;
    }
}

/* Custom Form Elements for Interactive Cards */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-icon {
    background: var(--bg-primary);
    color: var(--text-main);
    border: 1px solid var(--border-wrapper);
    border-radius: 8px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    padding: 5px 0;
}

.custom-checkbox input[type="checkbox"] {
    appearance: none;
    background-color: var(--bg-primary);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 2px solid var(--primary-light);
    border-radius: 0.25em;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.custom-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.custom-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 5px;
    outline: none;
    border: 1px solid var(--border-wrapper);
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: all 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

* {
    box-sizing: border-box;
}
