/* Import Google Fonts - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- THEME SYSTEM (Warm Book Library Theme) --- */
:root {
    color-scheme: light;
    --bg-dark: #fcfaf6; /* Sıcak parşömen kağıdı rengi */
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(180, 160, 140, 0.2);
    --text-primary: #2d2621; /* Koyu kahve/kakao metin */
    --text-secondary: #706257; /* Sıcak toprak yardımcı metin */
    --primary: #c95b3d; /* Sıcak kiremit rengi */
    --primary-glow: rgba(201, 91, 61, 0.08);
    --secondary: #4a7c59; /* Adaçayı / yaprak yeşili */
    --secondary-glow: rgba(74, 124, 89, 0.08);
    --accent: #d4a373; /* Sıcak amber/kum tonu */
    --accent-glow: rgba(212, 163, 115, 0.08);
    --success: #4a7c59;
    --font-outfit: 'Outfit', sans-serif;
    --nav-bg: rgba(252, 250, 246, 0.85);
    --footer-bg: #f5f2eb;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-dark: #1a1614; /* Koyu ahşap/kahve tonu */
    --card-bg: rgba(35, 30, 27, 0.85);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f4eae1;
    --text-secondary: #baada3;
    --primary: #e07a5f;
    --primary-glow: rgba(224, 122, 95, 0.15);
    --secondary: #81b29a;
    --secondary-glow: rgba(129, 178, 154, 0.15);
    --accent: #f4f1de;
    --accent-glow: rgba(244, 241, 222, 0.15);
    --success: #81b29a;
    --nav-bg: rgba(26, 22, 20, 0.85);
    --footer-bg: #13100e;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-outfit);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Ambient glow backgrounds */
body::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

body::after {
    content: "";
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

/* Glassmorphism utility classes */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.15);
}

/* Custom Premium Navigation */
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
}

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

.brand-logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link-item:hover {
    color: var(--primary);
}

.btn-nav-action {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-nav-action:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    color: white;
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 6rem auto 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        margin-top: 3rem;
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.text-gradient {
    background: linear-gradient(135deg, #c95b3d 0%, #e07a5f 50%, #d4a373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

@media (max-width: 968px) {
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Feature Cards Grid */
.features-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: left;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Counter & Registration Section */
.campaign-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

@media (max-width: 968px) {
    .campaign-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.campaign-info {
    padding: 2rem 0;
}

.badge-campaign {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

/* Dynamic Counter Card */
.counter-card {
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--accent);
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.counter-value span {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.counter-label {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Beautiful Registration Form */
.registration-card {
    padding: 3rem;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-family: var(--font-outfit);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Global Select, Option and Input Styling for Dark Mode */
select.form-input, select {
    background-color: #1e293b !important;
    color: #f3f4f6 !important;
}

select.form-input option, select option {
    background-color: #0f172a !important;
    color: #f3f4f6 !important;
}

select.form-input optgroup, select optgroup {
    background-color: #0f172a !important;
    color: #8b5cf6 !important;
    font-weight: 600;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.validation-error {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
}

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.form-alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

/* Altcha PoW Widget custom styling to match dark theme */
altcha-widget {
    margin: 1.5rem 0;
    --altcha-bg-color: rgba(17, 24, 39, 0.6);
    --altcha-border-color: rgba(255, 255, 255, 0.1);
    --altcha-text-color: #f3f4f6;
    --altcha-btn-bg-color: #8b5cf6;
    --altcha-btn-text-color: #ffffff;
    --altcha-shadow: none;
    border-radius: 12px;
    width: 100%;
}

/* Campaign Code Show Card */
.code-box {
    background: rgba(139, 92, 246, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
}

/* Subscription Plans Section */
.pricing-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.25);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

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

.plan-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
}

.btn-pricing {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: white;
    color: var(--bg-dark);
}

.pricing-card.popular .btn-pricing {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pricing-card.popular .btn-pricing:hover {
    background: white;
    color: var(--bg-dark);
}

/* Premium Footer */
.footer-custom {
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem;
    background: var(--footer-bg);
}

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

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link-item:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }
}

/* --- LANDING PAGE NEW WIDGETS --- */

/* Segmented Tabs (Bireysel / Kulüp) */
.segmentation-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.segment-btn {
    background: transparent;
    border: 2px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.segment-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(201, 91, 61, 0.3);
}

.segment-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.segment-content.active {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .segment-content.active {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 3-Step Promo Activation Guide */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.step-number {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 10px rgba(201, 91, 61, 0.2);
}

/* KVKK Inline Modal */
.kvkk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 22, 20, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.kvkk-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.kvkk-modal-card {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.kvkk-modal-overlay.active .kvkk-modal-card {
    transform: translateY(0);
}

.btn-close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: var(--primary);
}

/* Douglas Adams Tooltip Hint */
.adams-hint {
    display: inline-block;
    cursor: help;
    border-bottom: 1px dashed var(--primary);
    color: var(--primary);
    position: relative;
}

.adams-hint::before {
    content: "Douglas Adams'ın Otostopçunun Galaksi Rehberi kitabına göre: Hayatın, evrenin ve her şeyin nihai cevabı 42'dir. ✨";
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--text-primary);
    color: var(--bg-dark);
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 50;
}

.adams-hint:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

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