:root {
    --primary-color: #2D3748;
    --accent-color: #48BB78;
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque for better readability */
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --sidebar-width: 280px;
    /* Reduced width */
    --header-height: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(to right, #4facfe, #00f2fe);
}

.shape-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, #43e97b, #38f9d7);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: linear-gradient(to right, #fa709a, #fee140);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(40px, 60px) rotate(20deg);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
}

/* Glass Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    border-color: #fff;
}

/* Header - Stuck to Top */
.main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1600px;
    /* Wider layout */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 26px;
    color: #1e293b;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    font-style: italic;
}

.beta {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background-color: #10b981;
    /* Green */
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 0;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    height: 32px;
    position: relative;
    flex: 0 1 380px;
    max-width: 380px;
    margin: 0 24px;
}

.search-form:focus-within {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.search-input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
    height: 100%;
    width: 100%;
}

.search-btn {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.search-btn:hover {
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--text-secondary);
}

.icon-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    background: #fff;
}

.user-profile:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.username {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-rank {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
}

.avatar-placeholder {
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

.dropdown-icon {
    color: #64748b;
    font-size: 10px;
    margin-left: 4px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* User Profile Dropdown */
.user-profile-wrapper,
.sukela-wrapper {
    position: relative;
}

.user-dropdown,
.sukela-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    padding: 8px 0;
    z-index: 9999;
}

.user-profile-wrapper.open .user-dropdown,
.sukela-wrapper.open .sukela-dropdown {
    display: block;
}

.user-dropdown a,
.sukela-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #4A5568;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s;
}

.user-dropdown a:hover,
.sukela-dropdown a:hover {
    background: rgba(72, 187, 120, 0.08);
    color: #48BB78;
}

.user-dropdown a i,
.sukela-dropdown a i {
    width: 16px;
    text-align: center;
    color: #94a3b8;
}

.user-dropdown a:hover i,
.sukela-dropdown a:hover i {
    color: #48BB78;
}

.user-dropdown hr,
.sukela-dropdown hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 6px 0;
}

/* ===================== Başlıkta Ara Dropdown ===================== */
.baslikta-ara-wrapper {
    position: relative;
}

.baslikta-ara-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    padding: 12px;
    z-index: 1001;
}

.baslikta-ara-wrapper.open .baslikta-ara-dropdown {
    display: block;
}

.baslikta-ara-dropdown .dropdown-section {
    margin-bottom: 10px;
}

.baslikta-ara-dropdown .dropdown-section label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.baslikta-ara-input-group {
    display: flex;
    gap: 6px;
}

.baslikta-ara-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
}

.baslikta-ara-input-group input:focus {
    outline: none;
    border-color: #48BB78;
}

.baslikta-ara-input-group button {
    padding: 8px 12px;
    background: #48BB78;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.baslikta-ara-input-group button:hover {
    background: #38a169;
}

.baslikta-ara-dropdown hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 10px 0;
}

.baslikta-ara-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #4A5568;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s;
    border-radius: 8px;
}

.baslikta-ara-dropdown .dropdown-item:hover {
    background: rgba(72, 187, 120, 0.08);
    color: #48BB78;
}

.baslikta-ara-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
    color: #94a3b8;
}

.baslikta-ara-dropdown .dropdown-item:hover i {
    color: #48BB78;
}

/* Highlight edilen metin */
.highlight-text {
    background: #fef08a;
    color: #854d0e;
    padding: 1px 3px;
    border-radius: 3px;
}

.user-dropdown a.logout {
    color: #ef4444;
}

.user-dropdown a.logout:hover {
    background: rgba(239, 68, 68, 0.08);
}

.user-dropdown a.logout i {
    color: #ef4444;
}

/* Header Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-stats {
    background: rgba(72, 187, 120, 0.1);
    color: #48BB78;
    padding: 8px 10px;
}

.btn-stats:hover {
    background: rgba(72, 187, 120, 0.2);
}

.btn-primary {
    background: #48BB78;
    color: #fff;
}

.btn-primary:hover {
    background: #059669;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Message Icon with Badge */
.msg-icon {
    position: relative;
}

.msg-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Sub Header - 3D Effect & Attached */
.sub-header {
    margin-top: var(--header-height);
    /* Directly below header */
    padding: 0;
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Stronger 3D Shadow */
    position: sticky;
    top: var(--header-height);
    z-index: 999;
    height: 40px;
    /* Specific height for calculations */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-header-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.categories {
    display: flex;
    gap: 15px;
    overflow: visible;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    /* Align Left */
}

.categories a {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    padding: 8px 12px;
    position: relative;
    transition: all 0.3s;
    background: transparent;
    border: none;
}

.categories a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #38f9d7);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.categories a:hover {
    color: var(--accent-color);
}

