/* --- TEMEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    --bg-color: #0f1115;
    --card-bg: #161b22;
    --accent-color: #40E0D0;
    --accent-glow: rgba(64, 224, 208, 0.3);
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .content-wrapper {
    flex: 1;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- ORTAK BİLEŞENLER --- */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: #0f1115;
    border: 1px solid var(--accent-color);
}
.btn-primary:hover {
    background: #33b3a6;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.logo { font-size: 24px; font-weight: 800; color: var(--accent-color); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #ccc; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: white; }
.nav-actions { display: flex; gap: 15px; }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ortak Fixed Arka Plan Efekti (Landing & Auth Pages) */
.landing-page::before, .bg-image::before {
    content: "";
    position: fixed; /* Paralaks/Sabit Etki */
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1688647063090-36f36f692d95');
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.3); /* Cam arkası efekti: Blur + Karartma */
    z-index: -1;
    transform: scale(1.05); /* Blur kenar taşmasını önlemek için */
}

.hero-content { max-width: 800px; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(to right, white, #94a3b8); -webkit-background-clip: text; color: transparent; background-clip: text; }
.hero span { color: var(--accent-color); -webkit-text-fill-color: var(--accent-color); }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

/* --- STATS --- */
.stats {
    display: flex; justify-content: center; gap: 80px; flex-wrap: wrap;
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}
.stat-item { text-align: center; }
.stat-item h3 { font-size: 2.5rem; margin: 0; color: var(--accent-color); }
.stat-item p { margin: 5px 0 0; color: var(--text-muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* --- FEATURES --- */
.features { padding: 100px 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.icon-box {
    width: 60px; height: 60px;
    background: rgba(64, 224, 208, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- EXAMPLES (CAROUSEL) --- */
.examples-section { padding: 100px 0; background: #0b0d10; overflow: hidden; }
.carousel-container {
    position: relative;
    max-width: 1400px; margin: 0 auto;
    padding: 0 60px;
}
.carousel-track {
    display: flex; gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    /* Scrollbar'ı gizle */
    scrollbar-width: none; 
}
.carousel-track::-webkit-scrollbar { display: none; }

.comparison-card {
    min-width: 380px;
    cursor: pointer;
    transition: 0.3s;
}
.comparison-card:hover { transform: scale(1.02); }
.img-pair {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}
.img-pair img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
    transition: opacity 0.3s;
}
/* Basit hover efekti: İkinci görsel hover olunca görünür */
.img-pair img:last-child { opacity: 0; }
.img-pair:hover img:last-child { opacity: 1; }

.card-labels {
    display: flex; justify-content: space-between;
    margin-top: 12px; font-size: 12px; font-weight: 600;
    color: #94a3b8;
}
.scroll-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none; color: white; cursor: pointer;
    z-index: 10; font-size: 18px;
}
.scroll-btn.left { left: 10px; }
.scroll-btn.right { right: 10px; }

/* --- PRICING --- */
.pricing-section { padding: 100px 20px; }
.pricing-container {
    display: flex; justify-content: center; gap: 30px;
    flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
}
.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    width: 320px;
    display: flex; flex-direction: column;
    position: relative;
}
.badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent-color); color: #000;
    font-size: 12px; font-weight: bold;
    padding: 4px 12px; border-radius: 20px;
}
.plan-name { font-size: 1.2rem; color: var(--text-muted); }
.plan-price { font-size: 2.5rem; font-weight: bold; margin: 15px 0 5px; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.plan-credits { color: var(--accent-color); font-weight: 600; margin-bottom: 30px; }
.features-list li {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 15px; color: #ccc; font-size: 0.95rem;
}
.features-list svg { color: var(--accent-color); width: 20px; }
.btn-plan { margin-top: auto; width: 100%; text-align: center; padding: 14px; border-radius: 10px; font-weight: 600; }

/* --- CTA SECTION --- */
.cta-section { padding: 80px 20px; }
.cta-card {
    background: linear-gradient(135deg, #1a2333 0%, #0f1115 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    max-width: 1000px; margin: 0 auto;
}

/* --- FOOTER --- */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    background: #0b0d10;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- AUTH PAGES (LOGIN/REGISTER) --- */
.bg-image {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-container {
    margin: auto;
}

.glass-card {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.logo-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.input-group { margin-bottom: 20px; width: 100%; }
.input-group label { display: block; margin-bottom: 8px; font-size: 13px; color: #94a3b8; font-weight: 500; }
.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #334155;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    transition: 0.3s;
}
.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0,0,0,0.5);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #0f1115;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.auth-btn:hover { background: #33b3a6; transform: translateY(-2px); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.divider {
    text-align: center; margin: 25px 0;
    position: relative; color: #475569; font-size: 12px; font-weight: bold;
}
.divider::before, .divider::after {
    content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: #334155;
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.google-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px;
    background: white;
    color: #1e293b;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.google-btn:hover { background: #f1f5f9; }

.alert-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* --- MODALS (Lightbox & Footer) --- */
.modal-overlay, .lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; /* JS ile açılır */
    align-items: center; justify-content: center;
}

.modal-box {
    background: #1e293b;
    width: 90%; max-width: 600px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: right;
}

/* Lightbox Specific */
.lightbox-content {
    display: flex; gap: 20px; max-width: 90%;
}
.lightbox-content img {
    max-height: 80vh; border-radius: 8px; border: 1px solid #333;
}
.close-lightbox {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: white;
    font-size: 40px; cursor: pointer;
}
.lb-caption {
    position: absolute; bottom: 30px; color: #888;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; } /* Basit gizleme, hamburger menü eklenebilir */
    .hero h1 { font-size: 2.5rem; }
    .hero-content { padding: 0 10px; }
    .stats { gap: 40px; }
    .lightbox-content { flex-direction: column; }
    .lightbox-content img { max-height: 40vh; }
}