/* ============================================================
   ZIPZIRAAT DOCS — Main Stylesheet
   Zipziraat Eğitim Platformu stilleri
   ============================================================ */

@import url('./variables.css');

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-size: 16px
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    overflow-x: hidden
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast)
}

a:hover {
    color: var(--color-accent-primary-hover);
    text-decoration: underline
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

ul,
ol {
    list-style: none
}

/* ============================================================
   LAYOUT — Three-column
   ============================================================ */
.app-layout {
    display: flex;
    min-height: 100vh
}

/* ── Left Sidebar ── */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--color-bg-sidebar);
    border-right: 1px solid var(--color-border-secondary);
    display: flex;
    flex-direction: column;
    z-index: var(--z-fixed);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .15) transparent
}

.sidebar::-webkit-scrollbar {
    width: 4px
}

.sidebar::-webkit-scrollbar-track {
    background: transparent
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: var(--border-radius-full)
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .3)
}

/* ── Sidebar Header ── */
.sidebar-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.sidebar-header-title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary)
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-tertiary);
    font-size: 18px;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast)
}

.sidebar-collapse-btn:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary)
}

/* ── Sidebar Navigation ── */
.sidebar-nav {
    flex: 1;
    padding: 4px 8px 16px
}

/* Nav items */
.nav-item {
    margin-bottom: 4px
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--border-radius-md);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative
}

.nav-link:hover {
    color: var(--color-text-primary);
    background-color: #F5F5F5;
    text-decoration: none
}

.nav-link.active {
    color: var(--color-accent-primary);
    background-color: #E8F0FE;
    font-weight: var(--font-weight-medium)
}

/* Dot indicator — varsayılan: boş daire (outline) */
.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--color-text-tertiary);
    flex-shrink: 0;
    transition: all var(--transition-base)
}

.nav-link:hover .nav-dot {
    border-color: var(--color-text-secondary)
}

/* Aktif yazı: dolu daire (filled) */
.nav-link.active .nav-dot,
.nav-dot.active-dot {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary)
}

/* Accordion groups */
.nav-group {
    margin-bottom: 4px
}

.nav-group-header {
    display: flex;
    align-items: center;
    cursor: pointer
}

/* Chevron arrow — gizle */
.nav-chevron {
    display: none !important
}

.nav-group-header .nav-link {
    flex: 1
}

.nav-group-header .nav-dot {
    transition: all var(--transition-base)
}

/* Açık akordeon: ana başlık dotu — aktif yazı varsa dolu */
.nav-group.open>.nav-group-header .nav-link.active .nav-dot {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary)
}

/* Açık akordeon: ana başlık dotu — aktif değilse sadece accent border */
.nav-group.open>.nav-group-header .nav-link:not(.active) .nav-dot {
    background: transparent;
    border-color: var(--color-accent-primary)
}

/* Children with vertical line */
.nav-children {
    overflow: hidden;
    transition: max-height .3s ease;
    max-height: 0;
    margin-left: 20px;
    padding-left: 12px;
    border-left: 1px solid #E0E0E0
}

.nav-group.open>.nav-children {
    max-height: 1000px
}

.nav-children .nav-link {
    font-size: 13px;
    padding: 9px 12px
}

.nav-children .nav-item {
    margin-bottom: 4px
}

.nav-children .nav-dot {
    width: 6px;
    height: 6px
}

.nav-children .nav-link.active .nav-dot {
    width: 6px;
    height: 6px;
    border-width: 1.5px
}

/* ── Sidebar Footer ── */
.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border-secondary);
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: var(--color-bg-primary);
    z-index: 10;
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-md);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all var(--transition-fast)
}

.sidebar-footer-link:hover {
    color: var(--color-text-primary);
    background-color: #F5F5F5;
    text-decoration: none
}

.sidebar-footer-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0
}

.sidebar-bottom-link {
    font-size: 13px;
    color: var(--color-accent-primary);
    padding: 8px 20px;
    cursor: pointer;
    font-weight: var(--font-weight-medium)
}

.sidebar-bottom-link:hover {
    text-decoration: underline
}