.categories a:hover::after,
.categories a.active::after {
    width: 80%;
}

.categories a.active {
    color: var(--accent-color);
}

/* Kanal Stilleri */
.kanal-separator {
    color: #cbd5e0;
    font-weight: 300;
    padding: 0 5px;
}

.kanal-link {
    color: #48BB78 !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 6px;
}

.kanal-link:hover {
    background: rgba(72, 187, 120, 0.2) !important;
}

.kanal-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.kanal-more-btn {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    letter-spacing: 2px;
}

.kanal-more-btn:hover {
    color: #48BB78 !important;
}

.kanal-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    max-width: 220px;
    z-index: 9999;
    padding: 8px;
    overflow: visible;
}

.kanal-dropdown.show {
    display: block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kanal-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    color: #475569 !important;
    font-size: 13px !important;
    border-radius: 8px;
    margin: 2px 0;
}

.kanal-dropdown a:hover {
    background: rgba(72, 187, 120, 0.1) !important;
    color: #48BB78 !important;
}

.kanal-dropdown a i {
    color: #48BB78;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* Sub Header Right (Ulema Link) */
.sub-header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ulema-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.ulema-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ulema-link i {
    font-size: 12px;
}

/* Layout Grid - Tighter */
.layout-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr 260px;
    gap: 15px;
    max-width: 1600px;
    margin: 15px auto;
    padding: 0 10px;
    align-items: start;
    /* CRITICAL: Allows sidebar to stick while others scroll */
}

/* Left Sidebar - STRICT FIXED/STICKY */
.left-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 15px;
    /* Sticky calculation: Top header (60) + Subheader (40) + margin (15) = 115px */
    position: sticky;
    top: 115px;
    height: calc(100vh - 130px);
    /* Fill remaining usage */
    overflow-y: auto;
    /* Internal scroll */
}

.sidebar-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.sidebar-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.topic-list li {
    margin-bottom: 4px;
}

.topic-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-primary);
    padding: 6px 8px;
    border-radius: 6px;
}

.topic-list a:hover {
    background: #f1f5f9;
    color: var(--accent-color);
}

.topic-list .count {
    font-size: 11px;
    color: #94a3b8;
    background: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Main Content */
.topic-header {
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.55) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.topic-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 0;
    margin: 0;
}

.topic-header h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

.topic-header h1 a:hover {
    color: var(--accent-color);
}

.topic-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
    position: relative;
}

.btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

/* Moderation Buttons */
.mod-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.mod-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.mod-btn-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.mod-btn-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.mod-btn-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.mod-btn-success:hover {
    background: #dcfce7;
    color: #15803d;
}

/* Başlık Takip Butonu */
.btn.takip-aktif {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    border-color: #10b981 !important;
}

.btn.takip-aktif:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Moderation Dropdown Forms */
#basliksilme,
#baslikduzenle,
#basliktasima {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#basliksilme input[type="text"],
#basliksilme input[type="button"],
#baslikduzenle input[type="text"],
#baslikduzenle input[type="button"],
#basliktasima input[type="text"],
#basliktasima input[type="button"] {
    font-family: 'Outfit', sans-serif;
}

#basliksilme input[type="text"],
#baslikduzenle input[type="text"],
#basliktasima input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    margin-right: 8px;
}

#basliksilme input[type="text"]:focus,
#baslikduzenle input[type="text"]:focus,
#basliktasima input[type="text"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

#basliksilme table,
#baslikduzenle table,
#basliktasima table {
    width: 100%;
    border-collapse: collapse;
}

#basliksilme td,
#baslikduzenle td,
#basliktasima td {
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
}

#silmecevap,
#duzenlemecevap,
#tasimacevap {
    margin-bottom: 10px;
    font-size: 13px;
    color: #10b981;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination li {
    display: block;
    /* Ensure list items behave */
}

.pagination a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.pagination a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Entries - Compact Cards */
.entry-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.55) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.entry-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    z-index: 10;
}

.entry-content {
    font-size: 14px;
    /* Reduced from 15px/17px */
    color: #334155;
    margin-bottom: 10px;
    font-family: 'Merriweather', serif;
    line-height: 1.6;
}

.entry-content a {
    color: var(--accent-color);
    font-weight: 500;
}

.entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.entry-meta {
    font-size: 11px;
    color: #94a3b8;
}

.entry-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 8px;
}

.entry-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

/* === Entry List - Modern Cards === */
.entryler {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: entry-counter;
}

.entryler>li {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.55) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.2s ease;
}

.entryler>li:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.entryler>li>div:first-child {
    font-family: 'Merriweather', serif;
    font-size: 14px;
    line-height: 1.75;
    color: #334155;
}

