:root {
    --bg-dark: #080b14;
    --bg-panel: #111827;
    --bg-card: #1f2937;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --bullish: #10b981;
    --bearish: #ef4444;
    --gold: #f59e0b;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* --- Navigation --- */
nav.sticky-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(8, 11, 20, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 100px;
    z-index: 1000;
    padding: 0.7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-btn {
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-free-course {
    border: 1px solid rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

/* --- Mobile Toggle --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 10px;
    transition: var(--transition);
}

/* --- Mobile Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #080b14;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    padding: 80px 1.5rem 60px;
}

.mobile-lang {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem !important;
    width: 100%;
}

.mobile-lang .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

@media (max-height: 700px) {
    .nav-overlay {
        justify-content: flex-start;
    }
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.5px;
    text-align: center;
    width: 100%;
}

.overlay-link:hover,
.overlay-link.active {
    color: var(--accent-blue);
}

.overlay-link.active {
    position: relative;
    font-size: 2rem;
}

.overlay-link.active::before {
    content: '→';
    margin-right: 10px;
    font-size: 1.2rem;
    vertical-align: middle;
}

/* --- Hero Section --- */
header.hero {
    position: relative;
    text-align: center;
    padding: 12rem 1rem 8rem;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, var(--bg-dark) 80%);
    overflow: hidden;
}

header.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 10%, black, transparent 80%);
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* --- Content Layout --- */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    margin-bottom: 10rem;
    scroll-margin-top: 120px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 3rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background: var(--accent-glow);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 3rem 0 1.5rem;
}

p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-blue);
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    padding: 0 4px;
    border-radius: 4px;
}

.gold {
    color: var(--gold);
}

/* --- Grid System --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: var(--bg-panel);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 100% 0%, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::after {
    opacity: 1;
}

.card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- Visual Area --- */
.chart-visual {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    margin: 4rem 0;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 40px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.candle-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.candle-box {
    width: 40px;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.candle-box::before,
.candle-box::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 20px;
    background: inherit;
    transform: translateX(-50%);
    opacity: 0.5;
}

.candle-box::before {
    top: -20px;
}

.candle-box::after {
    bottom: -20px;
}

.bullish-candle {
    background: var(--bullish);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.bearish-candle {
    background: var(--bearish);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.ob-zone {
    position: absolute;
    background: rgba(59, 130, 246, 0.1);
    border: 1px dashed var(--accent-blue);
    z-index: 1;
    bottom: 0;
    pointer-events: none;
}

/* --- Glossary/Checklist --- */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    position: relative;
    transition: var(--transition);
}

.check-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(10px);
}

.check-list li::before {
    content: '✦';
    position: absolute;
    left: 1.2rem;
    color: var(--accent-blue);
    font-size: 1.2rem;
}

/* --- Comparison Table --- */
.table-container {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 20px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-panel);
}

th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 1.5rem;
    text-align: left;
}

td {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

tr:hover td {
    color: #fff;
    background: rgba(59, 130, 246, 0.05);
}

/* --- FAQ Section --- */
.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--bg-panel);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #fff;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* --- Footer --- */
footer {
    background: #05070a;
    padding: 6rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: 10rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    text-align: left;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.copyright {
    margin-top: 6rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 1150px) {

    .nav-links,
    .btn-nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    nav.sticky-nav {
        width: 95%;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
    }
}

/* --- Buttons --- */
.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
    filter: brightness(1.1);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
    white-space: nowrap;
    cursor: pointer;
    font-size: 1rem;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    header.hero {
        padding: 7rem 1.2rem 3.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        margin-bottom: 5rem;
    }

    .chart-visual {
        padding: 1.8rem;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }
}

/* --- Chapter Navigation --- */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
    gap: 1.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .chapter-nav {
        flex-direction: column-reverse;
    }

    .chapter-nav a {
        width: 100%;
        text-align: center;
    }
}

/* --- Ad Banner Fixed Bar --- */
.ad-banner-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    z-index: 9999;
    padding: 0.8rem 0;
    /* İçeriği ortalamak için vertical padding */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.ad-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ad-banner-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ad-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.ad-text-group {
    display: flex;
    flex-direction: column;
}

.ad-brand {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.ad-title {
    font-size: 1rem;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.ad-subtitle {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ad-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.ad-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    background: #fff;
}

/* Ensure content never goes under the fixed ad bar */
body {
    padding-bottom: 80px;
    /* Ad bar height */
}

@media (max-width: 768px) {
    body {
        padding-bottom: 100px;
        /* Alttaki boşluğu biraz daha artırdık */
    }

    .ad-banner-sticky {
        padding: 10px 0;
    }

    .ad-banner-container {
        padding: 0 1rem;
        gap: 10px;
        /* Boşluğu daralttık */
    }

    .ad-logo {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .ad-text-group {
        flex: 1;
        min-width: 0;
        /* Text wrapping için gerekli */
    }

    .ad-brand {
        font-size: 0.55rem;
    }

    .ad-title {
        font-size: 0.8rem;
        /* Fontu küçülttük */
        line-height: 1.1;
        word-wrap: break-word;
    }

    .ad-subtitle {
        display: none;
    }

    .ad-cta-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
        gap: 5px;
        flex-shrink: 0;
        /* Butonun küçülmesini engelledik */
    }

    .ad-cta-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* Adjust footer to not be hidden by banner */
footer {
    padding-bottom: 8rem;
}

/* --- RTL Support --- */
[dir="rtl"] {
    font-family: 'Inter', sans-serif;
    /* Arabic often looks better with clean sans fonts */
}

[dir="rtl"] .lang-switcher {
    border-left: none !important;
    border-right: 1px solid var(--border);
    margin-left: 0 !important;
    margin-right: 0.5rem;
    padding-left: 0 !important;
    padding-right: 0.5rem;
}

[dir="rtl"] .chapter-card .btn-small i,
[dir="rtl"] .ad-cta-btn svg {
    transform: rotate(180deg);
}

[dir="rtl"] .progress-text {
    right: auto;
    left: 0;
}

[dir="rtl"] .ad-brand {
    letter-spacing: 0;
    /* Modern Arabic fonts don't need high tracking */
}