/* =============================================== */
/* INDEX.CSS - SADECE ANA SAYFA STİLLERİ */
/* Section'ların kendi CSS'leri ayrı dosyalarda:
   - components/hero.css
   - components/features.css
   - components/personalization.css
   - components/books-carousel.css
   =============================================== */

:root {
    /* Renk Paleti */
    --primary-color: #2c5530;
    --primary-light: #4a7c59;
    --primary-dark: #1e3a23;
    --secondary-color: #8fb996;
    --accent-color: #e6b450;
    
    /* Nötr Renkler */
    --background-light: #f8f5f0;
    --background-white: #ffffff;
    --surface-light: #fefefe;
    --surface-dark: #2d2d2d;
    
    /* Metin Renkleri */
    --text-dark: #2d2d2d;
    --text-medium: #5a5a5a;
    --text-light: #777777;
    --text-white: #ffffff;
    
    /* Border ve Shadow */
    --border-light: #e0d9c4;
    --border-medium: #d0c9b4;
    --shadow-soft: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-strong: 0 8px 20px rgba(0,0,0,0.08);
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 14px;
}

/* =============================================== */
/* TYPOGRAPHY */
/* =============================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 0.75rem; color: var(--text-medium); font-size: 0.95rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-light);
}

/* =============================================== */
/* HEADER - TÜM SAYFALARDA ORTAK */
/* =============================================== */

.header-wrapper {
    background: var(--background-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
}

.logo a {
    text-decoration: none;
}

/* Desktop Menü */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.desktop-menu a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    position: relative;
}

.desktop-menu a.active {
    color: var(--primary-color);
}

.desktop-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Dil Seçici */
.nav-language-selector {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--background-white);
    color: var(--text-medium);
    font-size: 0.85rem;
    cursor: pointer;
    display: block;  /* Varsayılan olarak görünür */
}

/* Giriş yapmış kullanıcıda gizle (JS ile yönetilecek) */
body.user-logged-in .nav-language-selector {
    display: none !important;
}

/* User Dropdown Container */
.user-dropdown-container {
    display: inline-flex;
    align-items: center;
}

/* Mobil Hamburger Buton */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: 0.3s;
}

/* =============================================== */
/* HOW IT WORKS SECTION */
/* =============================================== */

.how-it-works-section {
    padding: 3rem 1rem;
    background: var(--background-white);
}

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

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.2rem;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* =============================================== */
/* PLANS SECTION */
/* =============================================== */

.plans-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ece4 100%);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-soft);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.plan-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

.plan-card.popular:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(230, 180, 80, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.plan-price span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.plan-features i {
    width: 18px;
    color: var(--primary-color);
}

.plan-features i.fa-times {
    color: var(--text-light);
}

.plan-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.2);
}

.plan-btn.premium {
    background: var(--accent-color);
    color: var(--text-dark);
}

.plan-btn.premium:hover {
    background: #ffc107;
    box-shadow: 0 4px 12px rgba(230, 180, 80, 0.3);
}

/* =============================================== */
/* FOOTER */
/* =============================================== */

.footer {
    background: var(--surface-dark);
    color: white;
    padding: 3rem 1rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0.5rem 0 1.2rem;
    line-height: 1.5;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
/* Footer yasal linkleri - alt alta sıralama */
.footer-section .legal-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section .legal-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
}

.footer-section .legal-links a:hover {
    color: white;
}

/* =============================================== */
/* AUTH POPUP OVERRIDES */
/* =============================================== */

.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* =============================================== */
/* RESPONSIVE */
/* =============================================== */

@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .header {
        padding: 0.75rem 1rem;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }
    
    .plan-card.popular {
        transform: scale(1);
    }
    
    .plan-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0.8rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    
    .step-card {
        padding: 1.5rem 1rem;
    }
    
    .plan-card {
        padding: 1.5rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
}

/* =============================================== */
/* UTILITY CLASSES */
/* =============================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.retry-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    body.dark-mode .header-wrapper {
        background: #2a2a2a;
    }
    
    body.dark-mode .how-it-works-section {
        background: #2a2a2a;
    }
    
    body.dark-mode .step-card {
        background: #333;
        border-color: #404040;
    }
    
    body.dark-mode .step-card h3 {
        color: #fff;
    }
    
    body.dark-mode .plan-card {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    body.dark-mode .plan-header h3 {
        color: #fff;
    }
    
    body.dark-mode .plan-features li {
        color: #ccc;
    }
    
    body.dark-mode .footer {
        background: #1a1a1a;
    }
}



/* =============================================== */
/* ABOUT LEXY BÖLÜMÜ - INDEX */
/* =============================================== */

.about-lexy-section {
    padding: 4rem 1rem;
    background: white;
}

.about-lexy-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-lexy-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lexy-about-image {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.about-lexy-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.copper {
    color: #E56717;
}

.about-lexy-content .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.lexy-story-short p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-medium);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #E56717;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: gap 0.3s;
}

.read-more-link:hover {
    gap: 0.8rem;
    color: #2c5530;
}

/* Responsive */
@media (max-width: 768px) {
    .about-lexy-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .lexy-about-image {
        max-width: 200px;
    }
}

/* Giriş yapmamış kullanıcı için gizlenecek linkler */
.auth-required,
.auth-required-mobile {
    transition: opacity 0.3s ease;
}

/* Demo butonu sadece giriş yapmamış kullanıcılar için */
body.user-logged-in .demo-button {
    display: none !important;
}

@media (min-width: 769px) and (max-width: 900px) {
    .login-btn span,
    .register-btn span {
        display: none !important;
    }
    
    .login-btn, .register-btn {
        padding: 8px 12px !important;
    }
}

/* =============================================== */
/* CTA SECTION - ÜCRETSİZ ÜYE OL (GÜNCELLENMİŞ) */
/* =============================================== */

.cta-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8f5f0 0%, #ffffff 100%);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(44, 85, 48, 0.2);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Arka plan efekti */
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.cta-box h2,
.cta-box p,
.cta-buttons {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(2px);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    position: relative;
    z-index: 2;
}

.cta-btn.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(2px);
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Mobil uyum */
@media (max-width: 768px) {
    .cta-box {
        padding: 40px 25px;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }
    
    .cta-box p {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode desteği */
body.dark-mode .cta-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}