.entryler>li>div:first-child a {
    color: #10b981;
    font-weight: 500;
    text-decoration: none;
}

.entryler>li>div:first-child a:hover {
    text-decoration: underline;
}

/* Entry Author Info - positioned below entry */
.yazarbilgi {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    float: none;
}

/* Entry Footer Container - voting buttons below author */
.entryler>li>div[style*="height:20px"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
    height: auto !important;
}

/* Voting buttons wrapper - left aligned */
.entryler>li>div[style*="height:20px"]>div {
    display: flex !important;
    visibility: visible !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    float: none !important;
    width: 100%;
}

.yazarbilgi a {
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
}

.yazarbilgi a:hover {
    text-decoration: underline;
}

.yazarbilgi img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

/* Entry Action Buttons */
.entryler .buton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s;
    margin-right: 3px;
}

.entryler .buton:hover {
    background: #e2e8f0;
    color: #10b981;
    border-color: #cbd5e1;
}

.entryler .kucukyazi {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
}

.entryler .kucukyazi:hover {
    color: #10b981;
}

/* Admin/Mod Status Messages */
.renklikucukyazi {
    font-size: 12px;
    color: #ef4444;
    font-style: italic;
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.55) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.widget h3 {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.widget-list a {
    display: flex;
    justify-content: space-between;
    padding: 6px;
    font-size: 13px;
    border-radius: 6px;
}

.widget-list a:hover {
    background: #f1f5f9;
}

.sticky-widget {
    position: sticky;
    top: 115px;
}

/* Aligned with left sidebar */

.stat-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #334155;
}

.stat-box strong {
    color: var(--accent-color);
}

/* Mobile */
@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 240px 1fr;
    }

    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .layout-grid {
        display: block;
        padding-top: 10px;
    }

    .left-sidebar {
        display: none;
    }

    .sub-header {
        top: 60px;
    }

    /* Adjust for header height */
    .icon-btn {
        width: 32px;
        height: 32px;
    }
}

/* === Topic List Card Styles === */
.topic-list-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px 0 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-list-header i {
    color: #10b981;
}

.baslikliste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.baslikliste li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.baslikliste li:hover {
    background: #f8fafc;
    margin: 0 -12px;
    padding: 12px;
    border-radius: 6px;
}

.baslikliste li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    transition: color 0.15s;
}

.baslikliste li a:hover {
    color: #10b981;
}

.baslikliste .entry-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    padding: 0 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
    margin-left: 12px;
}

.baslikliste .nokta {
    display: none;
}

.sayfalama_div {
    padding: 16px 0;
    text-align: center;
}

#sayfalama_linkler a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}

#sayfalama_linkler a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

#secili_sayfa {
    background: #10b981 !important;
    color: #fff !important;
    border-color: #10b981 !important;
}

/* === Entry Writing Form === */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

/* Entry textarea */
.duzyazi,
#entryyaz {
    width: 100% !important;
    min-height: 150px;
    padding: 16px;
    font-family: 'Merriweather', serif;
    font-size: 14px;
    line-height: 1.7;
    line-height: 1.7;
    color: #334155;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    resize: vertical;
    transition: all 0.2s;
    box-sizing: border-box;
}

.duzyazi:focus,
#entryyaz:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Entry form helper buttons container - left aligned */
form>div[style*="text-align:right"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 0 !important;
    text-align: left !important;
}

/* General .buton styling for entry form - smaller size */
.buton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.buton:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #10b981;
}

/* Entry form wrapper - for kaydet positioning */
form[action="entryyaz.php"],
form[action="baslikac.php"] {
    position: relative;
}

/* Form clearfix for float */
form[action="entryyaz.php"]::after,
form[action="baslikac.php"]::after {
    content: "";
    display: table;
    clear: both;
}

/* Kaydet submit button - styled and aligned right */
input#kaydet,
input[name="kaydet"] {
    float: right;
    background: #10b981;
    border: 1px solid #10b981;
    color: #fff;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 8px;
    cursor: pointer;
    clear: both;
}

input#kaydet:hover,
input[name="kaydet"]:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

/* Ukte (topic explanation) field - smaller */
#ukteaciklama {
    min-height: auto !important;
    height: 36px;
    padding: 8px 12px;
}

/* Görsel (image) description textarea - smaller */
#gorselaciklama,
textarea[name="gorselaciklama[]"] {
    min-height: auto !important;
    height: 50px !important;
    resize: vertical;
}

/* Görsel area styling */
.gorselalan {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #64748b;
}

.gorselalan i {
    font-style: normal;
    color: #475569;
}

