/* Meliksah Web Sitesi - Ana CSS Dosyası */

/* === GLOBAL STYLES === */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

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

/* Global reset - Critical for layout stability */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    margin: 0 !important;
    padding: 0 !important;
    /* Prevent layout shifts */
    visibility: visible !important;
    /* Ensure proper flexbox behavior */
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
    height: auto !important;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Container reset - Critical */
.container,
.container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    /* overflow-x: hidden; - Taşmaları gizleme, scrollbar'a sebep oluyordu */
}

/* Ana içerik alanındaki container'lar için padding koruması */
.main-content .container,
.main-content .container-fluid {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* Brand script font */
.story-script {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    letter-spacing: .5px;
    line-height: 1;
}

/* Brand sizes */
.navbar .story-script {
    font-size: 2.05rem;
    transition: transform .2s ease, text-shadow .2s ease, color .2s ease;
}

.site-footer .story-script {
    font-size: 2.4rem;
    transition: transform .2s ease, text-shadow .2s ease, color .2s ease;
}

/* Header brand hover effect */
.navbar .navbar-brand:hover .story-script {
    transform: translateY(-1px) scale(1.03);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    color: #ffffff;
}

/* Header brand spacing */
.navbar .navbar-brand {
    margin-right: 1rem;
    margin-left: .5rem;
}

@media (min-width: 992px) {
    .navbar .navbar-brand {
        margin-right: 1.5rem;
        margin-left: 1rem;
    }
}

/* === LAYOUT === */
.min-vh-100 {
    min-height: 100vh;
}

.main-content {
    padding: 1.5rem 0;
    /* min-height: calc(100vh - 200px); - Kaldırıldı: Gereksiz scrollbar oluşturuyordu */
    overflow: visible !important;
}

/* Blog post wider layout */
.blog-article-wide .container-fluid,
.blog-article-wide .container {
    max-width: 1280px;
}

/* Critical layout styles - Ensure loaded immediately */
.main-layout {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    /* min-height: 100vh !important; - Kaldırıldı: Gereksiz scrollbar oluşturuyordu */
}

.main-content-wrapper {
    flex: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Mobil cihazlarda sol ve sağ padding'i eşitle */
@media (max-width: 991.98px) {
    .main-content-wrapper {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

.main-content-inner {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    margin: 0 !important;
}

/* === HEADER === */
.navbar {
    z-index: 1030;
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin: 0;
    padding: 0.5rem 0;
}

/* Navbar üst boşluğunu kaldır */
.navbar:first-child {
    margin-top: 0 !important;
    padding-top: 0.5rem;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #5b9bd5 0%, #2e5c8a 100%);
    /* orta ton mavi gradient */
    border-radius: 15px;
    color: #ffffff;
}

.hero-section .btn.btn-light {
    color: #0d6efd;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
}

.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dark mode support for hero */
[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a4d7a 0%, #0f2943 100%);
    /* dark mode için daha koyu ton */
    border-radius: 15px;
    border-color: #1f2a44;
}

[data-bs-theme="dark"] .hero-section .btn.btn-light {
    background-color: #1f2a44;
    /* koyu lacivert zemin */
    border-color: #2b3b5f;
    color: #e6f0ff;
    /* açık metin */
}

[data-bs-theme="dark"] .hero-section .btn.btn-light:hover,
[data-bs-theme="dark"] .hero-section .btn.btn-light:focus {
    background-color: #25406a;
    border-color: #365386;
    color: #ffffff;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ensure navbar dropdown appears above other layers */
.navbar .dropdown-menu {
    z-index: 1100;
}

/* Header sağ taraf elemanları için boşluk */
.navbar .navbar-nav:last-child {
    margin-right: 1rem;
    /* Sağ tarafta boşluk */
}

.navbar .d-none.d-lg-flex.me-3 {
    margin-right: 1.5rem !important;
    /* Arama formu için daha fazla boşluk */
}

/* Navbar içindeki container dropdown'ları kesmesin */
.navbar .container,
.navbar .container-fluid {
    overflow: visible;
    position: relative;
}

/* Mobile header elemanları için boşluk */
@media (max-width: 991.98px) {
    .navbar .navbar-nav:last-child {
        margin-right: 0.5rem;
        /* Mobile'da daha az boşluk */
    }

    .navbar .navbar-toggler {
        margin-right: 0.5rem;
        /* Mobile toggle butonu için boşluk */
    }

    /* Mobile logo boyutları */
    .navbar .brand-logo {
        height: 35px;
        max-width: 150px;
    }

    /* Mobile logo hover effect */
    .navbar .brand-logo:hover {
        transform: scale(1.03);
    }
}

.mobile-search {
    transition: var(--transition);
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    top: 76px;
    /* Header height */
    left: 0;
    width: 280px;
    height: calc(100vh - 76px);
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
    z-index: 1020;
    background-color: #f8f9fa;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-content {
    padding: 1rem;
    overflow: visible;
    /* İçerik overflow'u kaldırıldı */
    height: auto;
    /* Yükseklik sınırı kaldırıldı */
}

/* Desktop'ta sidebar içeriğini header ile hizala */
@media (min-width: 992px) {
    .sidebar-content {
        padding-top: 76px;
        /* Header yüksekliği kadar üstten boşluk */
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
        overflow: visible;
        /* İçerik overflow'u kaldırıldı */
        height: auto;
        /* Yükseklik sınırı kaldırıldı */
    }
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Desktop adjustments - Sidebar artık fixed değil, normal flow'da */
@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 0;
        /* Header ile aynı seviyede başla */
        left: 0;
        /* Sol kenara yapıştır */
        transform: translateX(0);
        width: 280px;
        height: auto;
        /* Yükseklik sınırı kaldırıldı */
        min-height: 100vh;
        /* Minimum tam yükseklik */
        border-right: 1px solid #dee2e6;
        flex-shrink: 0;
        /* Sidebar'ın küçülmesini engelle */
        margin: 0;
        /* Tüm margin'leri kaldır */
        padding: 0;
        /* Tüm padding'leri kaldır */
        overflow: visible;
        /* Overflow kaldırıldı */
        border-left: none;
        /* Sol kenar çizgisini kaldır */
    }

    /* Sidebar bg stripe - arka plan rengini sayfa sonuna kadar devam ettir */
    .main-layout::before {
        content: "";
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 280px;
        /* sidebar genişliği ile aynı */
        background-color: #f8f9fa;
        /* bg-light */
        border-right: 1px solid #dee2e6;
        /* sidebar sağ çizgisini devam ettir */
        z-index: 0;
    }

    .sidebar,
    .main-content-wrapper {
        position: relative;
        z-index: 1;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none !important;
    }

    /* Ana layout düzenlemesi - flexbox kullan */
    .main-layout {
        display: flex;
        min-height: 100vh;
        /* Tam yükseklik */
        height: auto;
        /* Yükseklik sınırı kaldırıldı */
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        align-items: flex-start;
        /* Üstten hizalama */
    }

    /* Container-fluid padding'ini kaldır */
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
        width: 100%;
    }

    .main-content-wrapper {
        flex: 1 !important;
        min-width: 0;
        /* Flexbox overflow sorununu çöz */
        padding-left: 1.5rem;
        /* Sol tarafta daha fazla boşluk */
        padding-right: 1.5rem;
        /* Sağ tarafta eşit boşluk */
        margin: 0;
        width: 100% !important;
        max-width: calc(100% - 280px) !important;
        /* Sidebar genişliğini çıkar */
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .main-content-inner {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        padding-left: 0.5rem;
        /* İçerik için ek sol boşluk */
        padding-right: 0.5rem;
        /* İçerik için ek sağ boşluk */
    }
}

/* Dark mode: sidebar arka plan şeridi tüm sayfada devam etsin */
@media (min-width: 992px) {
    [data-bs-theme="dark"] .main-layout::before {
        background-color: #0f1e33;
        /* dark sidebar bg */
        border-right-color: #1f2a44;
        /* dark border */
    }
}

.sidebar-heading {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.sidebar .nav-link {
    color: var(--dark-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.category-toggle {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.category-toggle.open {
    transform: rotate(180deg);
}

.subcategories {
    transition: var(--transition);
}

.stat-card {
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.popular-item {
    transition: var(--transition);
}

.popular-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    padding-left: 0.75rem;
}

/* Mobile Sidebar - Tamamen overlay modunda */
@media (max-width: 991.98px) {
    .main-layout {
        display: flex !important;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .main-content-wrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        /* Sağ tarafta boşluk */
        position: relative;
        z-index: 1;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        flex: 1;
    }

    .main-content-inner {
        padding-left: 0.25rem;
        /* Mobile'da sol boşluk */
        padding-right: 0.25rem;
        /* Mobile'da da sağ boşluk */
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: auto;
        /* Yükseklik sınırı kaldırıldı */
        min-height: 100vh;
        /* Minimum tam yükseklik */
        z-index: 1050;
        background-color: white;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transition: left 0.3s ease, box-shadow 0.3s ease;
        overflow: visible;
        /* Overflow kaldırıldı */
        display: block !important;
        visibility: visible !important;
        transform: none;
    }

    .sidebar.show {
        left: 0;
        box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, 0.15);
        display: block !important;
    }

    /* Sidebar içeriğinin görünür olmasını sağla */
    .sidebar .sidebar-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Mobile'da ana içerik normal kalır, sidebar üzerine biner */
    .main-content-wrapper {
        position: relative;
        z-index: 1;
    }

    /* Sidebar açıkken body scroll'u engelle - SADECE MOBILE'DA */
    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile'da ana layout düzenlemesi */
    .main-layout {
        display: block;
    }

    .main-content-wrapper {
        padding-left: 0;
    }
}

/* Tablet boyutları için özel düzenleme */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar {
        width: 70%;
        max-width: 300px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 576px) {
    .sidebar {
        width: 90%;
        max-width: 280px;
    }

    .sidebar-content {
        padding: 0.75rem;
        overflow: visible;
        /* İçerik overflow'u kaldırıldı */
        height: auto;
        /* Yükseklik sınırı kaldırıldı */
    }
}

/* Mobile sidebar için ek düzenlemeler */
@media (max-width: 991.98px) {

    /* Sidebar'ın mobile'da düzgün çalışması için */
    .sidebar {
        transform: translateX(-100%);
        will-change: transform;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    /* Sidebar içeriğinin mobile'da düzgün görünmesi */
    .sidebar .nav-link,
    .sidebar .sidebar-heading,
    .sidebar .stat-card,
    .sidebar .popular-item {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* === CARDS === */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-img-top {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* === BUTTONS === */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border-width: 1px;
}

.btn-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* === FORMS === */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select {
    border-radius: var(--border-radius);
}

/* === ALERTS === */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* === BADGES === */
.badge {
    font-weight: 500;
}

/* === TABLES === */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

/* === PAGINATION === */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* === BREADCRUMB === */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

/* === MODAL === */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* === DROPDOWNS === */
.dropdown-menu {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
}

/* === FOOTER === */
footer {
    margin-top: auto;
}

footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Modern footer */
.site-footer {
    background: linear-gradient(180deg, var(--footer-bg-start, #1f2327) 0%, var(--footer-bg-end, #161a1d) 100%);
}

.site-footer .footer-links li+li {
    margin-top: 0.5rem;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.site-footer .footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* Footer tighter layout on large screens */
@media (min-width: 992px) {
    .site-footer .row>[class*="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .site-footer .container {
        max-width: 1320px;
        /* wider footer content area */
    }

    /* Footer menü kolonları arasındaki boşlukları azalt */
    .site-footer .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .site-footer .row>[class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.site-footer .footer-cta {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.site-footer .social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-footer .social-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.site-footer .social-btn:hover::before {
    opacity: 1;
}

.site-footer .social-btn i {
    position: relative;
    z-index: 1;
    font-size: 16px;
}

.site-footer .footer-bottom {
    background: rgba(0, 0, 0, 0.1);
}

/* Footer grid: allow wrapping nicely on small screens */
.site-footer .row {
    row-gap: 1rem;
    justify-content: center;
    text-align: center;
}

.site-footer .footer-links li+li {
    margin-top: .35rem;
}

.site-footer .footer-links a {
    display: inline-block;
    padding: 2px 0;
}

@media (max-width: 576px) {
    .site-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-footer .row {
        row-gap: 1rem;
    }

    .site-footer .story-script {
        font-size: 2.2rem;
        display: block;
        margin-bottom: .5rem;
    }

    .site-footer .footer-links {
        text-align: center;
    }

    .site-footer .footer-links a {
        font-size: .95rem;
    }

    /* Footer kolonlarını tam ortala */
    .site-footer .col-12.col-lg-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .site-footer .col-12.col-lg-2 ul.footer-links {
        text-align: center;
        padding-left: 0;
        list-style: none;
    }

    .footer-bottom .container {
        flex-direction: column !important;
        gap: .5rem !important;
        text-align: center;
    }

    /* Mobile'da copyright ve tredgo yazılarının margin'lerini kaldır */
    .footer-bottom .text-light-emphasis.ps-md-5,
    .footer-bottom .text-light-emphasis.ms-md-5,
    .footer-bottom .text-light-emphasis.pe-md-5,
    .footer-bottom .text-light-emphasis.me-md-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Footer divider */
.site-footer .footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .site-footer .footer-divider {
    background: rgba(255, 255, 255, 0.08);
}

/* === UTILITY CLASSES === */
.text-light-emphasis {
    color: rgba(255, 255, 255, 0.75) !important;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

/* === LOADING SPINNER === */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }

    .card {
        margin-bottom: 1rem;
    }

    .btn-floating {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    /* Mobile'da sidebar'ın içeriğe taşmamasını sağla */
    .main-content-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-content-inner {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .main-content {
        padding: 0.5rem 0;
    }

    /* Blog tags mobile responsive */
    .d-flex.align-items-start.gap-2.mb-4.flex-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .d-flex.flex-wrap.gap-1 {
        gap: 0.25rem !important;
    }

    .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Footer mobile improvements */
    .site-footer .row>[class*="col-"] {
        margin-bottom: 1rem;
    }

    .site-footer .footer-links {
        text-align: left;
    }

    .site-footer .story-script {
        font-size: 2.2rem;
        display: block;
        margin-bottom: .5rem;
    }

    .footer-bottom .container {
        flex-direction: column !important;
        gap: .5rem !important;
    }

    /* Kupon detay paylaş butonları mobil uyumlu */
    .card-footer .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .card-footer .btn-sm i {
        font-size: 0.875rem;
    }
}

/* === PRINT STYLES === */
@media print {

    .sidebar,
    .navbar,
    footer,
    .btn-floating {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .col-lg-9 {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* === DARK MODE SUPPORT === */
[data-bs-theme="dark"] {
    --primary-color: #3b82f6;
    /* mavi vurgu */
    --secondary-color: #94a3b8;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #38bdf8;
    --light-color: #0f172a;
    /* lacivert tabanlarında açık alanlar için */
    --dark-color: #e2e8f0;
    /* metin */
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(2, 6, 23, 0.35);
    --transition: all 0.15s ease-in-out;

    color-scheme: dark;

    /* Bootstrap dark mode variables - koyu lacivert tonları */
    --bs-body-bg: #0b1220;
    /* çok koyu lacivert */
    --bs-body-color: #e2e8f0;
    /* açık gri-mavi metin */
    --bs-border-color: #1f2a44;
    /* lacivert kenarlık */
    --bs-border-color-translucent: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] body {
    background-color: #0b1220;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .navbar {
    background-color: #0b1220 !important;
    /* body ile aynı ton */
    border-bottom: 1px solid #1f2a44;
}

[data-bs-theme="dark"] .navbar .container,
[data-bs-theme="dark"] .navbar .container-fluid {
    background-color: transparent !important;
    /* iç kaplar fark yaratmasın */
}

/* Dark header link colors and hover for better contrast */
[data-bs-theme="dark"] .navbar .nav-link {
    color: rgba(226, 232, 240, 0.9);
}

[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-bs-theme="dark"] .navbar .navbar-brand .story-script {
    color: #e6f0ff;
}

[data-bs-theme="dark"] .navbar .form-control,
[data-bs-theme="dark"] .navbar .form-select {
    background-color: #0f2036;
    border-color: #1f2a44;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .navbar .form-control::placeholder {
    color: #94a3b8;
}

[data-bs-theme="dark"] .site-footer {
    background-color: #0b1220 !important;
    /* header ile aynı ton */
    background-image: none !important;
    border-top: 1px solid #1f2a44;
}

[data-bs-theme="dark"] .site-footer .container,
[data-bs-theme="dark"] .site-footer .container-fluid {
    background-color: transparent !important;
}

[data-bs-theme="dark"] .site-footer .footer-cta {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.08));
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .site-footer .footer-bottom {
    background: rgba(255, 255, 255, 0.04);
}

/* Footer color alignment with site palette */
.site-footer {
    --footer-bg-start: var(--primary-color);
    --footer-bg-end: #0b5ed7;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: -1;
    /* push overlay behind content so text stays crisp */
}

.site-footer {
    position: relative;
}

.site-footer>* {
    position: relative;
    z-index: 1;
}

[data-bs-theme="dark"] .site-footer::before {
    background: rgba(0, 0, 0, 0.4);
    /* daha ince overlay */
}

/* Links color tuned to primary */
.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer .footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

/* Footer base text colors for better readability */
.site-footer,
.site-footer p,
.site-footer small,
.site-footer li,
.site-footer .text-light-emphasis,
.site-footer .footer-bottom small {
    color: rgba(255, 255, 255, 0.98) !important;
}

.site-footer h6,
.site-footer .dropdown-header {
    color: #ffffff !important;
}

/* Footer brand (logo text) hover effect */
.site-footer .story-script:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

[data-bs-theme="dark"] .sidebar {
    background-color: #0f1e33 !important;
    border-right: 1px solid #1f2a44;
}

/* Dark mode mobile sidebar */
[data-bs-theme="dark"] .sidebar {
    background-color: #0f1e33 !important;
    border-right: 1px solid #1f2a44;
}

@media (max-width: 991.98px) {
    [data-bs-theme="dark"] .sidebar {
        background-color: #0f1e33 !important;
    }
}

[data-bs-theme="dark"] .sidebar .nav-link {
    color: rgba(226, 232, 240, 0.9);
}

[data-bs-theme="dark"] .sidebar .nav-link.text-dark {
    color: rgba(226, 232, 240, 0.9) !important;
}

[data-bs-theme="dark"] .sidebar .nav-link:hover {
    background-color: rgba(59, 130, 246, 0.18);
    color: #ffffff;
}

[data-bs-theme="dark"] .sidebar-heading {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15));
    color: #ffffff;
}

[data-bs-theme="dark"] .popular-item:hover {
    background-color: rgba(59, 130, 246, 0.12);
}

/* Sidebar Popular Content readability in dark mode */
[data-bs-theme="dark"] .sidebar .popular-item a {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .sidebar .popular-item .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .category-parent span i,
[data-bs-theme="dark"] .subcategories i {
    color: inherit !important;
}

[data-bs-theme="dark"] .card {
    background-color: #12243a;
    border-color: #1f2a44;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .card-title a {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .card-header {
    background-color: #0f2036;
    border-bottom-color: #1f2a44;
}

[data-bs-theme="dark"] .form-control {
    background-color: #0f2036;
    border-color: #1f2a44;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #12243a;
    border-color: var(--primary-color);
    color: #e2e8f0;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    color: #ffffff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #94a3b8 !important;
    border-color: #94a3b8 !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    color: #ffffff !important;
    background-color: #94a3b8 !important;
    border-color: #94a3b8 !important;
}

/* Dark mode için indirme butonları ve diğer butonlar */
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-success,
[data-bs-theme="dark"] .btn-info,
[data-bs-theme="dark"] .btn-warning,
[data-bs-theme="dark"] .btn-danger {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-lg {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #0f2036;
    border-color: #1f2a44;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #12243a;
    color: #ffffff;
}

[data-bs-theme="dark"] .alert {
    border-color: #1f2a44;
}

[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #0f2036 !important;
}

[data-bs-theme="dark"] .border {
    border-color: #1f2a44 !important;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #0f2036;
    border-color: #1f2a44;
}

[data-bs-theme="dark"] .modal-header {
    border-bottom-color: #1f2a44;
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: #1f2a44;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: #0f2036;
    --bs-table-border-color: #1f2a44;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #93c5fd;
}

[data-bs-theme="dark"] .nav-link {
    color: rgba(226, 232, 240, 0.8);
}

[data-bs-theme="dark"] .nav-link:hover {
    color: #ffffff;
}

/* ===== Dark mode page content (typography) ===== */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #f1f5f9;
    /* daha parlak başlıklar */
}

/* Dark mode page header title/subtitle fixes for readability */
[data-bs-theme="dark"] .page-header .page-title,
[data-bs-theme="dark"] .page-header h1 {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .page-header .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] li,
[data-bs-theme="dark"] dt,
[data-bs-theme="dark"] dd {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .lead {
    color: #dbeafe;
}

[data-bs-theme="dark"] a {
    color: #93c5fd;
}

[data-bs-theme="dark"] a:hover {
    color: #bfdbfe;
}

[data-bs-theme="dark"] hr {
    color: #1f2a44;
    opacity: 1;
}

[data-bs-theme="dark"] blockquote {
    background: #0f2036;
    border-left: 4px solid #3b82f6;
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

[data-bs-theme="dark"] code,
[data-bs-theme="dark"] pre {
    background: #0b1220;
    color: #e2e8f0;
    border: 1px solid #1f2a44;
}

[data-bs-theme="dark"] code {
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
}

[data-bs-theme="dark"] pre {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

/* === BLOG CONTENT STYLES === */

/* Genel paragraf ayarları */
.blog-preview-content p {
    margin: 0.35rem 0;
    line-height: 1.6;
}

/* İçerik lead (giriş) paragrafı */
.blog-preview-content.lead {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Dosya ve Döküman Linkleri */
.blog-preview-content .file-link,
.blog-preview-content .document-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-preview-content .file-link:hover,
.blog-preview-content .document-link:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.blog-preview-content .file-link i,
.blog-preview-content .document-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.blog-preview-content .file-link .file-size,
.blog-preview-content .document-link .file-size {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Dark mode için dosya linkleri */
[data-bs-theme="dark"] .blog-preview-content .file-link,
[data-bs-theme="dark"] .blog-preview-content .document-link {
    background: linear-gradient(135deg, #1f2a44 0%, #0f2036 100%);
    border-color: #2b3b5f;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .blog-preview-content .file-link:hover,
[data-bs-theme="dark"] .blog-preview-content .document-link:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
}

/* Küçük Başlık (H4) */
.blog-preview-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    border-left: 4px solid #0d6efd;
    line-height: 1.4;
}

[data-bs-theme="dark"] .blog-preview-content h4 {
    color: #e2e8f0;
    border-left-color: #3b82f6;
}

/* Bağlantılar (Links) */
.blog-preview-content a.external-link {
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.blog-preview-content a.external-link:hover {
    color: #0b5ed7;
    border-bottom-color: #0b5ed7;
}

.blog-preview-content a.external-link i {
    margin-left: 0.25rem;
    font-size: 0.85rem;
}

[data-bs-theme="dark"] .blog-preview-content a.external-link {
    color: #93c5fd;
}

[data-bs-theme="dark"] .blog-preview-content a.external-link:hover {
    color: #bfdbfe;
    border-bottom-color: #bfdbfe;
}

/* Başlıklar (H2, H3) */
.blog-preview-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-preview-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

[data-bs-theme="dark"] .blog-preview-content h2 {
    color: #f1f5f9;
    border-bottom-color: #1f2a44;
}

[data-bs-theme="dark"] .blog-preview-content h3 {
    color: #e2e8f0;
}

/* Listeler */
.blog-preview-content ul,
.blog-preview-content ol {
    margin: 0.25rem 0;
    padding-left: 1.8rem;
}

.blog-preview-content ul li,
.blog-preview-content ol li {
    margin: 0;
    margin-bottom: 0.15rem;
    line-height: 1.5;
    padding: 0;
    padding-left: 0.2rem;
}

.blog-preview-content ul li {
    list-style-type: disc;
    list-style-position: outside;
}

.blog-preview-content ol li {
    list-style-type: decimal;
    list-style-position: outside;
}

[data-bs-theme="dark"] .blog-preview-content ul li,
[data-bs-theme="dark"] .blog-preview-content ol li {
    color: #cbd5e1;
}

/* Tablolar */
.blog-preview-content table {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-preview-content table thead {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
}

.blog-preview-content table th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #0b5ed7;
}

.blog-preview-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.blog-preview-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.blog-preview-content table tbody tr:hover {
    background-color: #e9ecef;
}

[data-bs-theme="dark"] .blog-preview-content table {
    border-color: #1f2a44;
}

[data-bs-theme="dark"] .blog-preview-content table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

[data-bs-theme="dark"] .blog-preview-content table th {
    border-bottom-color: #2563eb;
}

[data-bs-theme="dark"] .blog-preview-content table td {
    border-bottom-color: #1f2a44;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .blog-preview-content table tbody tr:nth-child(even) {
    background-color: #0f2036;
}

[data-bs-theme="dark"] .blog-preview-content table tbody tr:hover {
    background-color: #12243a;
}

/* Konsol Output */
/* Console Output - Default (Light Mode) */
:not([data-bs-theme="dark"]) .console-window {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

:not([data-bs-theme="dark"]) .console-window .toolbar {
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

:not([data-bs-theme="dark"]) .console-window .toolbar .console-label {
    color: #0d6efd;
}

:not([data-bs-theme="dark"]) .console-window .copy-btn {
    background: #ffffff;
    color: #212529;
    border: 1px solid #ced4da;
}

:not([data-bs-theme="dark"]) .console-window .copy-btn:hover {
    background: #e9ecef;
}

:not([data-bs-theme="dark"]) .console-window pre {
    background: #f8f9fa;
    color: #198754;
}

/* Console Output - Dark Mode */
.console-window {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    width: 100%;
    position: relative;
}

.console-window .toolbar {
    background: #2d2d2d;
    padding: 6px 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-window .toolbar .console-label {
    color: #4ec9b0;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0.5rem;
}

.console-window .toolbar .console-label i {
    margin-right: 0.5rem;
}

.console-window .toolbar .dots {
    display: flex;
    gap: 4px;
}

.console-window .toolbar .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.console-window .toolbar .dots .red {
    background: #ff5f56;
}

.console-window .toolbar .dots .yellow {
    background: #ffbd2e;
}

.console-window .toolbar .dots .green {
    background: #27ca3f;
}

.console-window .copy-btn {
    background: #e9ecef;
    border: none;
    color: #212529;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.console-window .copy-btn:hover {
    background: #505050;
}

.console-window .copy-btn.copied {
    background: #27ca3f;
    color: white;
}

.console-window pre {
    margin: 0;
    padding: 0.75rem;
    background: #1e1e1e;
    color: #4ec9b0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
    border: none;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.console-window code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-family: inherit;
}

/* === RAW TEXT (KAPSAM DIŞI) === */
.raw-text {
    margin: 1rem 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Dark mode console - code-window ile aynı renkler */
[data-bs-theme="dark"] .console-window {
    background: #0b1221 !important;
    border: 1px solid #1e293b !important;
    border-radius: 6px !important;
}

[data-bs-theme="dark"] .console-window .toolbar {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}

[data-bs-theme="dark"] .console-window pre {
    background: #0b1221 !important;
    color: #4ec9b0 !important;
}

[data-bs-theme="dark"] .console-window .copy-btn {
    background: #1e293b !important;
    color: #e6edf3 !important;
    border: 1px solid #334155 !important;
}

[data-bs-theme="dark"] .console-window .copy-btn:hover {
    background: #334155 !important;
}

/* Enhanced Code Block Styling - Default Light Mode */
.code-window {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 750px;
    width: 100%;
    position: relative;
}

.code-window .toolbar {
    background: #e9ecef;
    padding: 6px 10px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-window .toolbar .left-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.code-window .dots {
    display: flex;
    gap: 4px;
}

.code-window .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.code-window .dots .red {
    background: #ff5f56;
}

.code-window .dots .yellow {
    background: #ffbd2e;
}

.code-window .dots .green {
    background: #27ca3f;
}

.code-window .copy-btn {
    background: #dee2e6;
    border: none;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.code-window .copy-btn:hover {
    background: #ced4da;
}

.code-window .copy-btn.copied {
    background: #27ca3f;
    color: white;
}

/* Language label in code window */
.code-window .lang-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

/* Prism.js syntax highlighting customization */
.code-window code[class*="language-"],
.code-window pre[class*="language-"] {
    color: #212529;
    background: transparent;
    text-shadow: none;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* Light mode (default) syntax highlighting - koyu renkler */
:not([data-bs-theme="dark"]) .code-window .token.comment,
:not([data-bs-theme="dark"]) .code-window .token.prolog,
:not([data-bs-theme="dark"]) .code-window .token.doctype,
:not([data-bs-theme="dark"]) .code-window .token.cdata {
    color: #008000;
    font-style: italic;
}

:not([data-bs-theme="dark"]) .code-window .token.punctuation {
    color: #000000;
}

:not([data-bs-theme="dark"]) .code-window .token.property,
:not([data-bs-theme="dark"]) .code-window .token.tag,
:not([data-bs-theme="dark"]) .code-window .token.boolean,
:not([data-bs-theme="dark"]) .code-window .token.number,
:not([data-bs-theme="dark"]) .code-window .token.constant,
:not([data-bs-theme="dark"]) .code-window .token.symbol,
:not([data-bs-theme="dark"]) .code-window .token.deleted {
    color: #098658;
}

:not([data-bs-theme="dark"]) .code-window .token.selector,
:not([data-bs-theme="dark"]) .code-window .token.attr-name,
:not([data-bs-theme="dark"]) .code-window .token.string,
:not([data-bs-theme="dark"]) .code-window .token.char,
:not([data-bs-theme="dark"]) .code-window .token.builtin,
:not([data-bs-theme="dark"]) .code-window .token.inserted {
    color: #a31515;
}

:not([data-bs-theme="dark"]) .code-window .token.operator,
:not([data-bs-theme="dark"]) .code-window .token.entity,
:not([data-bs-theme="dark"]) .code-window .token.url,
:not([data-bs-theme="dark"]) .language-css .token.string,
:not([data-bs-theme="dark"]) .style .token.string {
    color: #000000;
}

:not([data-bs-theme="dark"]) .code-window .token.atrule,
:not([data-bs-theme="dark"]) .code-window .token.attr-value,
:not([data-bs-theme="dark"]) .code-window .token.keyword {
    color: #0000ff;
}

:not([data-bs-theme="dark"]) .code-window .token.function,
:not([data-bs-theme="dark"]) .code-window .token.class-name {
    color: #795e26;
}

:not([data-bs-theme="dark"]) .code-window .token.regex,
:not([data-bs-theme="dark"]) .code-window .token.important,
:not([data-bs-theme="dark"]) .code-window .token.variable {
    color: #001080;
}

.code-window .token.important,
.code-window .token.bold {
    font-weight: bold;
}

.code-window .token.italic {
    font-style: italic;
}

.code-window .token.entity {
    cursor: help;
}

.code-window pre {
    margin: 0;
    padding: 0.75rem;
    background: #f8f9fa;
    color: #1a1a1a;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
    border: none;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Dark mode kod penceresi - Öncelikli */
[data-bs-theme="dark"] .code-window {
    background: #0b1221 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .code-window .toolbar {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}

[data-bs-theme="dark"] .code-window pre {
    background: #0b1221 !important;
    color: #e6edf3 !important;
}

/* Dark mode syntax highlighting - daha parlak renkler */
[data-bs-theme="dark"] .code-window .token.comment,
[data-bs-theme="dark"] .code-window .token.prolog,
[data-bs-theme="dark"] .code-window .token.doctype,
[data-bs-theme="dark"] .code-window .token.cdata {
    color: #7ec699 !important;
}

[data-bs-theme="dark"] .code-window .token.punctuation {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .code-window .token.property,
[data-bs-theme="dark"] .code-window .token.tag,
[data-bs-theme="dark"] .code-window .token.boolean,
[data-bs-theme="dark"] .code-window .token.number,
[data-bs-theme="dark"] .code-window .token.constant,
[data-bs-theme="dark"] .code-window .token.symbol,
[data-bs-theme="dark"] .code-window .token.deleted {
    color: #b5cea8 !important;
}

[data-bs-theme="dark"] .code-window .token.selector,
[data-bs-theme="dark"] .code-window .token.attr-name,
[data-bs-theme="dark"] .code-window .token.string,
[data-bs-theme="dark"] .code-window .token.char,
[data-bs-theme="dark"] .code-window .token.builtin,
[data-bs-theme="dark"] .code-window .token.inserted {
    color: #ce9178 !important;
}

[data-bs-theme="dark"] .code-window .token.operator,
[data-bs-theme="dark"] .code-window .token.entity,
[data-bs-theme="dark"] .code-window .token.url,
[data-bs-theme="dark"] .language-css .token.string,
[data-bs-theme="dark"] .style .token.string {
    color: #d4d4d4 !important;
}

[data-bs-theme="dark"] .code-window .token.atrule,
[data-bs-theme="dark"] .code-window .token.attr-value,
[data-bs-theme="dark"] .code-window .token.keyword {
    color: #569cd6 !important;
}

[data-bs-theme="dark"] .code-window .token.function,
[data-bs-theme="dark"] .code-window .token.class-name {
    color: #dcdcaa !important;
}

[data-bs-theme="dark"] .code-window .token.regex,
[data-bs-theme="dark"] .code-window .token.important,
[data-bs-theme="dark"] .code-window .token.variable {
    color: #9cdcfe !important;
}

[data-bs-theme="dark"] .code-window code {
    background: transparent !important;
    color: #e6edf3 !important;
}

[data-bs-theme="dark"] .code-window .copy-btn {
    background: #1e293b !important;
    color: #e6edf3 !important;
}

[data-bs-theme="dark"] .code-window .copy-btn:hover {
    background: #334155 !important;
}

.code-window code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-family: inherit;
}

/* Light mode syntax colors - daha koyu ve okunabilir */
:not([data-bs-theme="dark"]) .code-window .token.comment,
:not([data-bs-theme="dark"]) .code-window .token.prolog,
:not([data-bs-theme="dark"]) .code-window .token.doctype,
:not([data-bs-theme="dark"]) .code-window .token.cdata {
    color: #5a7a3a;
}

:not([data-bs-theme="dark"]) .code-window .token.property,
:not([data-bs-theme="dark"]) .code-window .token.tag,
:not([data-bs-theme="dark"]) .code-window .token.boolean,
:not([data-bs-theme="dark"]) .code-window .token.number,
:not([data-bs-theme="dark"]) .code-window .token.constant,
:not([data-bs-theme="dark"]) .code-window .token.symbol,
:not([data-bs-theme="dark"]) .code-window .token.deleted {
    color: #0f6f0f;
}

:not([data-bs-theme="dark"]) .code-window .token.selector,
:not([data-bs-theme="dark"]) .code-window .token.attr-name,
:not([data-bs-theme="dark"]) .code-window .token.string,
:not([data-bs-theme="dark"]) .code-window .token.char,
:not([data-bs-theme="dark"]) .code-window .token.builtin,
:not([data-bs-theme="dark"]) .code-window .token.inserted {
    color: #a31515;
}

:not([data-bs-theme="dark"]) .code-window .token.atrule,
:not([data-bs-theme="dark"]) .code-window .token.attr-value,
:not([data-bs-theme="dark"]) .code-window .token.keyword {
    color: #0000ff;
}

:not([data-bs-theme="dark"]) .code-window .token.function,
:not([data-bs-theme="dark"]) .code-window .token.class-name {
    color: #795e26;
}

:not([data-bs-theme="dark"]) .code-window .token.regex,
:not([data-bs-theme="dark"]) .code-window .token.important,
:not([data-bs-theme="dark"]) .code-window .token.variable {
    color: #001080;
}

/* Syntax highlighting for common languages */
.code-window .keyword {
    color: #569cd6;
}

.code-window .string {
    color: #ce9178;
}

.code-window .comment {
    color: #6a9955;
    font-style: italic;
}

.code-window .number {
    color: #b5cea8;
}

.code-window .function {
    color: #dcdcaa;
}

.code-window .variable {
    color: #9cdcfe;
}

.code-window .operator {
    color: #000000;
}

.code-window .punctuation {
    color: #000000;
}

/* Dark mode syntax highlighting */
[data-bs-theme="dark"] .code-window {
    background: #1e1e1e;
    border-color: #333;
}

[data-bs-theme="dark"] .code-window .toolbar {
    background: #2d2d2d;
    border-bottom-color: #333;
}

[data-bs-theme="dark"] .code-window pre {
    background: #1e1e1e;
    color: #e8e8e8;
}

[data-bs-theme="dark"] .code-window .keyword {
    color: #569cd6;
}

[data-bs-theme="dark"] .code-window .string {
    color: #ce9178;
}

[data-bs-theme="dark"] .code-window .comment {
    color: #6a9955;
}

[data-bs-theme="dark"] .code-window .number {
    color: #b5cea8;
}

[data-bs-theme="dark"] .code-window .function {
    color: #dcdcaa;
}

[data-bs-theme="dark"] .code-window .variable {
    color: #9cdcfe;
}

[data-bs-theme="dark"] .code-window .copy-btn {
    background: #404040;
    color: #e8e8e8;
}

[data-bs-theme="dark"] .code-window .copy-btn:hover {
    background: #505050;
}

[data-bs-theme="dark"] .badge.bg-light,
[data-bs-theme="dark"] .bg-light.text-dark,
[data-bs-theme="dark"] .text-dark.bg-light {
    background-color: #0f2036 !important;
    color: #e2e8f0 !important;
}

/* ===== Dark mode layout background fixes ===== */
[data-bs-theme="dark"] .main-content,
[data-bs-theme="dark"] .main-content-inner,
[data-bs-theme="dark"] .container-fluid {
    background-color: #0b1220 !important;
}

/* Override explicit white backgrounds in dark mode */
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .card.bg-white,
[data-bs-theme="dark"] .accordion .accordion-body.bg-white {
    background-color: #0f2036 !important;
    color: #e2e8f0 !important;
}

/* Form select in dark mode */
[data-bs-theme="dark"] .form-select {
    background-color: #0f2036;
    border-color: #1f2a44;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .form-select:focus {
    background-color: #12243a;
    border-color: var(--primary-color);
    color: #e2e8f0;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Accordion in dark mode */
[data-bs-theme="dark"] .accordion-item,
[data-bs-theme="dark"] .accordion-body {
    background-color: #0f2036;
    color: #e2e8f0;
    border-color: #1f2a44;
}

[data-bs-theme="dark"] .accordion-button {
    background-color: #0f2036;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #12243a;
    color: #ffffff;
    box-shadow: inset 0 -1px 0 #1f2a44;
}

[data-bs-theme="dark"] .accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Dark mode toggle button */
#darkModeToggle {
    color: inherit;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

#darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] #darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header dark mode pill button */
.navbar #darkModeToggle {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.navbar #darkModeToggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .navbar #darkModeToggle {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .navbar #darkModeToggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile koyu mod butonu için padding ayarı */
@media (max-width: 991.98px) {
    .navbar-collapse .nav-item #darkModeToggle {
        margin-left: 0.75rem;
    }

    /* Mobil hamburger menü - tüm bileşenleri ortala */
    .navbar-collapse {
        text-align: center;
        padding: 1rem 0;
    }

    .navbar-collapse .navbar-nav {
        align-items: center;
    }

    .navbar-collapse .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar-collapse .nav-link {
        justify-content: center;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
    }

    /* Mobil sidebar içeriği stilleri */
    .mobile-sidebar-content {
        width: 100%;
        margin-top: 1.5rem;
        padding: 1rem;
        background-color: transparent;
        border-radius: 8px;
    }

    .mobile-categories-section {
        width: 100%;
    }

    .mobile-category-heading {
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-category-group {
        margin-bottom: 1.5rem;
    }

    .mobile-category-title {
        text-align: center;
        color: rgba(255, 255, 255, 0.95);
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        background-color: transparent;
        border-radius: 6px;
    }

    .mobile-category-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 1rem;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        transition: all 0.2s ease;
        border-radius: 4px;
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

    .mobile-category-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 1);
        transform: translateX(3px);
    }

    .mobile-category-link .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* Dark mode toggle mobilde ortala */
    .navbar-collapse .nav-item .btn {
        justify-content: center;
        margin: 0.5rem auto;
    }

    .navbar-collapse .nav-item #darkModeToggle {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0.5rem auto;
        margin-left: auto;
        margin-right: auto;
    }

    /* Admin dropdown mobilde ortala */
    .navbar-collapse .dropdown-menu {
        text-align: center;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 auto !important;
        position: absolute !important;
        min-width: 200px !important;
    }

    .navbar-collapse .dropdown {
        position: relative;
    }
}

/* Subtle label appearance */
#darkModeLabel {
    opacity: 0.85;
    font-weight: 500;
}

/* Icon transition */
#darkModeIcon {
    transition: transform 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    body:not([data-bs-theme]) {
        --bs-body-bg: #212529;
        --bs-body-color: #fff;
    }
}

/* === CUSTOM COMPONENTS === */
.coupon-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* === Ad Slots === */
.ad-slot {
    width: 100%;
    display: block;
    text-align: center;
}

.ad-slot .placeholder {
    color: #666;
    background: #f1f3f5;
    border: 1px dashed #adb5bd;
    border-radius: 6px;
    padding: 14px;
    font-size: .95rem;
}

.ad-slot-top .placeholder {
    min-height: 90px;
}

.ad-slot-bottom .placeholder {
    min-height: 90px;
}

.ad-slot-sidebar .placeholder {
    min-height: 250px;
}

@media (min-width: 992px) {
    .ad-slot-top {
        min-height: 90px;
    }

    .ad-slot-bottom {
        min-height: 90px;
    }

    .ad-slot-sidebar {
        min-height: 250px;
    }
}

@media (min-width: 1200px) {

    .ad-slot-top,
    .ad-slot-bottom {
        min-height: 90px;
    }
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Coupon title/link coloring */
.coupon-card .card-title a,
.coupon-card h1 a,
.coupon-card h2 a,
.coupon-card h3 a,
.coupon-card h4 a,
.coupon-card h5 a,
.coupon-card h6 a {
    color: inherit;
    text-decoration: none;
}

.coupon-card .card-title a:hover,
.coupon-card h5 a:hover {
    color: var(--primary-color);
}

/* Dark mode adjustments for coupon titles */
[data-bs-theme="dark"] .coupon-card .card-title,
[data-bs-theme="dark"] .coupon-card h1,
[data-bs-theme="dark"] .coupon-card h2,
[data-bs-theme="dark"] .coupon-card h3,
[data-bs-theme="dark"] .coupon-card h4,
[data-bs-theme="dark"] .coupon-card h5,
[data-bs-theme="dark"] .coupon-card h6 {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .coupon-card .card-title a,
[data-bs-theme="dark"] .coupon-card h5 a {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .coupon-card .card-title a:hover,
[data-bs-theme="dark"] .coupon-card h5 a:hover {
    color: #bfdbfe;
}

/* Force coupon titles that use Bootstrap's text-dark to be readable in dark mode */
[data-bs-theme="dark"] .coupon-card a.text-dark {
    color: #e2e8f0 !important;
}

/* Ensure discount badge text is readable on dark backgrounds */
.coupon-card .badge {
    color: #fff;
}

[data-bs-theme="dark"] .coupon-card .badge {
    color: #fff;
}

/* === Footer final color overrides === */
.site-footer,
.site-footer p,
.site-footer small,
.site-footer li,
.site-footer a,
.site-footer .footer-links a,
.site-footer h6,
.site-footer .dropdown-header,
.site-footer .footer-bottom small {
    color: #ffffff !important;
}

.site-footer .footer-links a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Nuclear option to guarantee white footer text regardless of upstream styles */
.site-footer *,
.site-footer {
    color: #ffffff !important;
}

.site-footer a:link,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active {
    color: #ffffff !important;
}

/* Brand logo styling */
.brand-logo {
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0;
    max-height: 100%;
    width: auto;
    filter: brightness(1.1) contrast(1.05);
    opacity: 0.9;
}

/* Header logo specific styling */
.navbar .brand-logo {
    height: 40px;
    max-width: 200px;
    background-color: transparent;
    padding: 0;
}

/* Header logo hover effect */
.navbar .brand-logo:hover {
    filter: brightness(1.3) contrast(1.1);
    opacity: 1;
    transform: scale(1.05);
}

/* Footer logo specific styling */
.site-footer .brand-logo {
    height: 50px;
    max-width: 250px;
    background-color: transparent;
    padding: 0;
}

/* Footer logo hover effect */
.site-footer .brand-logo:hover {
    filter: brightness(1.4) contrast(1.15);
    opacity: 1;
    transform: scale(1.08);
}

/* Dark mode logo adjustments */
[data-bs-theme="dark"] .brand-logo {
    filter: brightness(1.2) contrast(1.1);
    opacity: 0.95;
}

[data-bs-theme="dark"] .navbar .brand-logo:hover {
    filter: brightness(1.5) contrast(1.2);
    opacity: 1;
}

[data-bs-theme="dark"] .site-footer .brand-logo:hover {
    filter: brightness(1.6) contrast(1.25);
    opacity: 1;
}

/* Brand color accents */
.brand-accent {
    position: relative;
}

.brand-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--brand-color, #007bff);
}

.tool-card {
    border-left: 4px solid var(--success-color);
}

.category-card {
    border-top: 4px solid var(--warning-color);
}

/* === SEARCH RESULTS === */
.search-result-item {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: var(--light-color);
}

/* === LOADING STATES === */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === MOBILE DARK MODE TOGGLE FIX === */
@media (max-width: 991.98px) {

    /* Mobil sidebar'da koyu mod butonu için özel padding */
    .sidebar-section.d-lg-none {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Mobil koyu mod butonunu tam genişlik yap ve merkeze hizala */
    #mobileDarkModeToggle {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* === ARAÇ SAYFALARI ÖZEL STILLERI === */
/* Nasıl Kullanılır Adımları */
.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-item .badge {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-item>div {
    flex: 1;
    margin-top: 2px;
}

.step-item strong {
    display: block;
    margin-bottom: 2px;
}

/* Araç Sayfaları Reklam Alanı */
.ads-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.ads-section.empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ads-section.empty::before {
    content: "Reklam Alanı";
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Dark mode için reklam alanı */
body.dark-mode .ads-section {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .ads-section.empty {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-mode .ads-section.empty::before {
    color: #a0aec0;
}

/* === ARAÇ SAYFALARI ÖZEL STILLERI === */
/* Nasıl Kullanılır Adımları */
.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-item .badge {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-item>div {
    flex: 1;
    margin-top: 2px;
}

.step-item strong {
    display: block;
    margin-bottom: 2px;
}

/* Araç Sayfaları Reklam Alanı */
.ads-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.ads-section.empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ads-section.empty::before {
    content: "Reklam Alanı";
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Dark mode için reklam alanı */
body.dark-mode .ads-section {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .ads-section.empty {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-mode .ads-section.empty::before {
    color: #a0aec0;
}

/* === REKLAM STİLLERİ === */

/* Blog Reklamı - Reklam içeriğinin kendi boyutlarını kullanır */
.blog-ad {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin: 2.5rem auto;
    padding: 2rem;
    padding-top: 2.5rem;
    text-align: center;
    position: relative;
    display: block;
    width: fit-content;
    min-width: 200px;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-ad::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6610f2, #6f42c1, #e83e8c, #dc3545, #fd7e14, #ffc107, #28a745, #20c997, #17a2b8);
    border-radius: 12px 12px 0 0;
}

.blog-ad::after {
    content: "Reklam";
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.15);
    color: #6c757d;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Header Reklamı */
.header-ad {
    margin: 1rem auto;
    text-align: center;
    display: block;
    max-width: 100%;
}

/* Footer Reklamı */
.footer-ad {
    margin: 1rem auto;
    text-align: center;
    display: block;
    max-width: 100%;
}

/* AdSense ve Diğer Reklam Ağları Uyumluluğu */
.header-ad>*,
.footer-ad>* {
    max-width: 100%;
    max-height: 100%;
}

.header-ad ins,
.footer-ad ins {
    border: none !important;
    background: transparent !important;
}

/* 728x90 Banner Reklamlar */
.banner-728x90 {
    max-width: 728px;
    min-height: 90px;
}

/* 300x250 Medium Rectangle */
.rectangle-300x250 {
    max-width: 300px;
    min-height: 250px;
}

/* 320x100 Mobil Banner */
.mobile-320x100 {
    max-width: 320px;
    min-height: 100px;
}

/* Blog Images */
.blog-preview-content img,
.centered-image {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure images in blog content are displayed as images, not code */
.content img,
.blog-preview-content img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.08);
}

/* Image alignment options */
.blog-preview-content img.img-left,
.content img.img-left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    clear: left;
}

.blog-preview-content img.img-right,
.content img.img-right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    clear: right;
}

.blog-preview-content img.img-center,
.content img.img-center {
    display: block;
    margin: 2rem auto;
    float: none;
    clear: both;
}

/* Image container with clearfix */
.blog-preview-content .img-container,
.content .img-container {
    overflow: auto;
    margin-bottom: 1.5rem;
}

.blog-preview-content .img-container::after,
.content .img-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Clear floats after floating images */
.blog-preview-content::after,
.content::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure content after floating images wraps properly */
.blog-preview-content h2,
.blog-preview-content h3,
.blog-preview-content h4,
.blog-preview-content ul,
.blog-preview-content ol,
.content h2,
.content h3,
.content h4,
.content ul,
.content ol {
    clear: both;
}

/* Dark mode image adjustments */
body.dark-mode .blog-preview-content img,
body.dark-mode .content img,
[data-bs-theme="dark"] .blog-preview-content img,
[data-bs-theme="dark"] .content img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 8px !important;
}

/* Blog başlık aralıkları - Akademik makale tarzı */
.blog-preview-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-preview-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.blog-preview-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Contract Style */
.contract-content {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 100%;
    margin: 0;
}

.contract-content h1 {
    font-size: 1.75rem;
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3182ce;
}

.contract-content h2 {
    font-size: 1.35rem;
    color: #2d3748;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 4px solid #3182ce;
    background: #f7fafc;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.contract-content h3 {
    font-size: 1.15rem;
    color: #4a5568;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid #63b3ed;
}

.contract-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
    color: inherit;
}

.contract-content ul,
.contract-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
}

.contract-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    line-height: 1.8;
}

.contract-content strong {
    font-weight: 600;
}

.contract-content .article-number {
    display: inline-block;
    background: #3182ce;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Dark Mode for Contract */
body.dark-mode .contract-content,
[data-bs-theme="dark"] .contract-content {
    background: transparent;
    color: #e2e8f0;
}

body.dark-mode .contract-content h1,
[data-bs-theme="dark"] .contract-content h1 {
    color: #f1f5f9;
    border-bottom-color: #3182ce;
}

body.dark-mode .contract-content h2,
[data-bs-theme="dark"] .contract-content h2 {
    color: #e2e8f0;
    background: #1e293b;
    border-left-color: #3182ce;
}

body.dark-mode .contract-content h3,
[data-bs-theme="dark"] .contract-content h3 {
    color: #cbd5e0;
    border-left-color: #63b3ed;
}

body.dark-mode .contract-content p,
[data-bs-theme="dark"] .contract-content p {
    color: #cbd5e1;
}

body.dark-mode .contract-content ul,
body.dark-mode .contract-content ol,
[data-bs-theme="dark"] .contract-content ul,
[data-bs-theme="dark"] .contract-content ol {
    background: #1e293b;
    border-left-color: #334155;
}

body.dark-mode .contract-content li,
[data-bs-theme="dark"] .contract-content li {
    color: #cbd5e1;
}

body.dark-mode .contract-content strong,
[data-bs-theme="dark"] .contract-content strong {
    color: #f1f5f9;
}

/* Footer Logo */
.tredgo-logo {
    height: 24px;
    width: auto;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.tredgo-logo-link {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.tredgo-logo-link:hover {
    opacity: 0.7;
}

/* About Page Dark Mode Fix */
body.dark-mode .about-content .card.bg-primary,
[data-bs-theme="dark"] .about-content .card.bg-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    border: 1px solid #3b82f6;
}

body.dark-mode .about-content .card.bg-primary .text-white,
[data-bs-theme="dark"] .about-content .card.bg-primary .text-white,
body.dark-mode .about-content .card.bg-primary p,
[data-bs-theme="dark"] .about-content .card.bg-primary p,
body.dark-mode .about-content .card.bg-primary h5,
[data-bs-theme="dark"] .about-content .card.bg-primary h5 {
    color: #f1f5f9 !important;
}

body.dark-mode .about-content .card.bg-primary .btn-light,
[data-bs-theme="dark"] .about-content .card.bg-primary .btn-light {
    background-color: #f8fafc;
    color: #1e40af;
    border: none;
    font-weight: 600;
}

body.dark-mode .about-content .card.bg-primary .btn-light:hover,
[data-bs-theme="dark"] .about-content .card.bg-primary .btn-light:hover {
    background-color: #e2e8f0;
    color: #1e3a8a;
}

/* About page link colors in dark mode */
body.dark-mode .about-content .card.bg-primary a,
[data-bs-theme="dark"] .about-content .card.bg-primary a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
}

body.dark-mode .about-content .card.bg-primary a:hover,
[data-bs-theme="dark"] .about-content .card.bg-primary a:hover {
    color: #e0f2fe !important;
    text-decoration: underline;
}

/* Button içindeki yazılar için özel renk */
body.dark-mode .about-content .card.bg-primary .btn-light,
[data-bs-theme="dark"] .about-content .card.bg-primary .btn-light,
body.dark-mode .about-content .card.bg-primary .btn,
[data-bs-theme="dark"] .about-content .card.bg-primary .btn {
    background-color: #ffffff !important;
    color: #1e40af !important;
    border: none !important;
    font-weight: 600 !important;
}

body.dark-mode .about-content .card.bg-primary .btn-light:hover,
[data-bs-theme="dark"] .about-content .card.bg-primary .btn-light:hover,
body.dark-mode .about-content .card.bg-primary .btn:hover,
[data-bs-theme="dark"] .about-content .card.bg-primary .btn:hover {
    background-color: #f1f5f9 !important;
    color: #1e3a8a !important;
}

/* Yorum Hatırlatıcısı Stilleri */
.comment-reminder {
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
    border-left: 4px solid #0d6efd;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: #1e3a8a;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.1);
}

.comment-reminder p {
    margin: 0;
    line-height: 1.5;
}

.comment-reminder i {
    color: #0d6efd;
}

/* Dark mode için yorum hatırlatıcısı */
body.dark-mode .comment-reminder,
[data-bs-theme="dark"] .comment-reminder {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-left-color: #3b82f6;
    color: #cbd5e1;
}

body.dark-mode .comment-reminder i,
[data-bs-theme="dark"] .comment-reminder i {
    color: #60a5fa;
}
/* NUCLEAR SCROLL FIX - FORCED OVERRIDES */
html {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: 100% !important;
}

body {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100% !important;
    position: static !important;
    overscroll-behavior: auto !important;
}

/* Ensure wrappers don't trap scroll */
.main-layout, 
.main-content-wrapper, 
.main-content-inner, 
.flex-grow-1,
#app {
    overflow: visible !important; 
    height: auto !important;
    display: block !important; /* Reset potential flex locking if needed */
}

@media (min-width: 992px) {
    .main-layout {
        display: flex !important; /* Restore flex for desktop layout */
    }
}

/* Kill generic blocking overlays */
.sidebar-overlay:not(.show) {
    pointer-events: none !important;
    display: none !important;
    opacity: 0 !important;
    z-index: -9999 !important;
}
