/* ===== KIRMIZI TEMA (tadında, abartısız) ===== */
:root {
    --theme-red: #b91c1c;
    --theme-red-hover: #991b1b;
    --theme-red-light: #fef2f2;
    --theme-red-border: #dc2626;
}

/* Tema: butonlar */
.btn-danger, .btn-outline-danger:hover, .bg-danger { background-color: var(--theme-red) !important; border-color: var(--theme-red) !important; }
.btn-danger:hover, .bg-danger:hover { background-color: var(--theme-red-hover) !important; border-color: var(--theme-red-hover) !important; }
.btn-outline-danger { color: var(--theme-red); border-color: var(--theme-red); }
.text-danger { color: var(--theme-red) !important; }
.border-danger { border-color: var(--theme-red) !important; }

/* Tema: link ve nav */
.navbar .nav-link { color: #222 !important; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--theme-red) !important; }
a.text-danger:hover { color: var(--theme-red-hover) !important; }

/* Tema: logo / header çizgisi */
.logo-bar.border-bottom, .logo-area { border-bottom-color: var(--theme-red) !important; }

/* Tema: footer */
footer.bg-dark { border-top: 3px solid var(--theme-red); }
footer a:hover { color: var(--theme-red) !important; }

/* Tema: kart başlıkları, badge, hr */
.badge.bg-danger { background-color: var(--theme-red) !important; }
.card-header.bg-danger { background-color: var(--theme-red) !important; }
hr.theme-red { background: var(--theme-red); height: 3px; border: none; }
.en-cok-okunan-item { border-left: 3px solid var(--theme-red) !important; }
.pagination .page-link { color: var(--theme-red); }
.pagination .page-item.active .page-link { background-color: var(--theme-red); border-color: var(--theme-red); }
.pagination .page-link:hover { color: var(--theme-red-hover); }

/* Basit stil eklemeleri */
.search-highlight { background: #fff9e6; }
.form-control-sm { min-width: 150px; }

/* Responsive Container */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Responsive Form Elements */
.form-control, .form-select, .btn {
    max-width: 100%;
}

@media (max-width: 767px) {
    .form-select.d-none.d-md-block { display: none !important; }
    .form-control-sm { min-width: auto; max-width: 100%; }
    .navbar-form { flex-direction: column; gap: 10px !important; }
}

/* Mega menu columns */
.mega-menu-columns { min-width: 720px; }
.mega-menu-columns .row { gap: 0.5rem; }
.mega-menu-columns h6 { color: var(--theme-red, #b91c1c); }
.mega-menu-columns a { color: inherit; }
.mega-menu-columns img { border: 1px solid #eee; }
.dropdown-menu .text-danger { color: var(--theme-red, #b91c1c) !important; }

@media (max-width: 991px) {
    .mega-menu-columns { min-width: auto; max-width: 100vw; }
}

/* Rich mega menu styles */
.rich-mega {
    min-width: 540px;
    max-width: 100vw;
    background: linear-gradient(180deg, #ffffff, #fffaf8);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.rich-mega .mega-featured img { border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.rich-mega .mega-list a:hover { background: var(--theme-red-light, #fef2f2); border-radius: 6px; }
.rich-mega { border-top: 2px solid var(--theme-red, #b91c1c); }
.category-icon { /* removed - kept empty for backward compatibility */ }
.rich-mega .mega-list .small { color: #222; }

@media (max-width: 768px) {
    .rich-mega {
        min-width: calc(100vw - 40px);
        position: static;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Make dropdowns feel layered */
.navbar .dropdown-menu { border: none; }

/* Desktop: hover ile dropdown açma ve alttan kayma animasyonu */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        margin-top: 6px;
    }

    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        transform: translateY(-10px);
        transition: transform .18s ease, opacity .18s ease;
        pointer-events: none;
        z-index: 1050;
    }

    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        pointer-events: auto;
    }
}

/* Logo / header styles */
.site-logo { height: 56px; width: auto; }
.site-title { font-family: 'Arial Black', sans-serif; color: var(--theme-red, #b91c1c); letter-spacing: -1px; }

@media (max-width: 991px) {
    .site-logo { height: 44px; }
    .logo-bar .container {
        display: block !important;
        text-align: center !important;
    }
    .logo-bar .logo-link {
        display: inline-block !important;
        margin: 0 auto;
    }
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table {
        font-size: 13px;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
}

/* Responsive Navbar */
.navbar-brand { padding: 0; }

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem !important;
        font-size: 14px;
    }
}

/* Card Responsive */
.card {
    max-width: 100%;
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content Padding */
.container {
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .container-fluid { padding: 0; }
}

/* Sticky Sidebar on mobile */
@media (max-width: 768px) {
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* News Card Styles */
.news-card {
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

/* Dropdown responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: auto;
        max-width: calc(100vw - 20px);
    }
}

/* Frontend genel mobil uyumluluk katmanı */
.site-wrapper {
    width: 100%;
    max-width: 100%;
}
.site-main {
    width: 100%;
    min-width: 0;
}
.site-main .container,
.site-main .container-fluid {
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .site-wrapper {
        display: block;
    }
    .site-side {
        display: none !important;
    }
    .site-main {
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }
    .main-navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .dropdown-menu.rich-mega {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    .main-navbar .navbar-collapse {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    .main-navbar .navbar-nav .nav-link {
        padding: 10px 8px !important;
        font-size: 13px;
    }
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    .footer-advanced .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .footer-contact a,
    .footer-contact p {
        word-break: break-word;
    }
    iframe,
    video {
        max-width: 100%;
    }
}

/* Frontend polish helpers */
:root {
    --ui-soft-border: rgba(15, 23, 42, 0.12);
    --ui-soft-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    --ui-soft-shadow-hover: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.site-max-1100 {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.site-max-1000 {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    z-index: 1;
}

.min-w-0 { min-width: 0 !important; }
.lh-tight-12 { line-height: 1.2 !important; }
.fs-10 { font-size: 10px !important; }
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }

.editor-media-video {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    border-radius: 8px;
}

.editor-media-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}

.editor-media-pdf-wrap {
    margin: 1rem 0;
}

.editor-media-pdf-frame {
    width: 100%;
    min-height: 540px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.header-search-popover {
    width: 250px;
    z-index: 1000;
}

.nav-banners-wrap { position: relative; }

.site-logo-img {
    max-height: 70px;
    width: auto;
    display: block;
}

.site-title-mark {
    font-family: 'Oswald', sans-serif;
    color: #14233a;
    margin: 0;
    font-size: 24px;
    line-height: 1;
}

body.theme-dark .site-title-mark {
    color: var(--dark-text, #e5e7eb);
}

.mega-thumb-sm {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.dynamic-cat { color: var(--cat-color, currentColor) !important; }
.dynamic-border { border-bottom-color: var(--cat-color, currentColor) !important; }
.dynamic-bg {
    background: var(--cat-color, currentColor) !important;
    color: #fff !important;
}

.pop-quiz-block {
    display: none;
    border: 1px solid var(--card-border-soft, var(--ui-soft-border));
    border-radius: 12px;
    box-shadow: var(--card-shadow, var(--ui-soft-shadow));
}

.pop-quiz-card {
    border: 1px solid var(--card-border-soft, var(--ui-soft-border));
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pop-quiz-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ui-soft-shadow-hover);
}

.pop-quiz-img {
    height: 110px;
    object-fit: cover;
}

.pop-quiz-title {
    line-height: 1.3;
    font-size: 14px;
}

.pop-quiz-desc { font-size: 12px; }

.fb-mac-status {
    min-width: 220px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    border-right: 0;
}

.fb-mac-status--sm { min-width: 200px; }
.fb-mac-status--md { min-width: 300px; }
.fb-mac-status--lg { min-width: 320px; }

.quiz-page-wrap {
    max-width: 1000px;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    z-index: 1;
}

.quiz-empty-icon { font-size: 3rem; }
.quiz-type-badge--kisilik { background: #7f7fd5; color: #fff; }
.quiz-type-badge--bilgi { background: #ff416c; color: #fff; }
.quiz-cover-top { width: 260px; max-width: 100%; }
.quiz-progress-bar { width: 0%; }
.score-bar-fill { width: var(--score-width, 0%); }

.kategori-shell { max-width: 1100px; }
.kategori-hero { background: var(--hero-color, #2563eb); }

.footer-brand-title { letter-spacing: -0.5px; }
.footer-brand-desc { max-width: 420px; }
.footer-newsletter-alert { font-size: 12px; }

.search-result-body { min-width: 0; }
.search-result-summary { line-height: 1.5; }

.contact-shell { max-width: 1100px; }

.detail-side-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
}

.detail-side-meta { font-size: 10px; }

.gonderi-id-col { width: 50px; }
.gonderi-thumb {
    width: 50px;
    height: 35px;
    object-fit: cover;
}
.gonderi-title { font-size: 14px; }
.gonderi-slug { font-size: 11px; }
.gonderi-time { font-size: 10px; }

@media (max-width: 767.98px) {
    .header-search-popover {
        width: min(280px, calc(100vw - 24px));
    }
    .pop-quiz-img { height: 130px; }
    .site-max-1000,
    .site-max-1100,
    .quiz-page-wrap,
    .kategori-shell,
    .contact-shell {
        max-width: 100% !important;
    }
}

/* Frontend polish pass 2 */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: rgba(148, 163, 184, 0.45);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(185, 28, 28, 0.45);
    box-shadow: 0 0 0 .2rem rgba(185, 28, 28, 0.12);
}

.card {
    border-radius: 14px;
    border-color: var(--ui-soft-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

a {
    transition: color .2s ease;
}

:focus-visible {
    outline: 2px solid rgba(185, 28, 28, 0.35);
    outline-offset: 2px;
}