/* Entry form instruction text styling */
fieldset>br:first-child+*:not(form),
fieldset>*:first-child:not(form):not(br) {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

/* -------------------------------------------------------------------------- */
/*                           13. LOGIN FORM (GIRIS)                           */
/* -------------------------------------------------------------------------- */

/* Login sayfasında içerik alanını ortala */
.sozluk_sag.login-page {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

/* Login form container */
.login-page form[name="form"],
.login-page form[action*="giris"],
.login-page table[width="500"] {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.sozluk_sag form[name="form"] table,
.sozluk_sag form[action*="giris"] table {
    width: 100%;
}

.sozluk_sag form[name="form"] td,
.sozluk_sag form[action*="giris"] td {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.sozluk_sag form[name="form"] input[type="text"],
.sozluk_sag form[name="form"] input[type="password"],
.sozluk_sag form[action*="giris"] input[type="text"],
.sozluk_sag form[action*="giris"] input[type="password"] {
    width: 100% !important;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}

.sozluk_sag form[name="form"] input[type="text"]:focus,
.sozluk_sag form[name="form"] input[type="password"]:focus,
.sozluk_sag form[action*="giris"] input[type="text"]:focus,
.sozluk_sag form[action*="giris"] input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.sozluk_sag form[name="form"] input[type="checkbox"],
.sozluk_sag form[action*="giris"] input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--accent-color);
}

.sozluk_sag form[name="form"] input[type="submit"],
.sozluk_sag form[action*="giris"] input[type="submit"] {
    background: var(--accent-color);
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    margin-top: 10px;
}

.sozluk_sag form[name="form"] input[type="submit"]:hover,
.sozluk_sag form[action*="giris"] input[type="submit"]:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Şifremi unuttum link */
.sozluk_sag a.kucukyazi {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 500;
}

.sozluk_sag a.kucukyazi:hover {
    text-decoration: underline;
}

/* Login page title */
.sozluk_sag b {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/*                    14. AJAX LOGIN FORM (giris_form.php)                    */
/* -------------------------------------------------------------------------- */
.login-container {
    max-width: 420px;
    margin: 40px auto;
    padding: 20px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.login-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.login-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--accent-color);
}

.forgot-link {
    font-size: 12px;
    color: var(--accent-color);
    display: inline-block;
    margin-top: 6px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: var(--accent-color);
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-message {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.login-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.login-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.login-success {
    text-align: center;
    padding: 40px;
}

.login-success .btn-primary {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/*                15. AJAX REGISTER FORM (kayit_form.php)                     */
/* -------------------------------------------------------------------------- */
.register-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.register-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 25px;
}

.register-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.register-form .form-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.register-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.register-form .form-row .form-group {
    flex: 1;
}

.register-form .form-group {
    margin-bottom: 16px;
}

.register-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}

.register-form input[type="text"]:focus,
.register-form input[type="email"]:focus,
.register-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.register-form small {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
}

.register-form .date-selects {
    display: flex;
    gap: 10px;
}

.register-form .date-selects select {
    flex: 1;
}

.register-form .checkbox-group {
    margin: 20px 0;
}

.register-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.register-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--accent-color);
}

.register-btn {
    width: 100%;
    background: var(--accent-color);
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.register-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.register-message {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.register-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.register-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.login-link a {
    color: var(--accent-color);
    font-weight: 500;
}

.register-success {
    text-align: center;
    padding: 40px;
}

@media (max-width: 600px) {
    .register-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* -------------------------------------------------------------------------- */
/*                16. RIGHT SIDEBAR WIDGETS                                   */
/* -------------------------------------------------------------------------- */
.widget {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.widget h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'Outfit', sans-serif;
}

.widget select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    color: #2D3748;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.widget select:focus {
    outline: none;
    border-color: #48BB78;
}

.widget input[type="text"],
.widget .aratext {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    color: #2D3748;
    transition: all 0.2s;
    box-sizing: border-box;
}

.widget input[type="text"]:focus,
.widget .aratext:focus {
    outline: none;
    border-color: #48BB78;
}

.widget input[type="submit"],
.widget .buton {
    padding: 8px 16px;
    background: #48BB78;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    margin-top: 8px;
}

.widget input[type="submit"]:hover,
.widget .buton:hover {
    background: #059669;
}

.widget form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget .baskayerlerdeara {
    margin: 0;
}

/* Başlıkta ara inline layout */
.widget form[action="sozluk.php"] {
    flex-direction: row;
    flex-wrap: wrap;
}

.widget form[action="sozluk.php"] input[name="aranan"] {
    flex: 1;
    min-width: 100px;
}

/* Shortcut Icon Buttons */
.shortcut-widget {
    padding: 10px !important;
}

.shortcut-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1.5px solid var(--accent-color);
    border-radius: 6px;
    color: var(--accent-color);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.shortcut-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

.shortcut-btn.sari {
    background: #fbbf24;
    border-color: #fbbf24;
    color: white;
}

.shortcut-btn.sari:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

.shortcut-btn.turuncu {
    background: #fb923c;
    border-color: #fb923c;
    color: white;
}


/* -------------------------------------------------------------------------- */
/*                          SIDEBAR PAGINATION STYLING                        */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*                          SIDEBAR PAGINATION STYLING                        */
/* -------------------------------------------------------------------------- */
.sayfalama_div {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0 !important;
    color: transparent !important;
    margin: 10px 0 !important;
    padding: 0 5px !important;
    line-height: normal !important;
    /* Reset line height */
    display: flex;
    /* Use flexbox for perfect vertical alignment */
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    /* Space between elements */
}

.sayfalama_div #sayfalama_linkler {
    display: flex;
    align-items: center;
    margin: 0;
}

.sayfalama-select {
    box-sizing: border-box !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    height: 22px !important;
    /* EXACT HEIGHT */
    line-height: 20px !important;
    /* Height - Borders */
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0 20px 0 8px !important;
    /* Fix padding */
    font-family: 'Outfit', sans-serif;
    font-size: 11px !important;
    color: var(--primary-color) !important;
    /* Ensure visibility */
    font-weight: 500;
    cursor: pointer;
    outline: none;
    text-align: center;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%2348BB78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    margin: 0 !important;
    /* Reset margin */
}

.sayfalama-select:hover,
.sayfalama-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(72, 187, 120, 0.1);
}

.sayfalama_div a {
    box-sizing: border-box !important;
    display: flex !important;
    /* Force flex to center text */
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif !important;
    font-size: 11px !important;
    width: 22px !important;
    /* Fixed width */
    height: 22px !important;
    /* EXACT HEIGHT */
    line-height: normal !important;
    /* Flex handles centering */
    padding: 0 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    color: #718096 !important;
    /* Ensure visibility */
    margin: 0 !important;
    transition: all 0.2s ease;
    box-shadow: none;
    font-weight: 500;
}

.sayfalama_div a:hover {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    background: rgba(72, 187, 120, 0.15) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.15);
}