/* Sidebar open button (shown when collapsed) */
.sidebar-open-btn {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    z-index: var(--z-fixed);
    background: transparent;
    border: none;
    border-right: 1px solid #E0E0E0;
    border-radius: 0;
    padding: 0 8px;
    cursor: pointer;
    font-size: 24px;
    color: var(--color-text-tertiary);
    transition: all var(--transition-fast);
    writing-mode: horizontal-tb;
    line-height: 1;
    width: 28px;
    align-items: center;
    justify-content: center
}

.sidebar-open-btn:hover {
    background: #F5F5F5;
    color: var(--color-accent-primary);
    border-right-color: var(--color-accent-primary)
}

.sidebar-collapsed .sidebar-open-btn,
.sidebar-open-btn.visible {
    display: flex
}

/* ── Main Content Area ── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding-right: var(--toc-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content-wrapper {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 24px 48px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content-body {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.content-body iframe,
.content-body video,
.content-body embed {
    max-width: 100%;
    height: auto;
}

.content-body table {
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--space-5);
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Top Header Bar ── */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E6E6E6;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--header-height)
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 8px
}

.top-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 24px;
    cursor: pointer;
    text-decoration: none
}

.top-header-logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    flex-shrink: 0
}

.top-header-logo-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain
}

.top-header-logo-text {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: #1A1A1A !important;
    text-decoration: none
}

.top-header-logo:hover .top-header-logo-text {
    text-decoration: none;
    color: #1A1A1A !important
}

/* Header tabs */
.header-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%
}

.header-tab {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap
}

.header-tab:hover {
    color: var(--color-text-primary);
    text-decoration: none
}

.header-tab.active {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    border-bottom-color: var(--color-text-primary)
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 12px
}

.header-tag {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: 6px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-tag-accent {
    background: var(--color-accent-primary);
    color: #FFFFFF;
    border: 1px solid var(--color-accent-primary)
}

.header-tag-accent:hover {
    background: var(--color-accent-primary-hover);
    border-color: var(--color-accent-primary-hover);
    color: #FFFFFF;
    text-decoration: none
}

.header-tag-outline {
    background: transparent;
    border: 1px solid var(--color-accent-primary);
    color: var(--color-accent-primary)
}

.header-tag-outline:hover {
    background: rgba(0, 91, 255, .06)
}

.header-tag-filled {
    background: #1A1A2E;
    color: #FFFFFF;
    border: 1px solid #1A1A2E
}

.header-tag-filled:hover {
    background: #FFFFFF;
    color: #1A1A2E;
    border-color: #1A1A2E
}

/* ── Mobile ── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--color-text-primary)
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(4px)
}

.mobile-overlay.active {
    opacity: 1
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--color-text-tertiary)
}

.breadcrumb a {
    color: var(--color-text-tertiary);
    text-decoration: none
}

.breadcrumb a:hover {
    color: var(--color-accent-primary);
    text-decoration: none
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0
}

.breadcrumb-sep {
    color: var(--color-border-primary)
}

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-title-section {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.page-title-section h1 {
    font-size: 32px;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-text-primary);
    line-height: var(--line-height-tight);
    margin-bottom: 0;
    flex: 1
}

/* ============================================================
   HERO SECTION (kept for backward compat)
   ============================================================ */
.hero-section {
    background: var(--color-bg-hero-gradient);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-8);
    padding: var(--space-10) var(--space-8);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 91, 255, 0.2) 0%, transparent 70%);
    pointer-events: none
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    backdrop-filter: blur(8px)
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    color: var(--color-text-hero);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1
}

.hero-subtitle {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.65);
    line-height: var(--line-height-normal);
    max-width: 540px;
    position: relative;
    z-index: 1
}

/* ============================================================
   CONTENT BODY
   ============================================================ */
.content-body h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-text-primary);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    margin-top: var(--space-2)
}

.content-body hr {
    border: 0;
    height: 1px;
    background: var(--color-border-secondary);
    margin: var(--space-4) 0;
}

.content-body h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: var(--line-height-snug);
    margin-top: var(--space-5);
    margin-bottom: var(--space-3);
    scroll-margin-top: calc(var(--header-height) + var(--space-4))
}

.content-body h2:first-of-type {
    margin-top: var(--space-2)
}

.content-body h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-top: var(--space-5);
    margin-bottom: var(--space-2);
    scroll-margin-top: calc(var(--header-height) + var(--space-4))
}

.content-body h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2)
}

