/* ========================================
   Miraç Doğan - Şair & Yazar
   Edebiyat Temalı Web Sitesi
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c1810;
    --primary-light: #4a2c20;
    --accent: #c9a96e;
    --accent-light: #e8d5a8;
    --accent-dark: #8b6914;
    --text: #3a2a1a;
    --text-light: #6b5a4a;
    --bg: #faf6f0;
    --bg-alt: #f0e8d8;
    --bg-dark: #1a1410;
    --bg-dark-alt: #2a2018;
    --white: #fffdf8;
    --shadow: rgba(44, 24, 16, 0.1);
    --shadow-dark: rgba(44, 24, 16, 0.2);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lora', 'Georgia', serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.8;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    padding: 1.2rem 0;
}

#navbar.scrolled {
    background: rgba(26, 20, 16, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.7rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255, 253, 248, 0.85);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1a1410 0%, #2a1f18 30%, #1e1510 60%, #2c1810 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 169, 110, 0.03) 0%, transparent 50%);
}

.floating-quotes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-quote {
    position: absolute;
    font-family: 'Playfair Display', serif;
    color: rgba(201, 169, 110, 0.06);
    font-size: 15rem;
    animation: floatQuote 20s ease-in-out infinite;
}

.q1 { top: 10%; left: 5%; animation-delay: 0s; }
.q2 { top: 60%; right: 5%; animation-delay: -5s; font-size: 12rem; }
.q3 { top: 30%; right: 20%; animation-delay: -10s; font-size: 8rem; }
.q4 { bottom: 15%; left: 15%; animation-delay: -15s; font-size: 10rem; }

@keyframes floatQuote {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-30px) rotate(5deg); opacity: 1; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-decoration {
    font-family: 'Cormorant Garamond', serif;
    color: var(--accent);
    font-size: 1.5rem;
    letter-spacing: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-line {
    width: 80px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: rgba(255, 253, 248, 0.7);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 2;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}

.hero-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Section Common Styles
   ======================================== */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-ornament {
    display: block;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-header.light h2 {
    color: var(--white);
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 1rem;
}

.section-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

.section-header.light .section-desc {
    color: rgba(255, 253, 248, 0.6);
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: center;
}

.image-frame {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--accent-light);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    pointer-events: none;
}

.image-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.image-placeholder p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    opacity: 0.5;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-light);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ========================================
   Poems Section
   ======================================== */
.poems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.poem-card {
    background: var(--bg-dark-alt);
    border: 1px solid rgba(201, 169, 110, 0.15);
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.poem-card:hover {
    border-color: rgba(201, 169, 110, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.poem-ornament {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.poem-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.poem-preview p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(255, 253, 248, 0.6);
    line-height: 2;
    font-style: italic;
}

.poem-full {
    display: none;
}

.poem-more {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.poem-card:hover .poem-more {
    opacity: 0.7;
}

/* ========================================
   Books Section
   ======================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.book-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 500px;
}

.book-cover {
    flex-shrink: 0;
    width: 160px;
    height: 220px;
    position: relative;
    perspective: 800px;
}

.book-spine {
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 20px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    transform: rotateY(-30deg);
    transform-origin: left center;
    border-radius: 2px 0 0 2px;
}

.book-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 0 3px 3px 0;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.book-card:hover .book-front {
    transform: rotateY(-5deg);
}

.book-placeholder-cover {
    text-align: center;
    color: var(--accent-light);
    padding: 1rem;
}

.book-placeholder-cover h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
}

.book-author-small {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    opacity: 0.7;
}

.book-ornament-top, .book-ornament-bottom {
    font-size: 1rem;
    opacity: 0.5;
}

.book-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.book-year {
    color: var(--accent-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.book-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.books-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

/* ========================================
   Blog Section
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(201, 169, 110, 0.15);
    background: var(--bg-dark-alt);
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(201, 169, 110, 0.4);
    transform: translateY(-3px);
}

.blog-date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-right: 1px solid rgba(201, 169, 110, 0.2);
    padding-right: 1.5rem;
}

.blog-day {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
}

.blog-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: rgba(255, 253, 248, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-year-small {
    font-size: 0.75rem;
    color: rgba(255, 253, 248, 0.4);
}

.blog-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.blog-content p {
    font-size: 0.95rem;
    color: rgba(255, 253, 248, 0.6);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-read-more {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.blog-read-more:hover {
    opacity: 0.7;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-light);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-light);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--accent-light);
    background: var(--white);
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s ease;
    outline: none;
}

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

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

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    align-self: flex-start;
}

.form-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(255, 253, 248, 0.5);
    margin-bottom: 1.5rem;
}

.footer-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 253, 248, 0.3);
    letter-spacing: 1px;
}

/* ========================================
   Poem Modal
   ======================================== */
.poem-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 20, 16, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.poem-modal.active {
    display: flex;
}

.poem-modal-content {
    background: var(--bg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    text-align: center;
    animation: modalIn 0.4s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.poem-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.poem-modal-close:hover {
    color: var(--accent);
}

.poem-modal-ornament {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.poem-modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.poem-modal-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 2rem;
}

#poemModalBody {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text);
    line-height: 2.2;
}

.poem-modal-author {
    margin-top: 2rem;
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--accent-dark);
    font-size: 1rem;
}

/* ========================================
   Animations (Scroll Reveal)
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { max-width: 300px; margin: 0 auto; }
    .poems-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }

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

    .nav-menu a {
        font-size: 1.1rem;
    }

    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.3rem; letter-spacing: 4px; }
    .hero-quote { font-size: 1.1rem; }

    .section { padding: 4rem 0; }
    .section-header h2 { font-size: 2.2rem; }

    .poems-grid { grid-template-columns: 1fr; }
    .poem-card { padding: 2rem 1.5rem; }

    .book-card { flex-direction: column; align-items: center; text-align: center; }

    .blog-card { flex-direction: column; }
    .blog-date {
        flex-direction: row;
        gap: 0.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(201, 169, 110, 0.2);
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .poem-modal-content { padding: 2rem 1.5rem; }
    .poem-modal-content h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; letter-spacing: 3px; }
    .container { padding: 0 1.2rem; }
    .about-stats { gap: 1.5rem; }
}