/* Hide BRs and text */
.sayfalama_div br {
    display: none;
}



/* Hide BRs and text */
.sayfalama_div br {
    display: none;
}

/* Widget Styling - Added for compact view */
.widget {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px !important;
    /* Force tight spacing */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.widget:last-child {
    margin-bottom: 0 !important;
}

.widget h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.shortcut-widget .shortcut-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    color: #48BB78;
    background: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.shortcut-widget .shortcut-btn:hover {
    background: #48BB78;
    color: #fff;
    border-color: #48BB78;
    transform: translateY(-2px);
}

/* ===================== Görsel Thumbnail Stili ===================== */
.gorsel-thumbnail {
    display: inline-block;
    margin: 5px 0;
    vertical-align: middle;
}

.gorsel-thumbnail img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
}

.gorsel-thumbnail img:hover {
    border-color: #48BB78;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* ===================== YouTube Embed Stili ===================== */
.youtube-embed {
    position: relative;
    width: 280px;
    max-width: 100%;
    margin: 10px 0;
    padding-bottom: 157.5px;
    /* 16:9 aspect ratio for 280px width */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .youtube-embed {
        max-width: 100%;
    }
}

/* ===================== Inline Mesaj Formu ===================== */
.inline-mesaj-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mesaj-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Outfit', sans-serif;
}

.mesaj-form-header strong {
    color: #48BB78;
    font-size: 14px;
}