.content-body p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-3)
}

.content-body ul,
.content-body ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-6)
}

.content-body ul {
    list-style: disc
}

.content-body ol {
    list-style: decimal
}

.content-body li {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2)
}

.content-body strong {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary)
}

.content-body blockquote {
    border-left: 3px solid var(--color-accent-primary);
    padding: var(--space-4) var(--space-5);
    margin: var(--space-6) 0;
    background: var(--color-bg-secondary);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0
}

.content-body blockquote p {
    margin-bottom: 0;
    color: var(--color-text-secondary);
    font-style: italic
}

/* TOC list (blue dots) */
.content-toc-list {
    margin: 16px 0 32px;
    padding: 0
}

.content-toc-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    list-style: none;
    padding: 0
}

.content-toc-list li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent-primary);
    flex-shrink: 0;
    margin-top: 6px
}

.content-toc-list li a {
    color: var(--color-accent-primary);
    font-size: 15px;
    text-decoration: none
}

.content-toc-list li a:hover {
    text-decoration: underline
}

/* Info box */
.info-box {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--color-info-bg);
    border-left: 3px solid var(--color-info-border);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    margin: var(--space-6) 0
}

.info-box-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-info-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px
}

.info-box-icon svg {
    width: 12px;
    height: 12px;
    fill: white
}

.info-box-content p {
    color: var(--color-info-text);
    margin-bottom: 0;
    font-size: var(--font-size-sm)
}

.content-banner {
    width: 100%;
    height: 250px;
    margin-bottom: var(--space-6);
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center
}

.content-body .content-banner img {
    max-width: 100%;
    height: auto;
    display: block
}

.content-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    margin: var(--space-6) 0;
    overflow: hidden
}

.content-image img {
    width: 100%;
    height: auto;
    object-fit: cover
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: var(--space-4) 0;
    display: block
}

.content-body p img {
    margin: var(--space-3) 0
}



/* ============================================================
   TABLE OF CONTENTS (Right sidebar)
   ============================================================ */
.toc-sidebar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: var(--toc-width);
    padding: var(--space-10) var(--space-5);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .12) transparent
}

.toc-sidebar::-webkit-scrollbar {
    width: 3px
}

.toc-sidebar::-webkit-scrollbar-track {
    background: transparent
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .12);
    border-radius: var(--border-radius-full)
}

.toc-title {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    margin-bottom: var(--space-4)
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1)
}

.toc-link {
    display: block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
    line-height: var(--line-height-snug)
}

.toc-link:hover {
    color: var(--color-text-secondary);
    text-decoration: none
}

.toc-link.active {
    color: var(--color-accent-primary);
    border-left-color: var(--color-accent-primary);
    font-weight: var(--font-weight-medium)
}

/* ============================================================
   NAVIGATION BUTTONS (Prev/Next)
   ============================================================ */
.page-navigation {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-secondary)
}

.page-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all var(--transition-base)
}

.page-nav-link:hover {
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transform: translateY(-1px)
}

.page-nav-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide)
}

.page-nav-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2)
}

.page-nav-link.prev {
    text-align: left
}

.page-nav-link.next {
    text-align: right;
    align-items: flex-end
}

.page-nav-link.next .page-nav-title {
    flex-direction: row-reverse
}

.page-nav-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-text-tertiary);
    transition: color var(--transition-fast)
}

.page-nav-link:hover .page-nav-arrow {
    color: var(--color-accent-primary)
}

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer {
    padding: var(--space-4) var(--space-8);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-top: 1px solid var(--color-border-secondary);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    width: 100%;
    position: sticky;
    bottom: 0;
    background: var(--color-bg-primary);
    z-index: 90;
    margin-top: auto;
    gap: 16px;
}

.footer-left {
    justify-self: start;
    white-space: nowrap;
}

.footer-copyright {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    color: var(--color-text-tertiary);
    font-size: 11px;
}

.footer-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast)
}

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

/* ── Social Media Icons ── */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #666;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    text-decoration: none
}

.social-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
    text-decoration: none
}

.social-icon svg {
    width: 18px;
    height: 18px
}

.social-icon.si-instagram:hover {
    color: #E4405F
}

.social-icon.si-x:hover {
    color: #000000
}

.social-icon.si-facebook:hover {
    color: #1877F2
}

