/* Warm Textile Style - Dokuma Dünyası */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beige-light: #f5f0e8;
    --beige-medium: #e8ddd4;
    --brown-light: #d4c4b0;
    --brown-medium: #b8a082;
    --brown-dark: #8b7355;
    --brown-darker: #6b5a45;
    --text-dark: #3a3429;
    --accent: #a67c52;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(to bottom, var(--brown-medium), var(--brown-dark));
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--beige-light);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.nav-desktop {
    display: none;
}

.nav-desktop ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-desktop a {
    color: var(--beige-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, background 0.3s;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.nav-desktop a.active {
    background: rgba(255,255,255,0.25);
    font-weight: bold;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--beige-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    width: 44px;
    height: 44px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(to bottom, var(--brown-dark), var(--brown-darker));
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 2000;
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--beige-light);
    font-size: 2rem;
    cursor: pointer;
    float: right;
    margin-bottom: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu ul {
    list-style: none;
    clear: both;
}

.mobile-menu li {
    margin-bottom: 0.5rem;
}

.mobile-menu a {
    color: var(--beige-light);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.75rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(255,255,255,0.1);
}

.mobile-menu a.active {
    background: rgba(255,255,255,0.2);
    font-weight: bold;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1500;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--brown-darker);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--brown-dark);
    max-width: 800px;
    margin: 0 auto;
}

/* Pattern Cards */
.pattern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pattern-card {
    background: var(--beige-light);
    border: 2px solid var(--brown-light);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.pattern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--brown-medium), var(--accent), var(--brown-medium));
}

.pattern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pattern-card h2 {
    color: var(--brown-darker);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pattern-card h3 {
    color: var(--brown-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.pattern-card p {
    margin-bottom: 1rem;
    text-align: justify;
}

.pattern-card ul, .pattern-card ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.pattern-card li {
    margin-bottom: 0.5rem;
}

/* Card Links */
.card-link {
    color: var(--brown-darker);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.card-link:hover {
    color: var(--accent);
}

/* Content Links */
.content-link {
    color: var(--brown-darker);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--brown-light);
    transition: border-color 0.3s, color 0.3s;
}

.content-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Content with Image */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.content-with-image.reverse {
    direction: ltr;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid var(--brown-light);
}

/* Images */
.img-float-right {
    float: right;
    max-width: 280px;
    margin: 0 0 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid var(--brown-light);
}

.img-float-left {
    float: left;
    max-width: 280px;
    margin: 0 1.5rem 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid var(--brown-light);
}

.img-center {
    display: block;
    max-width: 100%;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid var(--brown-light);
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Contact Form */
.contact-form {
    background: var(--beige-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--brown-light);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brown-darker);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--brown-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brown-medium);
}

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

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

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.submit-btn {
    background: linear-gradient(to bottom, var(--brown-medium), var(--brown-dark));
    color: var(--beige-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    font-weight: bold;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Footer */
.footer {
    background: var(--brown-darker);
    color: var(--beige-light);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-col a {
    display: block;
    color: var(--beige-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--brown-darker);
    color: var(--beige-light);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 3000;
    display: none;
}

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

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

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text p {
    font-size: 0.9rem;
}

.cookie-text a {
    color: #fff;
    text-decoration: underline;
}

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

.cookie-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: transform 0.2s;
    font-weight: bold;
}

.cookie-btn-accept {
    background: var(--brown-medium);
    color: var(--beige-light);
}

.cookie-btn-necessary {
    background: transparent;
    color: var(--beige-light);
    border: 2px solid var(--brown-medium);
}

.cookie-btn-refuse {
    background: transparent;
    color: var(--beige-light);
    border: 2px solid var(--brown-light);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

/* Responsive - Tablet */
@media (min-width: 600px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .pattern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-with-image {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive - Desktop */
@media (min-width: 900px) {
    .header-container {
        padding: 0 2rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .nav-desktop {
        display: block;
    }
    
    .nav-desktop ul {
        gap: 0.25rem;
    }
    
    .nav-desktop a {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .container {
        padding: 2rem;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .pattern-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1.5fr 2fr;
    }
}

@media (min-width: 1100px) {
    .nav-desktop ul {
        gap: 0.5rem;
    }
    
    .nav-desktop a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Text Styles */
.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.section-title {
    font-size: 1.8rem;
    color: var(--brown-darker);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--brown-light);
    padding-bottom: 0.5rem;
}

.highlight {
    background: linear-gradient(120deg, var(--beige-medium) 0%, var(--beige-medium) 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Sitemap */
.sitemap-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.sitemap-list li {
    margin-bottom: 0.75rem;
}

.sitemap-list a {
    color: var(--brown-darker);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.75rem;
    background: var(--beige-light);
    border-left: 4px solid var(--brown-medium);
    border-radius: 4px;
    transition: all 0.3s;
}

.sitemap-list a:hover {
    background: var(--brown-light);
    padding-left: 1rem;
    color: var(--brown-darker);
}