.mesaj-kime {
    background: #48BB78;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.mesaj-form-body .mesaj-input,
.mesaj-form-body .mesaj-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.mesaj-form-body .mesaj-input:focus,
.mesaj-form-body .mesaj-textarea:focus {
    outline: none;
    border-color: #48BB78;
}

.mesaj-form-body .mesaj-textarea {
    min-height: 100px;
    resize: vertical;
}

.mesaj-form-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.mesaj-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mesaj-form-actions .btn-success {
    background: #48BB78 !important;
    color: #fff !important;
    border-color: #48BB78 !important;
}

.mesaj-form-actions .btn-success:hover {
    background: #38a169 !important;
}

.mesaj-sonuc {
    margin-top: 10px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
}

.mesaj-sonuc.success {
    color: #10b981;
}

.mesaj-sonuc.error {
    color: #ef4444;
}

@media (max-width: 768px) {
    .mesaj-form-buttons {
        gap: 4px;
    }

    .mesaj-form-buttons .buton {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ===================== Mesaj Detay Link Stilleri ===================== */
.msg-body a {
    color: #48BB78;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.msg-body a:hover {
    color: #38a169;
    text-decoration: underline;
}

/* Layout Grid Fix (Grid Version) */
.layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    /* Fixed widths for sidebars */
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
    align-items: start;
}

.left-sidebar {
    width: auto;
    /* Grid handles width */
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.main-content {
    min-width: 0;
    /* Prevent grid blowout */
    overflow: visible;
}

.right-sidebar {
    width: auto;
    /* Grid handles width */
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    background: transparent;
}

/* Responsive */
@media (max-width: 1200px) {
    .layout-grid {
        grid-template-columns: 280px 1fr;
    }

    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .left-sidebar {
        display: none;
        /* Usually handled by mobile menu toggle */
    }

    /* If you want left sidebar visible on mobile under menu button toggle 
       you might need separate logic, but for layout stability: */
    .left-sidebar.active {
        display: block;
        position: fixed;
        left: 0;
        top: 60px;
        background: #fff;
        z-index: 999;
        height: calc(100vh - 60px);
    }
}

/* =========================================
   SEARCH BOX MODERNIZATION
   ========================================= */

/* Search Form Container */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 15px;
}

/* Search Input Styling */
.search-input {
    width: 320px;
    height: 44px;
    padding: 12px 16px;
    padding-right: 90px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.search-input::placeholder {
    color: #64748b;
    font-size: 13px;
}

.search-input:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.search-input:focus {
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.15),
        0 10px 40px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

/* Search Button Group */
.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-50%) scale(1.05);
}

.search-btn i {
    font-size: 14px;
}

/* Advanced Search Mode Button */
.search-mode-btn {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-mode-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.search-mode-btn.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.search-mode-btn i {
    font-size: 12px;
}

/* =========================================
   AUTOCOMPLETE / SUGGESTIONS DROPDOWN
   ========================================= */
.otomatikarama {
    z-index: 99999 !important;
    position: absolute !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
}

.otomatikarama ul {
    margin: 0 !important;
    padding: 8px !important;
    list-style: none !important;
}

.otomatikarama li,
.aramasonuc,
.aramasonuc_bos {
    padding: 10px 14px !important;
    margin: 2px 0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #334155 !important;
    transition: all 0.15s !important;
}

.otomatikarama li:hover,
.aramasonuc:hover,
.aramasonuc_bos:hover,
.aramasonuc_ust {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05)) !important;
    color: #10b981 !important;
}

.aramasonuc_ust {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08)) !important;
    color: #059669 !important;
}

.otomatikarama li strong {
    color: #10b981 !important;
    font-weight: 600 !important;
}

/* =========================================
   ADVANCED SEARCH DROPDOWN PANEL
   ========================================= */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 99998;
    padding: 20px;
    animation: slideDown 0.2s ease;
}

.search-dropdown.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.search-dropdown-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-dropdown-header h4 i {
    color: #10b981;
}

.search-dropdown-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-dropdown-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Search Mode Tabs */
.search-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.search-mode-tab {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.search-mode-tab i {
    font-size: 16px;
}

.search-mode-tab:hover {
    border-color: #10b981;
    color: #10b981;
}

.search-mode-tab.active {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: #fff;
}

/* Search Options Groups */
.search-option-group {
    margin-bottom: 15px;
}

.search-option-group:last-child {
    margin-bottom: 0;
}

.search-option-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.search-option-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-option-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    transition: all 0.2s;
}

.search-option-radio:hover {
    border-color: #10b981;
    color: #10b981;
}

.search-option-radio input[type="radio"] {
    display: none;
}

.search-option-radio input[type="radio"]:checked+span {
    color: #10b981;
    font-weight: 600;
}

.search-option-radio:has(input:checked) {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

/* Date Filters */
.search-date-filters {
    display: flex;
    gap: 8px;
}

.search-date-filters select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    color: #334155;
    outline: none;
    transition: all 0.2s;
}

.search-date-filters select:focus {
    border-color: #10b981;
}

/* Search Submit Button */
.search-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 15px;
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ===================== KANAL DROPDOWN STYLES ===================== */
.kanal-toggle-btn {
    background: rgba(72, 187, 120, 0.1) !important;
    color: #48BB78 !important;
    border-color: rgba(72, 187, 120, 0.3) !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
}

.kanal-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 220px;
    z-index: 99999;
}

.kanal-dropdown-header {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.kanal-checkbox-list {
    max-height: 200px;
    overflow-y: auto;
}

.kanal-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 6px;
    margin: 2px 0;
    color: #334155;
}

.kanal-checkbox-list label:hover {
    background: #f8fafc;
}