.social-icon.si-linkedin:hover {
    color: #0A66C2
}

.social-icon.si-youtube:hover {
    color: #FF0000
}

.social-icon.si-tiktok:hover {
    color: #000000
}

/* ============================================================
   CODE BLOCKS
   ============================================================ */
.content-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-bg-secondary);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    color: var(--color-accent-primary)
}

.code-block {
    background: #1E1E2E;
    border-radius: var(--border-radius-lg);
    padding: var(--space-5);
    margin: var(--space-6) 0;
    overflow-x: auto
}

.code-block code {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    color: #CDD6F4;
    background: none;
    padding: 0;
    border-radius: 0
}

/* ============================================================
   DATA LIST
   ============================================================ */
.data-list {
    margin: var(--space-6) 0
}

.data-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-secondary)
}

.data-list-item:last-child {
    border-bottom: none
}

.data-label {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary)
}

.data-value {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    font-family: var(--font-mono)
}

/* Share button */
.share-btn {
    background: none;
    border: 1px solid var(--color-border-primary);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: all .2s
}

.share-btn:hover {
    border-color: var(--color-accent-primary);
    color: var(--color-accent-primary)
}

/* ============================================================
   MAIN HEADING ADDITIONS
   ============================================================ */
.minimal-updates-wrapper {
    margin: 0 0 var(--space-8) 0;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-secondary);
}

.minimal-updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.minimal-updates-heading {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.minimal-updates-controls {
    display: flex;
    gap: 8px;
}

.min-btn {
    background: #fff;
    border: 1px solid var(--color-border-primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.min-btn:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border-color: var(--color-border-secondary);
}

.minimal-updates-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px 14px 4px;
    /* give room for shadow */
    scrollbar-width: none;
}

.minimal-updates-track::-webkit-scrollbar {
    display: none;
}

.minimal-update-card {
    flex: 0 0 280px;
    background: #FFFFFF;
    border: 1px solid var(--color-border-secondary);
    border-radius: var(--border-radius-md);
    padding: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.minimal-update-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--color-border-primary);
}

.minimal-update-badge {
    background: #E8F0FE;
    color: var(--color-accent-primary);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
}

.minimal-update-date {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.minimal-update-title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subheading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: var(--space-2) 0 var(--space-8) 0;
}

.subheading-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F4F8FF;
    /* Light blue */
    border: 1px solid #D6E4FF;
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    text-decoration: none;
    transition: all var(--transition-fast);
    color: var(--color-accent-primary);
}

.subheading-card:hover {
    text-decoration: none;
    background: #E8F0FE;
    border-color: #ABC4FF;
    transform: translateX(4px);
    color: var(--color-accent-primary-hover);
}

.subheading-section-header {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-secondary);
}

.subheading-card-title {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-md);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width:1920px) {
    :root {
        --sidebar-width: 280px;
        --toc-width: 240px
    }
}

@media (max-width:1439px) {
    :root {
        --toc-width: 200px
    }
}

@media (max-width:1023px) {
    .toc-sidebar {
        display: none
    }

    .main-content {
        margin-right: 0;
        padding-right: 0 !important;
    }
}

.mobile-sidebar-buttons {
    display: none;
}

