/* ===================================
   SOYLUYORUM - Premium Design
   Light/Dark Theme Support
   =================================== */

:root {
    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-input: #ffffff;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Accent - Warm Coral/Orange */
    --accent-primary: #f97316;
    --accent-hover: #ea580c;
    --accent-light: #fff7ed;
    --accent-glow: rgba(249, 115, 22, 0.1);
    
    /* Border */
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Category Colors */
    --cat-is: #f97316;
    --cat-ask: #ef4444;
    --cat-aile: #a855f7;
    --cat-okul: #3b82f6;
    --cat-saglik: #22c55e;
    --cat-diger: #64748b;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0c0c0f;
    --bg-secondary: #13131a;
    --bg-card: #1a1a24;
    --bg-elevated: #22222e;
    --bg-input: #1a1a24;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-light: rgba(249, 115, 22, 0.15);
    
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* ===================================
   BASE RESET
   =================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ===================================
   HEADER & NAVBAR
   =================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar {
    background: transparent;
    padding: 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    flex-shrink: 0;
}

.navbar-brand .brand-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

/* Search Form */
.navbar-search {
    flex: 1;
    max-width: 320px;
    display: flex;
    align-items: center;
}

.navbar-search .search-wrapper {
    position: relative;
    width: 100%;
}

.navbar-search .search-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.navbar-search .search-input::placeholder {
    color: var(--text-muted);
}

.navbar-search .search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.navbar-search .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.nav-btn i {
    font-size: 1.25rem;
}

.nav-btn-text {
    width: auto;
    padding: 0 1rem;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Submit Button */
.nav-btn-submit {
    background: var(--accent-primary);
    color: #fff !important;
    font-weight: 600;
}

.nav-btn-submit:hover {
    background: var(--accent-hover);
    color: #fff !important;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
}

.theme-toggle-mobile {
    flex-shrink: 0;
}

/* Notification Badge */
.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--radius-full);
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* User Avatar in Nav */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.nav-user:hover {
    background: var(--bg-elevated);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Auth Buttons */
.nav-btn-login {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.nav-btn-register {
    background: var(--accent-primary);
    color: #fff !important;
    border-radius: var(--radius-full);
    padding: 0 1.25rem !important;
}

.nav-btn-register:hover {
    background: var(--accent-hover);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    padding: 0;
    cursor: pointer;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-toggle i {
    font-size: 1.35rem;
}

/* ===================================
   CATEGORY BAR
   =================================== */

.category-bar {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: relative;
}

.category-bar > .container {
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.category-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.125rem 0;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.45rem 0.875rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.category-chip i {
    font-size: 0.9rem;
    color: var(--cat-color, var(--accent-primary));
}

.category-chip:hover {
    border-color: var(--cat-color, var(--accent-primary));
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.category-chip.active {
    background: var(--cat-color, var(--accent-primary));
    border-color: var(--cat-color, var(--accent-primary));
    color: #fff;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 18%, transparent);
}

.category-chip.active i {
    color: #fff;
}

.cat-count {
    font-style: normal;
    font-size: 0.7rem;
    background: rgba(0,0,0,0.08);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.category-chip.active .cat-count {
    background: rgba(255,255,255,0.25);
}

.cat-scroll-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.cat-scroll-left { left: 0.25rem; }
.cat-scroll-right { right: 0.25rem; }

/* ===================================
   MOBILE KEŞFET PANELİ
   =================================== */

.explore-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: var(--bg-primary);
    border-radius: 20px 20px 0 0;
    padding: 0.75rem 1.25rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
    max-height: 78vh;
    overflow-y: auto;
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -12px 40px rgba(0,0,0,0.15);
}

.explore-sheet.active {
    transform: translateY(0);
}

.explore-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    margin: 0 auto 1rem;
}

.explore-sheet-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.explore-sheet-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

.explore-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.875rem 0.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.explore-card:hover,
.explore-card.active {
    border-color: var(--cat-color, var(--accent-primary));
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 12%, var(--bg-elevated));
}

.explore-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 18%, transparent);
    color: var(--cat-color, var(--accent-primary));
    font-size: 1.1rem;
}

.explore-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.explore-card-count {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.explore-theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.explore-theme-toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.explore-theme-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}

.explore-theme-toggle-text strong {
    font-size: 0.9rem;
}

.explore-theme-toggle-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.explore-theme-switch {
    width: 44px;
    height: 26px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    position: relative;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.explore-theme-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s ease;
}

.explore-theme-switch.is-dark {
    background: var(--accent-primary);
}

.explore-theme-switch.is-dark::after {
    transform: translateX(18px);
}

.explore-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.65rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   MOBİL ALT MENÜ
   =================================== */

body.has-mobile-nav {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 0.375rem 0.5rem calc(0.375rem + env(safe-area-inset-bottom, 0px));
    min-height: 3.25rem;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.35rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    min-width: 52px;
    transition: color 0.2s ease;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item.active {
    color: var(--accent-primary);
}

.bottom-nav-avatar {
    display: flex;
    line-height: 0;
}

.bottom-nav-avatar .user-avatar-initials,
.bottom-nav-avatar img {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.7rem !important;
}

.bottom-nav-fab-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 2.75rem;
    flex-shrink: 0;
}

.bottom-nav-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-hover));
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-primary) 38%, transparent);
    border: 2.5px solid var(--bg-primary);
    transform: translateY(-10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bottom-nav-fab i {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.bottom-nav-fab:hover {
    transform: translateY(-11px) scale(1.04);
    color: #fff;
}

.bottom-nav-fab.active {
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-primary) 45%, transparent);
}