.kanal-checkbox-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.kanal-checkbox-list i {
    color: #48BB78;
    width: 18px;
}

.kanal-dropdown-footer {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.kanal-save-btn {
    flex: 1;
    padding: 8px 12px !important;
    background: #48BB78 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.kanal-save-btn:hover {
    background: #38a169 !important;
}

.kanal-close-btn {
    padding: 8px 12px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 12px !important;
}

/* Kanal label - JS tarafından oluşturulan */
.kanal-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    border-radius: 6px;
    margin: 2px 0;
    transition: background 0.15s ease;
}

.kanal-label:hover {
    background: #f8fafc;
}

.kanal-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #48BB78;
}

.kanal-label i {
    color: #48BB78;
    width: 18px;
}

/* ========================================================================== */
/*                         RESPONSIVE MOBILE STYLES                           */
/* ========================================================================== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Sidebar Drawer */
.left-sidebar.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 9999;
    transition: left 0.3s ease;
    border-radius: 0;
    padding-top: 60px;
}

.left-sidebar.mobile-drawer.open {
    left: 0;
}

.mobile-drawer-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.left-sidebar.mobile-drawer .mobile-drawer-close {
    display: flex;
}

/* Categories Mobile Menu */
.categories-mobile-wrapper {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.categories-mobile-wrapper.open {
    max-height: 400px;
}

.categories-mobile {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
}

.categories-mobile a {
    padding: 12px 15px;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.categories-mobile a:last-child {
    border-bottom: none;
}

/* ===================== TABLET BREAKPOINT (1024px) ===================== */
@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 260px 1fr;
        gap: 12px;
    }

    .right-sidebar {
        display: none;
    }

    .left-sidebar {
        width: 100%;
    }

    :root {
        --sidebar-width: 260px;
    }

    .header-container {
        padding: 0 15px;
    }

    .search-form {
        flex: 0 1 300px;
        max-width: 300px;
        margin: 0 15px;
    }

    .categories a {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ===================== MOBILE BREAKPOINT (768px) ===================== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    /* Layout - Single column */
    .layout-grid {
        display: block;
        padding: 10px;
        margin-top: 10px;
    }

    /* Hide desktop sidebar */
    .left-sidebar:not(.mobile-drawer) {
        display: none;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Header adjustments */
    .main-header {
        height: var(--header-height);
    }

    .header-container {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-text span {
        font-size: 18px !important;
    }

    .beta {
        display: none;
    }

    /* Search form - smaller on mobile header */
    .search-form {
        flex: 0 1 180px;
        max-width: 180px;
        margin: 0 10px;
        height: 36px;
    }

    .search-input {
        font-size: 13px;
        padding: 0 10px;
    }

    .search-btn,
    .search-mode-btn {
        padding: 0 10px;
    }

    /* User actions */
    .user-actions {
        gap: 6px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .user-profile {
        padding: 3px 8px 3px 3px;
    }

    .username {
        display: none;
    }

    .user-rank {
        display: none;
    }

    .dropdown-icon {
        display: none;
    }

    /* Sub header / Categories */
    .sub-header {
        height: auto;
        min-height: 44px;
        padding: 5px 0;
        top: var(--header-height);
    }

    .sub-header-inner {
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .categories {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 5px;
    }

    .categories::-webkit-scrollbar {
        display: none;
    }

    .categories a {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .sub-header-right {
        display: none;
    }

    /* Topic header */
    .topic-header {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .topic-header h1 {
        font-size: 16px;
        width: 100%;
    }

    .topic-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .topic-actions .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Entry cards */
    .entryler>li {
        padding: 15px;
        margin-bottom: 12px;
    }

    .entryler>li>div:first-child {
        font-size: 14px;
        line-height: 1.6;
    }

    .entry-content {
        font-size: 14px;
    }

    .yazarbilgi {
        flex-wrap: wrap;
        gap: 6px;
    }

    .entry-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .entry-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Buttons - touch friendly (min 44px) */
    .action-btn {
        width: 40px;
        height: 40px;
        min-width: 44px;
        min-height: 44px;
    }

    .buton {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 40px;
    }

    /* Entry form */
    .duzyazi,
    #entryyaz {
        min-height: 120px;
        font-size: 14px;
        padding: 12px;
    }

    /* Dropdown adjustments */
    .user-dropdown,
    .sukela-dropdown {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }

    .search-dropdown {
        position: fixed;
        top: var(--header-height) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 0;
        max-width: none;
    }

    /* Widget adjustments */
    .widget {
        padding: 12px;
    }

    .widget h3 {
        font-size: 12px;
    }

    /* Başlık list */
    .baslikliste li {
        padding: 14px 0;
    }

    .baslikliste li a {
        font-size: 14px;
    }

    /* Pagination */
    #sayfalama_linkler a {
        width: 36px;
        height: 36px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Background shapes - reduce on mobile */
    .bg-shape {
        opacity: 0.3;
    }

    .shape-1 {
        width: 300px;
        height: 300px;
    }

    .shape-2 {
        width: 250px;
        height: 250px;
    }

    .shape-3 {
        display: none;
    }
}

/* ===================== SMALL MOBILE (480px) ===================== */
@media (max-width: 480px) {
    :root {
        --header-height: 52px;
    }

    .header-container {
        padding: 0 8px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 14px !important;
    }

    .logo-text img {
        max-height: 28px !important;
    }

    /* Search - icon only on very small screens */
    .search-form {
        flex: 0 0 auto;
        width: 44px;
        max-width: 44px;
        margin: 0 5px;
        padding: 0;
        background: transparent;
        border: none;
    }

    .search-input {
        display: none;
    }

    .search-form:focus-within {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: var(--header-height);
        z-index: 1001;
        background: #fff;
        border-radius: 0;
        padding: 8px;
    }

    .search-form:focus-within .search-input {
        display: block;
        flex: 1;
    }

    .search-btn {
        width: 44px;
        padding: 0;
    }

    .search-mode-btn {
        display: none;
    }

    .search-form:focus-within .search-mode-btn {
        display: flex;
    }

    /* Categories - vertical scroll */
    .categories {
        gap: 5px;
    }

    .categories a {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* Topic header */
    .topic-header h1 {
        font-size: 14px;
    }

    .topic-actions .btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    /* Entry cards */
    .entryler>li {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .entryler>li>div:first-child {
        font-size: 13px;
    }

    /* Form */
    .duzyazi,
    #entryyaz {
        min-height: 100px;
        font-size: 13px;
    }

    input#kaydet,
    input[name="kaydet"] {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        min-height: 48px;
    }

    /* Login/Register buttons */
    .btn-primary,
    .btn-secondary {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* ===================== LANDSCAPE MOBILE ===================== */
@media (max-height: 500px) and (orientation: landscape) {
    .sub-header {
        position: relative;
        top: 0;
    }

    .layout-grid {
        margin-top: 5px;
    }

    .left-sidebar.mobile-drawer {
        padding-top: 10px;
        width: 280px;
    }
}

/* ===================== TOUCH DEVICE ENHANCEMENTS ===================== */
@media (hover: none) and (pointer: coarse) {

    /* Larger tap targets */
    .topic-list a {
        padding: 12px 10px;
    }

    .categories a {
        padding: 10px 14px;
    }

    .widget-list a {
        padding: 12px 8px;
    }

    /* Remove hover effects that don't work on touch */
    .entry-card:hover {
        transform: none;
    }

    .entryler>li:hover {
        transform: none;
    }

    /* Show scrollbar indicators */
    .categories {
        scrollbar-width: thin;
    }
}

/* ========================================================================== */
/*                         MOBILE NAVIGATION STYLES                           */
/* ========================================================================== */

/* Mobile nav section - hidden on desktop by default */
.mobile-nav-section {
    display: none;
}

/* Desktop sidebar content - visible by default */
.sidebar-content-desktop {
    display: block;
}

/* Mobile: Show mobile nav, hide desktop content */
@media (max-width: 768px) {
    .mobile-nav-section {
        display: block;
        padding: 5px 0 15px 0;
    }

    .sidebar-content-desktop {
        display: none;
    }

    .mobile-drawer-close {
        display: flex !important;
    }
}

/* Mobile Nav Group */
.mobile-nav-group {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-group:last-child {
    border-bottom: none;
}

.mobile-nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    padding: 0 0 10px 0;
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(72, 187, 120, 0.1);
    color: #10b981;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #64748b;
}

.mobile-nav-link:hover i,
.mobile-nav-link:active i {
    color: #10b981;
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
    display: flex;
    gap: 10px;
    padding: 15px 0;
}

.mobile-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
}

.mobile-nav-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mobile-nav-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    color: #fff;
}

.mobile-nav-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.mobile-nav-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Mobile User Info */
.mobile-user-info {
    padding: 15px 0;
}

.mobile-user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-user-nick {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.mobile-user-label {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
}

/* Mobile Logout */
.mobile-logout-group {
    padding-top: 15px;
}

.mobile-nav-logout {
    color: #ef4444 !important;
}

.mobile-nav-logout i {
    color: #ef4444 !important;
}

.mobile-nav-logout:hover,
.mobile-nav-logout:active {
    background: rgba(239, 68, 68, 0.1) !important;
}