@media (max-width:768px) {

    .breadcrumb,
    .toc-sidebar,
    #sidebarOpenBtn,
    .sidebar-collapse-btn,
    .sidebar-header-title {
        display: none !important;
    }

    .top-header-right .header-tag-outline,
    .top-header-right .header-tag-filled {
        display: none !important;
    }

    .mobile-sidebar-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 20px 0 20px;
    }

    .mobile-sidebar-buttons .header-tag {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }

    .sidebar {
        transform: translateY(-100%);
        transition: transform var(--transition-base), opacity var(--transition-base);
        top: var(--header-height) !important;
        left: 0;
        bottom: auto;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        z-index: 50;
        background: #fff;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--color-border-primary);
        opacity: 0;
        pointer-events: none;
    }

    .sidebar.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        border-left: none;
    }

    .top-header {
        padding: 0 16px !important;
    }

    .top-header-left {
        gap: 4px !important;
    }

    .top-header-logo {
        display: flex;
        margin-right: 4px !important;
    }

    .header-tabs {
        display: none
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px !important;
        margin-left: 2px !important;
    }

    .mobile-overlay {
        display: block;
        pointer-events: none;
        top: var(--header-height) !important;
    }

    .mobile-overlay.active {
        pointer-events: auto
    }

    /* Mobilde menü tablarını sidebar içinde göster */
    .mobile-menu-tabs {
        display: flex;
        flex-direction: column;
        padding: 8px 12px;
        border-bottom: 1px solid var(--color-border-secondary);
        gap: 2px
    }

    .mobile-menu-tabs a {
        display: block;
        padding: 10px 12px;
        border-radius: var(--border-radius-md);
        color: var(--color-text-secondary);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        text-decoration: none;
        transition: all var(--transition-fast)
    }

    .mobile-menu-tabs a:hover,
    .mobile-menu-tabs a.active {
        background: var(--color-bg-secondary);
        color: var(--color-accent-primary);
        text-decoration: none
    }

    .top-header-right {
        gap: 6px
    }

    .top-header-right .header-tag {
        font-size: 10px;
        padding: 4px 10px
    }

    .top-header-right .header-tag-accent {
        font-size: 13px !important;
        padding: 8px 14px !important;
        border-radius: 8px !important;
    }

    .content-wrapper {
        padding: 12px 30px !important;
    }

    .hero-section {
        padding: 20px 16px !important;
        margin-bottom: var(--space-8);
    }

    .featured-grid, .content-grid, .data-list {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .hero-title {
        font-size: var(--font-size-4xl)
    }

    .content-body h1 {
        font-size: var(--font-size-3xl)
    }

    .content-body h2 {
        font-size: var(--font-size-xl)
    }

    .page-navigation {
        flex-direction: column
    }

    .page-footer {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
        text-align: center;
    }

    .footer-left {
        order: 2;
        width: 100%;
        text-align: center;
        white-space: normal;
    }

    .footer-copyright {
        order: 3;
        width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.5;
    }

    .footer-right {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
        margin-bottom: 0;
    }

    .social-icons .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icons .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width:480px) {
    .hero-title {
        font-size: var(--font-size-3xl)
    }

    .hero-section {
        padding: var(--space-6) var(--space-5);
        min-height: 200px
    }

    .content-wrapper {
        padding: var(--space-4) 30px
    }

    .content-body h1 {
        font-size: var(--font-size-2xl)
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.animate-fade-in-up {
    animation: fadeInUp .5s ease forwards
}

.animate-fade-in {
    animation: fadeIn .4s ease forwards
}

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

    .sidebar,
    .toc-sidebar,
    .top-header,
    .page-navigation,
    .mobile-menu-btn {
        display: none !important
    }

    .main-content {
        margin: 0 !important
    }

    .content-wrapper {
        max-width: 100%;
        padding: 0
    }
}

/* ============================================================
   HOME SEARCH DASHBOARD
   ============================================================ */
.home-dashboard {
    display: flex;
    flex-direction: row;
    gap: var(--space-6);
    margin-top: var(--space-4);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 10;
}

@media (max-width: 1024px) {
    .home-dashboard {
        flex-direction: column;
    }
}

/* Sol Alan: Başlık ve Arama */
.home-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.home-hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 50px !important;
}

/* Arama Çubuğu */
.home-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.home-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 1.1rem;
    border: 1px solid var(--color-border-primary);
    border-radius: 10px;
    background-color: #fff;
    transition: all var(--transition-base);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.home-search-input:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.home-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    pointer-events: none;
}

/* Arama Sonuçları Dropdown */
.home-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.home-search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-secondary);
    text-decoration: none !important;
    color: var(--color-text-primary);
    transition: background-color var(--transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--color-bg-secondary);
    text-decoration: none !important;
}

.search-result-type {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    margin-right: 12px;
    white-space: nowrap;
}

.search-result-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sağ Alan: Slider Banner */
.home-slider {
    width: 350px;
    background: #e6f3fc;
    border-radius: 24px;
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .home-slider {
        width: 100%;
    }
}

.home-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.home-slider-badge {
    background-color: #fff;
    color: var(--color-accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.home-slider-controls {
    display: flex;
    gap: 8px;
}

.home-slider-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.home-slider-btn:hover {
    background: var(--color-accent-primary);
    color: #fff;
}

.home-slider-content {
    flex: 1;
    position: relative;
    min-height: 150px;
}

.home-slider-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(100%);
    pointer-events: none;
}

.home-slider-card.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.home-slider-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
}

