/* Turkish Literature & Book Club Website - Main Stylesheet */

:root {
    --burgundy: #800020;
    --beige: #F5F5DC;
    --dark-blue: #1a1a3e;
    --light-beige: #FAF9F6;
    --gold: #D4AF37;
    --text-dark: #2c2c2c;
    --text-light: #666;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    background-color: var(--light-beige);
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--burgundy) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    color: white;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--gold);
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    transition: all 0.3s;
    position: relative;
    display: block;
    white-space: nowrap;
}

nav a:hover {
    color: var(--gold);
}

nav a.active {
    color: var(--gold);
    font-weight: bold;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

nav a:hover::after {
    width: calc(100% - 2rem);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    z-index: 1001;
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-menu-toggle::before {
    content: '☰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.3s;
    font-size: 1.8rem;
    display: block;
}

.mobile-menu-toggle.active {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
}

.mobile-menu-toggle.active::before {
    content: '✕';
    transform: translate(-50%, -50%);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 26, 62, 0.8), rgba(128, 0, 32, 0.8)), url('../images/hero-bg.jpg') center/cover;
    background-color: var(--dark-blue);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin: -3rem -2rem 3rem -2rem;
    border-radius: 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--burgundy);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}

h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    line-height: 1.4;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}

/* Book Cards */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s;
    opacity: 1;
    transform: scale(1);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.book-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background-color: var(--beige);
    display: block;
}

.book-card img[src=""],
.book-card img:not([src]) {
    background: linear-gradient(135deg, var(--beige) 0%, #e8e8d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.book-card img[src=""]::after,
.book-card img:not([src])::after {
    content: "Kitap Kapağı";
}

.book-card-content {
    padding: 1.5rem;
}

.book-card h4 {
    color: var(--burgundy);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: bold;
}

.book-card p {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-dark);
    text-rendering: optimizeLegibility;
}

.book-card .author {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.book-card .genre {
    display: inline-block;
    background: var(--beige);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--dark-blue);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

.filter-btn:hover {
    background: var(--burgundy);
    transform: scale(1.05);
}

.filter-btn.active {
    background: var(--burgundy);
    box-shadow: 0 4px 8px rgba(128, 0, 32, 0.3);
}

/* Quotes */
.quote {
    background: var(--beige);
    border-left: 4px solid var(--burgundy);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
    line-height: 1.8;
    color: var(--text-dark);
    text-rendering: optimizeLegibility;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quote.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote p {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.8;
}

.quote-author {
    text-align: right;
    margin-top: 1rem;
    color: var(--text-light);
    font-style: normal;
    font-size: 1rem;
}

/* Calendar */
.calendar {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.calendar-event {
    border-bottom: 1px solid var(--beige);
    padding: 1.5rem 0;
}

.calendar-event:last-child {
    border-bottom: none;
}

.event-date {
    color: var(--burgundy);
    font-weight: bold;
    font-size: 1.1rem;
}

.event-title {
    color: var(--dark-blue);
    margin: 0.5rem 0;
    font-size: 1.3rem;
}

.event-details {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

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

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

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    background: var(--burgundy);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--dark-blue);
}

.submit-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: normal;
    margin-top: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.5;
    color: var(--text-dark);
}

.checkbox-label a {
    color: var(--burgundy);
    text-decoration: underline;
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--burgundy);
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-section {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 300px;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    font-weight: bold;
    white-space: nowrap;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    transition: color 0.3s, padding-left 0.3s;
    white-space: nowrap;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--gold);
    padding-left: 0.3rem;
}

.footer-section p {
    display: block;
    margin-bottom: 0.7rem;
    white-space: nowrap;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

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

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

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

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.cookie-btn.accept {
    background: var(--burgundy);
    color: white;
}

.cookie-btn.accept:hover {
    background: #600018;
}

.cookie-btn.decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn.decline:hover {
    background: rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 1366px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    nav ul {
        gap: 0.3rem;
    }
    
    nav a {
        font-size: 1.05rem;
        padding: 0.45rem 0.7rem;
    }
    
    /* Footer Laptop */
    .footer-container {
        gap: 2rem;
    }
    
    .footer-section {
        min-width: 180px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 1rem 0;
    }
    
    .header-container {
        padding: 0 1.2rem;
    }
    
    .logo {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    nav ul {
        gap: 0.2rem;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Footer Tablet */
    footer {
        padding: 2.5rem 1.5rem 1rem;
    }
    
    .footer-container {
        gap: 2rem;
        justify-content: flex-start;
    }
    
    .footer-section {
        flex: 1 1 calc(50% - 1rem);
        min-width: 180px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 62, 0.98);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, visibility 0.4s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        flex: none;
        justify-content: flex-start;
        z-index: 9999;
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }

    nav.active {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
        padding: 0;
        overflow-y: auto;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.3rem;
        width: 100%;
        align-items: stretch;
        list-style: none;
        padding: 1rem 1.5rem 1.5rem;
        margin: 0;
        margin-top: 3.5rem;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
        border-radius: 6px;
        white-space: normal;
        display: block;
        background: rgba(255, 255, 255, 0.05);
        transition: background 0.3s, color 0.3s;
    }
    
    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--gold);
    }
    
    nav a::after {
        display: none;
    }
    
    .logo {
        z-index: 10001;
        position: relative;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer Mobile */
    footer {
        padding: 2rem 1.5rem 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }
    
    .footer-section {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section a,
    .footer-section p {
        display: block;
        margin-right: 0;
        margin-bottom: 0.7rem;
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
    
    header {
        z-index: 10000;
    }
    
    .header-container {
        position: relative;
        z-index: 10001;
    }
    
    .logo {
        position: relative;
        z-index: 10001;
    }
}

/* Content Styles */
.content-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Interview Cards */
.interview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interview-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.interview-card:hover {
    transform: translateY(-5px);
}

.interview-card h4 {
    color: var(--burgundy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.interview-card p {
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    text-align: justify;
    color: var(--text-dark);
    text-rendering: optimizeLegibility;
}

/* Review Cards */
.review-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.review-book {
    flex: 1;
    min-width: 200px;
}

.review-book h4 {
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.review-rating {
    color: var(--gold);
    font-size: 1.2rem;
}

.review-content {
    margin-top: 1rem;
}

.review-content p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
    color: var(--text-dark);
    text-rendering: optimizeLegibility;
}

.review-content p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
    color: var(--text-dark);
    text-rendering: optimizeLegibility;
}

