/* Ev Düzeni Atölyesi - Organizasyon Temalı Tasarım */

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

:root {
    --primary-color: #5a7c65;
    --secondary-color: #8ba68f;
    --accent-color: #a8c5b0;
    --warm-beige: #f5f1e8;
    --soft-cream: #faf8f3;
    --text-dark: #3a4a3f;
    --text-medium: #5a6b5f;
    --text-light: #8a9a8d;
    --bg-light: #f8f6f2;
    --bg-white: #ffffff;
    --border-color: #d4d9d0;
    --success-color: #6b8e6f;
    --warning-color: #c9a86b;
    --shadow-soft: 0 2px 8px rgba(90, 124, 101, 0.08);
    --shadow-medium: 0 4px 12px rgba(90, 124, 101, 0.12);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--soft-cream) 0%, var(--bg-white) 100%);
    background-attachment: fixed;
}

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

/* Header - Organizasyon Temalı */
header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color) 0px,
        var(--primary-color) 8px,
        var(--accent-color) 8px,
        var(--accent-color) 16px
    );
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    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(8px, -8px);
}

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

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

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

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--accent-color) 20%,
        var(--accent-color) 80%,
        transparent 100%
    );
    opacity: 0.3;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

h2 {
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.9rem;
    font-weight: 600;
    position: relative;
    padding-left: 16px;
    border-left: 4px solid var(--accent-color);
    padding-bottom: 0.75rem;
}

h3 {
    color: var(--text-dark);
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.9;
}

/* Table of Contents - Kutu Stili */
.toc {
    background: var(--warm-beige);
    border: 2px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.toc::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.toc h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

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

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

.toc li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.toc a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s;
}

.toc a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Tables - Organizasyon Tablosu */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

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

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: var(--bg-light);
}

tr:nth-child(even) {
    background-color: var(--warm-beige);
}

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

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

li {
    margin-bottom: 0.9rem;
    color: var(--text-medium);
    line-height: 1.8;
    position: relative;
    padding-left: 0.5rem;
}

ul li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

ol li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.checklist {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    background: var(--warm-beige);
    padding: 1.5rem;
    border-left: 4px solid var(--success-color);
}

.checklist li {
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 0.9rem;
    padding-left: 2.5rem;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    top: 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: var(--bg-white);
    border: 2px solid var(--success-color);
    border-radius: 50%;
    font-size: 0.9rem;
    line-height: 1;
}

/* Error Block - Uyarı Kutusu */
.error-block {
    background: linear-gradient(135deg, #fff8e8 0%, #fff3cd 100%);
    border: 2px solid var(--warning-color);
    border-left: 6px solid var(--warning-color);
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.error-block::before {
    content: '⚠';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.error-block h3 {
    color: var(--warning-color);
    margin-top: 0;
    font-size: 1.3rem;
}

.error-block ul {
    margin-top: 1rem;
}

/* Links - Красивые ссылки */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom-color: var(--secondary-color);
}

/* Forms */
form {
    max-width: 650px;
    margin: 2.5rem auto;
    background: var(--warm-beige);
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
}

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

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

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

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 124, 101, 0.1);
}

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

input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

button,
.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-medium);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 4px solid var(--primary-color);
    padding: 1.75rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.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;
    color: var(--text-medium);
}

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

/* Cookie Settings */
.cookie-settings {
    margin: 2.5rem 0;
}

.cookie-category {
    background: var(--warm-beige);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    position: relative;
}

.cookie-category h3 {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
    border: 2px solid var(--border-color);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input:checked + .toggle-slider::before {
    transform: translateX(26px);
}

input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #2a3a2f 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color) 0px,
        var(--primary-color) 8px,
        var(--accent-color) 8px,
        var(--accent-color) 16px
    );
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    padding-left: 0.5rem;
    border-left: 2px solid transparent;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 1rem;
    border-left-color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .table-wrapper {
        margin-left: -24px;
        margin-right: -24px;
        padding: 0 24px;
    }
    
    .table-wrapper table {
        min-width: 500px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        transition: right 0.4s ease;
        gap: 0;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.65rem;
    }
    
    main::before {
        display: none;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-banner-actions button {
        width: 100%;
    }

    form {
        padding: 1.5rem;
    }
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    border-radius: 4px;
}

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

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

.image-center {
    margin: 2rem auto;
    display: block;
}

@media (max-width: 768px) {
    .image-left,
    .image-right {
        float: none;
        margin: 1.5rem auto;
        max-width: 100%;
    }
}

/* Room Cards - Organizasyon Kutusu Stili */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.room-card {
    background: var(--bg-white);
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    position: relative;
    transition: all 0.3s;
    box-shadow: var(--shadow-soft);
}

.room-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--secondary-color);
}

.room-card:hover::before {
    opacity: 1;
}

.room-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.room-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Blog Articles */
.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.article-content {
    max-width: 850px;
    margin: 0 auto;
}

/* Success/Error Messages */
.message {
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    border-left: 6px solid;
    font-weight: 500;
}

.message.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
    border-left-color: var(--success-color);
    color: #2d5a32;
}

.message.error {
    background: linear-gradient(135deg, #ffeaea 0%, #f8d7da 100%);
    border-left-color: #dc3545;
    color: #721c24;
}

/* Notification */
/* Notification container - top right */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    position: relative;
    background: var(--bg-white);
    border-left: 4px solid var(--success-color);
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
    pointer-events: auto;
    max-width: 100%;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: bold;
}

.notification.success .notification-icon {
    color: var(--success-color);
}

.notification.error .notification-icon {
    color: #dc3545;
}

.notification-message {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--text-dark);
}

.notification-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        transform: translateY(-100px);
        border-left-width: 3px;
        padding: 0.875rem 1rem;
    }

    .notification.show {
        transform: translateY(0);
    }

    .notification-message {
        font-size: 0.9rem;
    }

    .notification-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .notification {
        padding: 0.75rem 0.875rem;
    }

    .notification-content {
        gap: 0.5rem;
    }
}
