/* Evde Dil Çalışma Merkezi - Özgün Tasarım */

:root {
    --primary-color: #4a5568;
    --accent-color: #2d3748;
    --warm-orange: #ed8936;
    --soft-blue: #4299e1;
    --text-color: #2d3748;
    --bg-color: #fefefe;
    --light-bg: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Kitap Temalı */
header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-bottom: 4px solid var(--warm-orange);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon,
.icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    transition: transform 0.3s;
    white-space: nowrap;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--warm-orange);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
    padding-left: 0;
}

.nav-links li::before {
    content: '';
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    display: block;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--warm-orange);
}

.nav-links a.active {
    background: rgba(237, 137, 54, 0.2);
    color: var(--warm-orange);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    z-index: 101;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border: none;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    border-left: 5px solid var(--warm-orange);
    padding-left: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 3px solid var(--soft-blue);
    padding-bottom: 0.8rem;
    position: relative;
}

h2::before {
    content: '';
}

h3 {
    font-size: 1.6rem;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    text-align: justify;
    line-height: 1.8;
}

/* Table of Contents - İçindekiler */
.toc {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-left: 6px solid var(--warm-orange);
    border-radius: 8px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow);
    position: relative;
}

.toc::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--warm-orange);
    border-radius: 50%;
    opacity: 0.1;
}

.toc h3 {
    margin-top: 0;
    border: none;
    color: var(--accent-color);
}

.toc h3::before {
    content: '';
}

.toc ul {
    list-style: none;
    padding-left: 1.5rem;
}

.toc li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.toc li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--warm-orange);
    font-weight: bold;
    font-size: 0.8rem;
}

.toc a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.toc a:hover {
    color: var(--warm-orange);
    padding-left: 0.5rem;
}

/* Tables - Çalışma Tabloları */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
    display: table;
}

@media (max-width: 768px) {
    .card table,
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    .card table tbody,
    .card table thead,
    table tbody,
    table thead {
        display: table;
        width: 100%;
        white-space: normal;
    }
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: var(--light-bg);
}

tr:hover {
    background-color: #fff5e6;
    transition: background-color 0.3s;
}

/* Lists - Красивые списки */
ul, ol {
    margin-left: 0;
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

li {
    margin: 0.8rem 0;
    line-height: 1.8;
    position: relative;
    padding-left: 1.8rem;
}

ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--warm-orange);
    font-weight: bold;
    font-size: 0.9rem;
}

ol {
    counter-reset: list-counter;
    padding-left: 0;
}

ol li {
    counter-increment: list-counter;
    padding-left: 2rem;
}

ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: 0;
    color: var(--warm-orange);
    font-weight: bold;
}

/* Cards - Bilgi Kartları */
.card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--warm-orange) 0%, var(--soft-blue) 100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--warm-orange);
}

.card h3 {
    margin-top: 0;
    border: none;
    color: var(--accent-color);
}

.card h3::before {
    content: '';
}

/* Links - Красивые ссылки */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

a:hover {
    color: var(--warm-orange);
}

/* Buttons - Butonlar */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--warm-orange) 0%, #f56565 100%);
    border-bottom: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Forms */
form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--accent-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--warm-orange);
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: none;
    animation: slideInRight 0.5s ease-out;
    max-width: 400px;
}

.notification.show {
    display: block;
}

.notification.error {
    background: #f56565;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-container {
    margin: 2rem 0;
    text-align: center;
}

.image-left {
    float: left;
    margin: 0 2rem 1rem 0;
    max-width: 300px;
}

.image-right {
    float: right;
    margin: 0 0 1rem 2rem;
    max-width: 300px;
}

.image-center {
    display: block;
    margin: 2rem auto;
    max-width: 600px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-top: 4px solid var(--warm-orange);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
    color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    border: none;
    color: var(--warm-orange);
    font-weight: 700;
}

.footer-section h3::before {
    content: '';
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.footer-section li {
    margin: 0.6rem 0;
    padding-left: 0;
}

.footer-section li::before {
    content: '';
}

.footer-section a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.3rem 0;
    display: inline-block;
    border-bottom: none;
}

.footer-section a:hover {
    color: var(--warm-orange);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #cbd5e0;
    font-style: italic;
}

.footer-bottom p {
    text-align: center;
    margin: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--card-bg) 0%, #f7fafc 100%);
    border-top: 4px solid var(--warm-orange);
    padding: 1.8rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.05rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-settings {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.cookie-category {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--soft-blue);
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.8rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -4px 0 12px rgba(0,0,0,0.3);
        z-index: 99;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        padding-left: 0;
    }
    
    .nav-links li::before {
        content: '';
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem;
        border-radius: 6px;
    }
    
    .logo {
        font-size: 1.4rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .logo-wrapper {
        max-width: calc(100% - 60px);
    }
    
    h1 {
        font-size: 2.2rem;
        padding-left: 1rem;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h2::before {
        content: '';
    }
    
    .container {
        padding: 0 15px;
    }
    
    ul, ol {
        padding-left: 0;
        margin-left: 0;
    }
    
    li {
        padding-left: 1.5rem;
        margin-left: 0;
    }
    
    ul li::before {
        font-size: 0.8rem;
        left: 0;
    }
    
    ol li {
        padding-left: 1.8rem;
    }
    
    .card ul,
    .card ol {
        padding-left: 0;
        margin-left: 0;
    }
    
    .card li {
        padding-left: 1.5rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .image-left,
    .image-right {
        float: none;
        margin: 1rem auto;
        display: block;
    }
    
    form {
        margin: 2rem 1rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.highlight {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border-left: 3px solid var(--warm-orange);
    font-weight: 600;
}

.checklist {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.checklist li {
    padding-left: 2rem;
    position: relative;
}

.checklist li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c6f6d5;
    border-radius: 50%;
}

.content-with-image {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.content-with-image img {
    flex-shrink: 0;
    max-width: 300px;
}

.content-with-image.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .content-with-image {
        flex-direction: column;
    }
    
    .content-with-image.reverse {
        flex-direction: column;
    }
    
    .content-with-image img {
        max-width: 100%;
    }
}
