:root {
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --secondary-rgb: 139, 92, 246;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
}

.dark {
    --bg-primary: #111827;
    --bg-primary-rgb: 17, 24, 39;
    --bg-secondary: #1f2937;
    --bg-secondary-rgb: 31, 41, 55;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
}

:root:not(.dark) {
    --bg-primary: #ffffff;
    --bg-primary-rgb: 255, 255, 255;
    --bg-secondary: #f9fafb;
    --bg-secondary-rgb: 249, 250, 251;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* --- Premium Navigation System --- */
header {
    background-color: rgba(var(--bg-primary-rgb), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item:hover>a {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* Dropdown Menu - Glassmorphism */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(var(--bg-secondary-rgb), 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    min-width: 240px;
    padding: 0.75rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.nav-item:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin-bottom: 0.25rem;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateX(4px);
}

.dropdown-menu a i {
    opacity: 0.7;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Sub-dropdowns */
.dropdown-menu .nav-item-has-children>.dropdown-menu {
    top: 0;
    left: calc(100% + 10px);
    transform: translateX(10px);
}

.dropdown-menu .nav-item:hover>.dropdown-menu {
    transform: translateX(0);
}

.nav-item-has-children>a i[data-lucide="chevron-down"] {
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.nav-item:hover>a i[data-lucide="chevron-down"] {
    transform: rotate(180deg);
    opacity: 1;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
}

.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 1rem;
    margin: 2rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 4rem 0;
}

.cta-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.btn-cta {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
}

footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    /* Mobile Dropdown Adjustments */
    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1.5rem;
        display: none;
        /* Mobile toggle can be added later, for now we can show it or keep it simple */
        transition: none;
    }

    .nav-item:hover>.dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.dark-popup {
    background-color: #1f2937 !important;
}

.dark-title {
    color: #f9fafb !important;
}

.dark-content {
    color: #d1d5db !important;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 1rem 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-secondary) !important;
    margin-bottom: 1rem;
}

/* Arama ve Select Inputlar� */
.dataTables_wrapper input,
.dataTables_wrapper select {
    border: 1px solid var(--border-color) !important;
    border-radius: 0.375rem !important;
    padding: 0.375rem 0.5rem !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    outline: none;
}

.dataTables_wrapper input:focus,
.dataTables_wrapper select:focus {
    border-color: var(--primary) !important;
}

/* Pagination Butonları - modern ve sleek görünüm */
.dataTables_wrapper .pagination {
    margin-top: 1rem;
    gap: 0.25rem;
}

.dataTables_wrapper .page-item .page-link {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    box-shadow: none;
}

.dataTables_wrapper .page-item:first-child .page-link,
.dataTables_wrapper .page-item:last-child .page-link {
    border-radius: 0.5rem;
}

.dataTables_wrapper .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.dataTables_wrapper .page-item:not(.active):not(.disabled) .page-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.dataTables_wrapper .page-item.disabled .page-link {
    background: var(--bg-primary);
    color: var(--text-secondary);
    opacity: 0.6;
    border-color: var(--border-color);
}

/* Header Düzeni */
.dt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

table.dataTable {
    border-collapse: collapse !important;
    width: 100% !important;
}

table.dataTable thead th,
table.dataTable tbody td {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem !important;
    vertical-align: middle !important;
}

table.dataTable thead th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

/* Helper Classes */
.table-responsive {
    overflow-x: auto;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-published {
    background: #10b981;
    color: white;
}

.status-draft {
    background: #6b7280;
    color: white;
}

.status-badge:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-unread {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-read {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.badge-replied {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}


/* Messages Page Specific Styles */
.messages-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.messages-table th,
.messages-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.messages-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.messages-table tr:hover {
    background: var(--bg-secondary);
}

.messages-table td {
    vertical-align: middle;
}

.messages-table tr.unread {
    background: rgba(59, 130, 246, 0.05);
}

.messages-table tr.unread td:first-child {
    position: relative;
}

.messages-table tr.unread td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.btn-info {
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-info:hover {
    background: #2563eb;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.message-sender {
    display: flex;
    flex-direction: column;
}

.message-sender strong {
    color: var(--text-primary);
}

.message-sender small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.message-preview {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .message-preview {
        max-width: 150px;
    }
}


/* Admin Generic Table Style */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: var(--bg-tertiary);
}


/* Dark Mode Modals */
.dark .modal-content {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark .modal-header,
.dark .modal-footer {
    border-color: var(--border-color);
}

.dark .modal-title {
    color: var(--text-primary);
}

.dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dark .form-control,
.dark .form-select {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark .form-control:focus,
.dark .form-select:focus {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--primary);
}


/* Dark Mode Placeholders */
.dark input::placeholder,
.dark textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.dark .form-text,
.dark small {
    color: rgba(255, 255, 255, 0.6) !important;
}


/* =====================================================
   GLightbox Dark Mode Stilleri
   ===================================================== */

/* GLightbox Genel Stiller */
.glightbox-container .gslide-description {
    background: var(--bg-secondary, #f8fafc) !important;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.glightbox-container .gslide-title {
    color: var(--text-primary, #0f172a) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    margin-bottom: 0.5rem !important;
}

.glightbox-container .gslide-desc {
    color: var(--text-secondary, #64748b) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

/* Dark Mode GLightbox Stiller */
.dark .glightbox-container .gslide-description {
    background: #1e293b !important;
    border-top-color: #334155 !important;
}

.dark .glightbox-container .gslide-title {
    color: #f1f5f9 !important;
}

.dark .glightbox-container .gslide-desc {
    color: #94a3b8 !important;
}


/* Dark Mode Map Filters */
.dark .leaflet-tile-pane {
    filter: grayscale(100%) invert(100%) brightness(85%) contrast(120%) hue-rotate(200deg);
}

.dark .leaflet-popup-content-wrapper {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dark .leaflet-popup-tip {
    background: var(--bg-secondary);
}

/* =====================================================
   Yukarı Git Butonu (Scroll to Top)
   ===================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary, #3b82f6);
    color: white !important;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-hover, #2563eb);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.scroll-to-top i {
    width: 22px;
    height: 22px;
}

/* Dark Mode Ayarları */
.dark .scroll-to-top {
    background: var(--primary, #3b82f6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dark .scroll-to-top:hover {
    background: var(--primary-hover, #2563eb);
}

/* =====================================================
   Toggle Switch (Aç/Kapat Anahtarı)
   ===================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider-before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch input:checked+.slider {
    background-color: var(--primary);
}

.switch input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

.switch input:checked+.slider+.slider-before,
.switch input:checked~.slider-before {
    transform: translateX(24px);
}

/* =====================================================
   Video Bloğu Stilleri
   ===================================================== */
.block-video {
    padding: 3rem 0;
}

.block-video-full {
    padding: 0 !important;
}

.video-container-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.block-video-full .video-container-wrapper {
    border-radius: 0;
    box-shadow: none;
}

.video-player-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-player-inner iframe,
.video-player-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    text-decoration: none !important;
}

.video-poster {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.video-lightbox-trigger:hover .video-poster {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.video-lightbox-trigger:hover .play-button {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--primary-hover, #2563eb);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
}

.play-button i {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5rem 3rem 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    z-index: 5;
}

.video-overlay-content.no-pointer {
    pointer-events: none;
}

.video-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white !important;
    letter-spacing: -0.02em;
}

.video-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.video-caption-outside {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-caption-outside.top {
    margin-bottom: 0.5rem;
    padding-top: 0;
}

.video-caption-outside.bottom {
    margin-top: 0.5rem;
    padding-bottom: 0;
}

.caption-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.caption-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 auto;
}

/* Karanlık Mod Uyumu */
.dark .video-caption-outside .caption-title {
    color: #f8fafc;
}

.dark .video-caption-outside .caption-description {
    color: #94a3b8;
}

@media (max-width: 991px) {
    .caption-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .block-video {
        padding: 2rem 0;
    }

    .video-overlay-content {
        padding: 2rem 1.25rem 1.25rem;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .video-description {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        width: 24px;
        height: 24px;
    }

    .caption-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .caption-description {
        font-size: 1rem;
    }
}