/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-toprak: #8B6F47;
    --color-krem: #F5F1E8;
    --color-bakir: #D4A574;
    --color-koyu: #5A4A3A;
    --color-acik-krem: #FDFBF7;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-acik-krem);
    color: var(--color-koyu);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1.05rem;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-toprak);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }
}

/* Desktop Navigation */
header nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--color-koyu);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem;
    position: relative;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--color-toprak);
}

nav a.active {
    color: var(--color-toprak);
    border-bottom: 2px solid var(--color-bakir);
    font-weight: 600;
}

/* Adaptive menu for different screen sizes */
@media (max-width: 1400px) {
    nav ul {
        gap: 1.2rem;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0.4rem;
    }
}

@media (max-width: 1200px) {
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.88rem;
        padding: 0.5rem 0.35rem;
    }
}

@media (max-width: 1024px) {
    nav ul {
        gap: 0.8rem;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.3rem;
    }
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--color-koyu);
    transition: all 0.3s;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 6rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
        visibility: hidden !important;
    }
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block !important;
        visibility: visible;
    }
}


.mobile-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,255,255,0));
    z-index: 1;
    pointer-events: none;
}

    .mobile-nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav li {
        margin: 0;
    }
    
    .mobile-nav a {
        color: var(--color-koyu);
        text-decoration: none;
        font-size: 1.15rem;
        font-weight: 500;
        display: block;
        padding: 1rem 1rem;
        border-bottom: 1px solid var(--color-krem);
        transition: all 0.3s;
        border-left: 4px solid transparent;
        border-radius: 0 8px 8px 0;
    }
    
    .mobile-nav a:hover {
        color: var(--color-toprak);
        background-color: rgba(212, 165, 116, 0.1);
        padding-left: 1.5rem;
    }
    
    .mobile-nav a.active {
        color: var(--color-toprak);
        border-left: 4px solid var(--color-bakir);
        font-weight: 600;
        background-color: rgba(212, 165, 116, 0.15);
    }

body.menu-open {
    overflow: hidden;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-krem) 0%, var(--color-acik-krem) 100%);
    padding: 4rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--color-toprak);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-koyu);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 2.2rem;
    color: var(--color-toprak);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-bakir);
    font-weight: 600;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    font-size: 1.6rem;
    color: var(--color-koyu);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Image with Text Layout */
.image-text-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.image-text-container.reverse {
    flex-direction: row-reverse;
}

.image-text-container img {
    flex: 0 0 40%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-text-container .text-content {
    flex: 1;
}

@media (max-width: 768px) {
    .image-text-container {
        flex-direction: column;
    }
    
    .image-text-container.reverse {
        flex-direction: column;
    }
    
    .image-text-container img {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-toprak);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.3s, gap 0.3s;
}

.card a:hover {
    color: var(--color-bakir);
    gap: 0.75rem;
}

.card a::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.card a:hover::after {
    transform: translateX(4px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--color-toprak);
    margin-bottom: 0.5rem;
}

/* Special Blocks */
.usta-notu {
    background-color: var(--color-krem);
    border-left: 4px solid var(--color-bakir);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.usta-notu h4 {
    color: var(--color-toprak);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.usta-notu p {
    margin-bottom: 0;
    line-height: 1.8;
}

.ipucu {
    background-color: #E8F5E9;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ipucu h4 {
    color: #2E7D32;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.ipucu p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* Images */
.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Float images */
.image-float-left {
    float: left;
    margin: 0 2rem 1.5rem 0;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-float-right {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .image-float-left,
    .image-float-right {
        float: none;
        margin: 1.5rem auto;
        display: block;
        max-width: 100%;
    }
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--color-koyu);
    color: #fff;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--color-bakir);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--color-bakir);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-koyu);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-toprak);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--color-toprak);
}

.checkbox-group label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    line-height: 1.6;
    font-size: 0.95rem;
}

.submit-btn {
    background-color: var(--color-toprak);
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--color-koyu);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #4CAF50;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background-color: #d32f2f;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner p {
    flex: 1;
    min-width: 250px;
    margin: 0;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cookie-btn.accept {
    background-color: var(--color-toprak);
    color: #fff;
}

.cookie-btn.accept:hover {
    background-color: var(--color-koyu);
}

.cookie-btn.necessary {
    background-color: #f5f5f5;
    color: var(--color-koyu);
    border: 1px solid #ddd;
}

.cookie-btn.necessary:hover {
    background-color: #e0e0e0;
}

.cookie-btn.reject {
    background-color: #f5f5f5;
    color: var(--color-koyu);
    border: 1px solid #ddd;
}

.cookie-btn.reject:hover {
    background-color: #e0e0e0;
}

/* Cookie Preferences Panel */
.cookie-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    z-index: 10001;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-panel.show {
    transform: translateY(0);
}

.cookie-panel h3 {
    color: var(--color-toprak);
    margin-bottom: 1rem;
}

.cookie-panel-section {
    margin-bottom: 1.5rem;
}

.cookie-panel-section h4 {
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.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.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-toprak);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.panel-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.panel-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.panel-btn.save {
    background-color: var(--color-toprak);
    color: #fff;
}

.panel-btn.cancel {
    background-color: #f5f5f5;
    color: var(--color-koyu);
}

/* Responsive */
@media (max-width: 992px) {
    nav ul {
        gap: 0.7rem;
    }
    
    nav a {
        font-size: 0.83rem;
        padding: 0.4rem 0.25rem;
    }
}

@media (max-width: 900px) {
    nav ul {
        gap: 0.6rem;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.2rem;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    header nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: block !important;
        visibility: visible !important;
    }
    
    .mobile-nav:not(.active) {
        transform: translateX(-100%);
        visibility: visible;
    }
    
    .mobile-nav.active {
        transform: translateX(0) !important;
        visibility: visible !important;
    }
    
    .header-container {
        padding: 1rem 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding: 2.5rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