/* ===================================
   MOBİL KARŞILAMA & FEED
   =================================== */

.mobile-welcome {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1rem 1.125rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.mobile-welcome-glow {
    display: none;
}

.mobile-welcome-content {
    position: relative;
    z-index: 1;
}

.mobile-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    background: var(--accent-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.mobile-welcome h1 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.35rem;
}

.mobile-welcome p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 0.625rem;
}

.mobile-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    animation: scroll-hint-bounce 2.5s ease-in-out infinite;
}

.mobile-scroll-hint i {
    color: var(--accent-primary);
}

@keyframes scroll-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.mobile-cat-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--cat-color, var(--accent-primary));
}

.mobile-cat-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 18%, transparent);
    color: var(--cat-color, var(--accent-primary));
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mobile-cat-hero h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.mobile-cat-hero p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.sort-tabs {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.sort-tab {
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sort-tab:hover {
    color: var(--text-primary);
}

.sort-tab.active {
    background: var(--accent-primary);
    color: #fff;
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: inline-flex;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .main-container {
        padding-top: 0.75rem !important;
        padding-bottom: 1rem !important;
    }

    .filter-bar-sticky {
        position: sticky;
        top: 105px;
        z-index: 90;
        background: var(--bg-secondary);
        margin: 0 -1rem 1rem;
        padding: 0.625rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .filter-bar-sticky h4 {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .filter-bar-sticky h4 i {
        color: var(--accent-primary);
    }

    .site-footer {
        padding-bottom: 0.5rem;
    }
}

@media (min-width: 992px) {
    .cat-scroll-btn {
        display: flex;
    }
}

/* ===================================
   MAIN CONTENT
   =================================== */

.main-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.container-wide {
    max-width: 1024px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
}

.hero-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* ===================================
   FILTER/SORT BUTTONS
   =================================== */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.filter-bar h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-group {
    display: flex;
    gap: 0.25rem;
}

.btn-group .btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.875rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-group .btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-group .btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* sort-tabs masaüstünde de btn-group yerine kullanılır */
.filter-bar .sort-tabs {
    flex-shrink: 0;
}

/* ===================================
   POST CARDS
   =================================== */

.post-card-wrapper {
    position: relative;
    margin-bottom: 0.875rem;
}

.post-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.post-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card-border {
    width: 4px;
    flex-shrink: 0;
}

.post-card-body {
    padding: 1.25rem;
    flex: 1;
    min-width: 0;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
}

.post-card-category {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
}

.post-card-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.post-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vote-up { color: var(--accent-primary); }
.vote-down { color: #ef4444; }

/* Post Thumbnail */
.post-card.has-thumb {
    flex-direction: row;
}

.post-card-thumb {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.post-media-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* Save Button */
.post-card-save {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.btn-save-post {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-save-post:hover,
.btn-save-post.saved {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

/* ===================================
   POST DETAIL
   =================================== */

.post-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.post-detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.post-detail-content {
    padding: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-primary);
}

.post-detail-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: var(--bg-secondary);
}

.btn-vote {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-vote:hover,
.btn-vote.active-up {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-light);
}

.btn-vote.active-down {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ===================================
   POST MEDIA
   =================================== */

.post-media-gallery {
    padding: 0 1.5rem 1rem;
    display: grid;
    gap: 0.5rem;
}

.post-media-single {
    grid-template-columns: 1fr;
}

.post-media-single img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.post-media-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.post-media-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-media-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.report-media-link {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.report-media-link:hover {
    color: var(--accent-primary);
}

/* ===================================
   COMMENTS
   =================================== */

.comment-section {
    margin-top: 2rem;
}

.comment-section h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.comment-thread {
    margin-bottom: 1rem;
}

.comment-thread > .comment-card {
    margin-bottom: 0;
}

.comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.btn-comment-vote {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-comment-vote:hover {
    border-color: var(--border-light);
}

.btn-comment-vote.active {
    font-weight: 700;
}

.reply-btn {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.reply-btn:hover {
    color: var(--accent-primary);
}

.comment-thread-replies {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid color-mix(in srgb, var(--accent-primary) 35%, var(--border-color));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
}

.comment-reply {
    padding: 0.65rem 0.875rem;
    margin-bottom: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.comment-reply-collapsed {
    display: none;
}

.comment-reply-to {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.comment-reply-to i {
    color: var(--accent-primary);
    flex-shrink: 0;
    font-size: 0.7rem;
}

.comment-reply-to strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.comment-meta-dot {
    color: var(--text-muted);
}

.comment-actions {
    margin-top: 0.125rem;
}

.btn-show-more-replies {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    margin-top: 0.125rem;
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-show-more-replies:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.comment-body {
    line-height: 1.7;
}

.reply-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ===================================
   REKLAM SAYFASI
   =================================== */

.ad-page-card {
    max-width: 640px;
}

.ad-page-card h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.ad-page-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ad-page-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.ad-page-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent-primary);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.ad-contact-box h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ad-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 0.75rem 0;
}

.ad-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

/* ===================================
   FORMS
   =================================== */

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 480px;
    margin: 0 auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-card h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.375rem;
}

.form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-light);
    width: 1.125rem;
    height: 1.125rem;
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.btn-primary-custom {
    background: var(--accent-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.char-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.375rem;
}

.char-counter.warning { color: #f59e0b; }
.char-counter.danger { color: #ef4444; }

/* ===================================
   AVATARS
   =================================== */

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-initials,
.user-avatar-anon {
    color: #fff;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    background: var(--accent-primary);
}

.profile-avatar-large img,
.profile-avatar-large .user-avatar-initials {
    width: 120px !important;
    height: 120px !important;
    font-size: 2.5rem !important;
}

.avatar-preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

/* ===================================
   PROFILE
   =================================== */

.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.profile-header h2 {
    color: var(--text-primary);
    font-weight: 700;
}

.profile-header .opacity-75 {
    color: var(--text-secondary);
}

.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--border-light);
}

.nav-tabs .nav-link.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: transparent;
}

/* ===================================
   BADGES
   =================================== */

.badge-category {
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    vertical-align: middle;
}

/* ===================================
   ALERTS
   =================================== */

.alert {
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-left: 3px solid #22c55e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 3px solid #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-left: 3px solid #3b82f6;
}

[data-theme="dark"] .alert-success {
    color: #4ade80;
}

[data-theme="dark"] .alert-danger {
    color: #f87171;
}

[data-theme="dark"] .alert-info {
    color: #60a5fa;
}

/* ===================================
   SONSUZ KAYDIRMA
   =================================== */

.feed-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem 2rem;
    color: var(--text-muted);
}

.feed-loader-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.feed-loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: feed-dot-bounce 1.2s ease-in-out infinite;
}

.feed-loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.feed-loader-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes feed-dot-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-6px); opacity: 1; }
}

.feed-loader-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.feed-end {
    text-align: center;
    padding: 1.25rem 1rem 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.feed-end i {
    color: var(--accent-primary);
}

/* ===================================
   EMPTY STATE
   =================================== */

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.35;
    line-height: 1;
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.empty-state .btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.125rem;
    font-size: 0.85rem;
    text-decoration: none;
}

.empty-state .btn-primary-custom i {
    font-size: 0.95rem;
    margin: 0;
    display: inline;
    opacity: 1;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-brand {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-cat-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-cat-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.legal-warning {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
    padding: 0.875rem 1rem;
    font-size: 0.8rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.footer-links h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    display: block;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 1.5rem 0;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================
   MODALS
   =================================== */

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-close {
    opacity: 0.5;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* ===================================
   MISC BUTTONS
   =================================== */

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}

.btn-outline-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

.btn-outline-light:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: var(--radius-md);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.btn-danger {
    background: #ef4444;
    border: none;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-outline-success {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-outline-success:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ===================================
   LISTS
   =================================== */

.list-group-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.list-group-item + .list-group-item {
    border-top: none;
}

/* ===================================
   PHOTO PREVIEW
   =================================== */

.photo-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.photo-preview-item {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   TERMS
   =================================== */

.terms-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    line-height: 1.8;
}

.terms-content h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ===================================
   SEARCH
   =================================== */

mark {
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 0 4px;
    border-radius: 4px;
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
    gap: 0.375rem;
}

.page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
}

.page-link:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.page-item.active .page-link {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.page-item.disabled .page-link {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 767.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .hero-section h1 {
        font-size: 1.375rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .btn-hero {
        padding: 0.55rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .form-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .form-card h2 {
        font-size: 1.25rem;
    }
    
    .post-card {
        border-radius: var(--radius-md);
    }
    
    .post-card-body {
        padding: 1rem;
    }
    
    .post-card.has-thumb {
        flex-direction: column;
    }
    
    .post-card-thumb {
        width: 100%;
        height: 180px;
    }
    
    .post-detail {
        border-radius: var(--radius-lg);
    }
    
    .post-detail-header,
    .post-detail-content {
        padding: 1.25rem;
    }
    
    .post-detail-content {
        font-size: 1rem;
    }
    
    .post-media-grid-2,
    .post-media-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .profile-header .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar-large img,
    .profile-avatar-large .user-avatar-initials {
        width: 100px !important;
        height: 100px !important;
        font-size: 2rem !important;
    }
    
    .comment-card {
        padding: 1rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
    
    h4.mb-0 {
        font-size: 1.125rem;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .footer-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 374.98px) {
    .hero-section h1 {
        font-size: 1.25rem;
    }
    
    .post-card-meta {
        font-size: 0.75rem;
    }
    
    .post-card-stats {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
}

/* ===================================
   SCROLLBAR
   =================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===================================
   SELECTION
   =================================== */

::selection {
    background: var(--accent-light);
    color: var(--accent-primary);
}

/* ===================================
   FOCUS STATES
   =================================== */

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ===================================
   CATEGORY COLORS
   =================================== */

.cat-is, .border-is { border-color: var(--cat-is) !important; }
.cat-ask, .border-ask { border-color: var(--cat-ask) !important; }
.cat-aile, .border-aile { border-color: var(--cat-aile) !important; }
.cat-okul, .border-okul { border-color: var(--cat-okul) !important; }
.cat-saglik, .border-saglik { border-color: var(--cat-saglik) !important; }
.cat-diger, .border-diger { border-color: var(--cat-diger) !important; }

.bg-is { background-color: var(--cat-is) !important; }
.bg-ask { background-color: var(--cat-ask) !important; }
.bg-aile { background-color: var(--cat-aile) !important; }
.bg-okul { background-color: var(--cat-okul) !important; }
.bg-saglik { background-color: var(--cat-saglik) !important; }
.bg-diger { background-color: var(--cat-diger) !important; }

.text-is { color: var(--cat-is) !important; }
.text-ask { color: var(--cat-ask) !important; }
.text-aile { color: var(--cat-aile) !important; }
.text-okul { color: var(--cat-okul) !important; }
.text-saglik { color: var(--cat-saglik) !important; }
.text-diger { color: var(--cat-diger) !important; }

/* ===================================
   UTILITIES
   =================================== */

.text-primary-color { color: var(--text-primary) !important; }
.text-secondary-color { color: var(--text-secondary) !important; }
.text-muted-color { color: var(--text-muted) !important; }
.bg-card { background: var(--bg-card) !important; }
.bg-elevated { background: var(--bg-elevated) !important; }

/* ===================================
   BLOG
   =================================== */

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { order: -1; }
}

/* Hero */
.blog-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.blog-hero--compact { align-items: flex-start; }

.blog-hero-text h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.blog-hero-text p {
    color: var(--text-secondary);
    margin: 0;
    max-width: 520px;
    font-size: 0.95rem;
}

.blog-hero-count {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 3px 10px;
    border-radius: 20px;
}

.blog-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.blog-breadcrumb:hover { color: var(--accent-primary); }

.blog-hero-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    min-width: min(100%, 340px);
    box-shadow: var(--shadow-sm);
}

.blog-hero-search i { color: var(--text-muted); }

.blog-hero-search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.blog-hero-search button {
    border: 0;
    background: var(--accent-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.blog-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-clear-search {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.blog-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
}

.blog-empty i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 1rem; display: block; }
.blog-empty h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-empty p { color: var(--text-secondary); margin: 0; }

/* Blog yazı grid — tek sütun (sidebar ile dar alan) */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.blog-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .blog-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
    .blog-grid--home { grid-template-columns: 1fr; }
}

.blog-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .blog-grid--related { grid-template-columns: 1fr; }
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-secondary);
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.03);
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.25rem;
}

.blog-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.1rem 1.1rem;
}

.blog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 0.85rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

/* Sidebar */
.blog-sidebar { position: sticky; top: 88px; }

.blog-sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.blog-sidebar-block h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.blog-sidebar-search {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.blog-sidebar-search input {
    flex: 1;
    border: 0;
    padding: 0.6rem 0.75rem;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 0;
}

.blog-sidebar-search button {
    border: 0;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0 0.85rem;
    cursor: pointer;
}

.blog-sidebar-search button:hover { color: var(--accent-primary); }

.blog-sidebar-list { list-style: none; padding: 0; margin: 0; }
.blog-sidebar-list li { margin-bottom: 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border-light); }
.blog-sidebar-list li:last-child { margin: 0; padding: 0; border: 0; }
.blog-sidebar-list a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.blog-sidebar-list a:hover { color: var(--accent-primary); }
.blog-sidebar-list small { display: block; color: var(--text-muted); font-size: 0.72rem; margin-top: 2px; }

.blog-sidebar-cats { list-style: none; padding: 0; margin: 0; }
.blog-sidebar-cats li { margin-bottom: 2px; }

.blog-sidebar-cats a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.65rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background 0.15s;
}

.blog-sidebar-cats a:hover,
.blog-sidebar-cats a.active {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.blog-sidebar-cats span {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
}

.blog-sidebar-cats a.active span {
    background: rgba(255,255,255,0.5);
    color: var(--accent-primary);
}

.blog-article { max-width: 800px; margin: 0 auto 2rem; }
.blog-article-cover { margin: -1rem -1rem 1.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.blog-article-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.blog-article-header { margin-bottom: 1.5rem; }
.blog-article-header h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; margin: 0.5rem 0 1rem; }
.blog-article-cat {
    display: inline-block; padding: 2px 12px; border-radius: 20px;
    background: var(--accent-light); color: var(--accent-primary);
    font-size: 0.8rem; font-weight: 600; text-decoration: none;
}
.blog-article-meta {
    display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
    font-size: 0.875rem; color: var(--text-muted);
}
.blog-article-content {
    font-size: 1.05rem; line-height: 1.75; color: var(--text-primary);
}
.blog-article-content h2, .blog-article-content h3 { margin-top: 1.5rem; font-weight: 700; }
.blog-article-content img { max-width: 100%; border-radius: var(--radius-md); }
.blog-article-content a { color: var(--accent-primary); }
.blog-article-tags { margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blog-tag {
    padding: 4px 12px; border-radius: 20px;
    background: var(--bg-secondary); color: var(--text-secondary);
    font-size: 0.8rem; text-decoration: none;
}
.blog-tag:hover { background: var(--accent-light); color: var(--accent-primary); }

.blog-share { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0; }
.blog-share-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: 1.1rem;
}
.blog-share-btn.twitter { background: #000; }
.blog-share-btn.whatsapp { background: #25d366; }
.blog-share-btn.facebook { background: #1877f2; }

.blog-similar { margin: 2rem 0; }
.blog-similar h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }

.blog-comments { max-width: 800px; margin: 0 auto; }
.blog-comments h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.blog-comment {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); padding: 1rem; margin-bottom: 0.75rem;
}
.blog-comment small { color: var(--text-muted); margin-left: 0.5rem; }
.blog-comment p { margin: 0.5rem 0 0; font-size: 0.95rem; }
.blog-comment-form { margin-top: 1rem; }

.blog-home-widget {
    margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}
.blog-home-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.25rem;
}
.blog-home-header h2 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.blog-home-more {
    color: var(--accent-primary); text-decoration: none;
    font-weight: 500; font-size: 0.9rem;
}
.blog-home-more:hover { text-decoration: underline; }

.seo-preview {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-top: 0.5rem;
}
.seo-preview-title { color: #1a0dab; font-size: 1.1rem; line-height: 1.3; }
.seo-preview-url { color: #006621; font-size: 0.8rem; }
.seo-preview-desc { color: var(--text-secondary); font-size: 0.85rem; margin-top: 2px; }