.home-slider-card-date {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 12px;
}

.home-slider-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent-primary);
    padding: 6px 16px;
    border-radius: var(--radius-md);
    text-decoration: none !important;
}

.home-slider-card-link:hover {
    background: var(--color-accent-primary-hover);
}

/* ============================================================
   UPDATES IMAGE SLIDER WIDGET
   ============================================================ */
.updates-section {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
    position: relative;
    z-index: 5;
}

.updates-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-5);
}

.updates-section-title-wrapper {
    display: flex;
    flex-direction: column;
}

.updates-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.updates-section-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.updates-slider-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.updates-slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.updates-slider-btn:hover {
    background: #e2e8f0;
}

.updates-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    padding-bottom: 16px;
    margin: 0 calc(var(--space-6) * -1);
    padding-left: var(--space-6);
    padding-right: var(--space-6);
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.updates-slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.updates-slider-container:active {
    cursor: grabbing;
}

.updates-slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
    transition: transform 0.3s ease-out;
}

.update-image-card {
    position: relative;
    width: 280px;
    height: 323px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    user-select: none;
    transition: transform var(--transition-fast);
    background-color: #f4fafe !important;
}

.update-image-card:hover {
    transform: translateY(-4px);
}

.update-image-card-img-wrapper {
    width: 100%;
    height: 40%;
    overflow: hidden;
    flex-shrink: 0;
}

.update-image-card-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.update-image-card-content {
    position: relative;
    z-index: 3;
    padding: 24px 24px 14px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    text-align: left;
}

.update-image-card-title {
    color: #000000 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    text-align: left;
}

.update-image-card-excerpt {
    color: #555 !important;
    font-size: 0.8rem !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    text-align: left;
}

.update-image-card-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.update-image-card-icon {
    color: #000000 !important;
    opacity: 0.8;
}

.update-image-card:hover .update-image-card-icon {
    opacity: 1;
    transform: translateX(4px);
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .update-image-card {
        width: 240px;
        height: 320px;
    }
}

/* ============================================================
   DYNAMIC POPUP FORM
   ============================================================ */
.forum-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forum-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.forum-popup-container {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.forum-popup-overlay.active .forum-popup-container {
    transform: translateY(0);
}

.forum-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 10;
    color: var(--color-text-primary);
    transition: all 0.2s;
}

.forum-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.forum-popup-banner {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
}

.forum-popup-body {
    padding: 32px;
    flex: 1;
}

.forum-popup-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.2;
}

.forum-popup-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.forum-popup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forum-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forum-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.forum-field-input,
.forum-field-select,
.forum-field-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.forum-field-input:focus,
.forum-field-select:focus,
.forum-field-textarea:focus {
    border-color: var(--color-accent-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.1);
}

.forum-field-textarea {
    min-height: 100px;
    resize: vertical;
}

.forum-field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.forum-field-checkbox input {
    margin-top: 4px;
    cursor: pointer;
}

.forum-field-checkbox span {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.forum-field-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forum-field-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.forum-field-text-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--color-accent-primary);
}

.forum-popup-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--color-accent-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.forum-popup-submit:hover {
    background: var(--color-accent-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.2);
}

/* Custom Scrollbar for Popup */
.forum-popup-container::-webkit-scrollbar {
    width: 6px;
}

.forum-popup-container::-webkit-scrollbar-track {
    background: transparent;
}

.forum-popup-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.forum-popup-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}
/* ============================================================
   MOBILE SPECIFIC OPTIMIZATIONS (Görev 1, 2, 4, 5, 6, 7, 8)
   ============================================================ */
@media (max-width: 1024px) {
    /* Görev 1: Footer Düzenlemesi */
    .page-footer {
        position: static !important;
        padding: 24px 0 !important;
        width: 100%;
    }

    /* Arama Kutusu Yazı Boyutu (Mobil) */
    .home-search-input {
        font-size: 0.9375rem !important;
    }

    /* Görev 2: Yeni Slider */
    .home-slider {
        width: 100% !important;
        min-height: auto !important;
        padding: 12px 16px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }
    .home-slider-header {
        margin-bottom: 0 !important;
    }
    .home-slider-controls {
        display: none !important;
    }
    .home-slider-content {
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
    }
    .home-slider-card {
        padding: 0 !important;
        background: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        position: relative !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        display: none !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        cursor: pointer !important;
    }
    .home-slider-card.active {
        display: flex !important;
    }
    .home-slider-card-title {
        font-size: 14px !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-line-clamp: 1 !important;
        line-height: normal !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .home-slider-card-date,
    .home-slider-card-link {
        display: none !important;
    }

    /* Görev 4: Güncel Akış Slider */
    .updates-slider-controls {
        display: none !important;
    }
    .updates-slider-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 12px !important;
    }
    .updates-slider-container::-webkit-scrollbar {
        display: none !important;
    }
    .update-image-card {
        width: 240px !important;
        height: 80px !important;
        justify-content: center !important;
    }
    .update-image-card-img-wrapper {
        display: none !important;
    }
    .update-image-card-content {
        flex-direction: row !important;
        align-items: center !important;
        height: 100% !important;
        padding: 12px 16px !important;
    }
    .card-text-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        margin-right: 8px !important;
    }
    .update-image-card-title {
        -webkit-line-clamp: 2 !important;
        font-size: 14px !important;
        margin-bottom: 0 !important;
    }
    .update-image-card-excerpt, .web-only-icon {
        display: none !important;
    }

    /* Görev 5: Mobil Menüde — sadece sayfa başlıkları (header-tab) görünecek */
    .sidebar .nav-group,
    .sidebar .nav-item {
        display: none !important;
    }

    /* Görev 6 & 7: Mobil Anabaşlık Widget CSS'i */
    .mobile-post-widget-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        width: 100%;
    }
    .mobile-post-widget {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start; /* Changed from center to start */
        background: #f8f9fb; /* Lighter background matching screenshot */
        border: none;
        border-radius: 16px;
        padding: 20px;
        text-decoration: none !important;
        color: var(--color-text-primary) !important;
        box-shadow: none; /* No shadow in screenshot */
        position: relative;
        overflow: hidden;
        min-height: 140px; /* Taller */
    }
    .mobile-post-widget-content {
        flex: 1;
        z-index: 2;
        padding-right: 80px; /* Space for the image */
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .mobile-post-widget-tag {
        font-size: 10px;
        color: var(--color-accent-primary);
        background: var(--color-bg-secondary);
        padding: 2px 8px;
        border-radius: 12px;
        display: inline-block;
        margin-bottom: 6px;
        font-weight: 600;
    }
    .mobile-post-widget-title {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
        margin: 0;
    }
    .mobile-post-widget-desc {
        font-size: 13px;
        color: var(--color-text-secondary);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }
    .mobile-post-widget-img-wrapper {
        position: absolute;
        bottom: -15px; /* Half out */
        right: 15px; /* Offset from right */
        width: 100px;
        height: 100px;
        z-index: 1;
    }
    .mobile-post-widget-img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Don't crop the icon */
        opacity: 0.9;
    }
    .mobile-post-widget-img.watermark {
        opacity: 0.1;
        filter: grayscale(100%);
    }

    /* Mobil Widget Listesi */
    .mobile-widget-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        width: 100%;
    }

    /* Alt Sayfa Başlığı (Mobil) */
    .mobile-subpage-header {
        margin-bottom: 8px;
    }
    .mobile-subpage-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--color-text-primary);
    }

    /* Yazı Detay Başlığı ve Paylaş Butonu (Mobil Düzenlemesi) */
    .page-title-section {
        flex-direction: column-reverse;
        align-items: flex-end; /* Butonu sağa hizala */
        gap: 30px; /* Butonlar ile başlık arasındaki boşluk */
        margin-top: 0px; /* Ekranın üstüne çok yapışmaması için - tamamen kaldırıldı */
    }
    .page-title-section h1 {
        width: 100%;
        text-align: left;
    }
    .mobile-title-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 16px; /* Ev ve Paylaş ikonu arası boşluk */
    }
}

/* Masaüstünde mobil widgetler ve ikonları gizle */
@media (min-width: 1025px) {
    .mobile-widget-list,
    .mobile-subpage-header,
    .mobile-back-btn {
        display: none !important;
    }
}
