/* ============================================================
   HUBNEWS THEME - styles.css
   ============================================================ */

:root {
    --bg-main: #f4f5f7;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-muted: #6b7280;
    --accent-blue: #0284c7;
    --accent-blue-light: #e0f2fe;
    --accent-green: #10b981;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 62px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header-wrap {
    background: var(--bg-card);
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

.brand-logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    background: linear-gradient(120deg, #0284c7 0%, #0ea5e9 35%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAV — Üst Seviye ===== */
.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav > ul > li {
    position: relative;
}

/* Üst nav linkleri */
.main-nav > ul > li > a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

/* ⚡ Mavi çizgi animasyonu: sol → sağ */
.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav > ul > li > a:hover {
    color: var(--text-primary);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.nav-active > a::after {
    width: calc(100% - 28px);
}

.main-nav > ul > li.nav-active > a {
    color: var(--accent-blue);
    font-weight: 600;
}

/* ok ikonu */
.icon-arrow {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.has-dropdown:hover > a .icon-arrow {
    transform: rotate(180deg);
}

/* ===== ANA DROPDOWN ===== */
.has-dropdown > .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
    padding: 6px;
    list-style: none;
    margin: 2px 0 0 0;
    z-index: 9999;

    /* Gizli durum */
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

/* Görünmez hover köprüsü (fare buton ile menü arasındaki boşlukta kaybolmasın) */
.has-dropdown > .dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== DROPDOWN ÖĞELERİ ===== */
.drop-item {
    list-style: none;
    position: relative;
}

.drop-item > a {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.drop-item > a:hover {
    background: #f0f9ff;
    color: var(--accent-blue);
}

/* Aktif öğe */
.drop-item.nav-active > a {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    font-weight: 600;
}

/* İsim ve sayaç */
.drop-name {
    flex: 1;
}

.drop-count {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 6px;
    font-weight: 400;
}

/* Alt kategori ok ikonu */
.sub-arrow {
    width: 14px;
    height: 14px;
    fill: #9ca3af;
    margin-left: 4px;
    flex-shrink: 0;
}

/* ===== ALT KATEGORİ (Sub-dropdown) ===== */
.has-sub > .sub-dropdown {
    position: absolute;
    left: 100%;
    top: -6px;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 6px;
    list-style: none;
    margin: 0 0 0 2px;
    z-index: 10000;

    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

/* Görünmez alt menü hover köprüsü */
.has-sub > .sub-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -12px;
    width: 12px;
    height: calc(100% + 20px);
}

.has-sub:hover > .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Sub-dropdown öğeleri */
.sub-dropdown .drop-item > a {
    font-size: 12px;
    padding: 8px 12px;
}

/* ===== ESKİ FAZLA KURALLAR ===== */
.dropdown li { list-style: none; }



/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-btn {
    background: #f3f4f6;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: relative;
}

.search-btn:hover { background: #e5e7eb; }

.search-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

/* ============================================================
   AÇILIR ARAMA ÇUBUĞU (SEARCH DROPDOWN BAR)
   ============================================================ */
.search-dropdown-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
    display: none;
    position: relative;
    z-index: 990;
}

.search-dropdown-bar.is-active {
    display: block;
    animation: slideDownSearch 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownSearch {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-dropdown-inner {
    display: flex;
    align-items: center;
    background: #f4f5f7;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    padding: 6px 10px 6px 18px;
    transition: border-color 0.2s, background 0.2s;
}

.search-dropdown-inner:focus-within {
    border-color: var(--accent-blue);
    background: #ffffff;
}

.search-dropdown-icon {
    width: 20px;
    height: 20px;
    fill: #9ca3af;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-dropdown-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    font-family: var(--font-family);
    outline: none;
}

.search-dropdown-submit {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-dropdown-submit:hover {
    background: #0369a1;
}

/* Canlı Arama Sonuç Kutusu Konumlandırması */
.search-dropdown-bar #quick-search {
    position: relative;
}

.search-dropdown-bar .qs-results-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== KULLANICI PILL BUTONU (resim gibi mavi) ===== */
.user-pill-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-blue);
    border: none;
    border-radius: 30px;
    padding: 5px 10px 5px 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-pill-btn:hover { background: #0369a1; }

/* Misafir: ikon avatar dairesi */
.user-pill-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-pill-avatar svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Giriş yapmış: resim + isim */
.user-pill-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-pill-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill-chevron {
    width: 16px;
    height: 16px;
    fill: rgba(255,255,255,0.85);
    flex-shrink: 0;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.main-container {
    padding: 24px 0 0;
}

/* ============================================================
   HERO SECTION (Slider + Yan Liste)
   ============================================================ */
.hero-section {
    margin-bottom: 16px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: stretch;
}

/* ===== SLIDER WRAPPER ===== */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-card {
    position: relative;
    min-height: 400px;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #1f2937;
    display: block;
}

.slider-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.slider-card:hover .slider-bg {
    transform: scale(1.03);
}

/* Overlay — tam kart boyunca gradient */
.slider-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 26px 22px;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.15) 35%,
        rgba(0,0,0,0.80) 100%
    );
    color: #ffffff;
}

/* Üst: Kategori pill */
.slider-top {
    display: flex;
    align-items: flex-start;
}

.cat-tag-pill {
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 14px 4px 6px;
    border-radius: 14px 26px 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Orta: Başlık */
.slider-body {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 12px;
}

.slider-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.slider-title a {
    color: #ffffff;
    text-decoration: none;
}

.slider-title a:hover { text-decoration: underline; }

/* Alt: Meta bilgisi */
.slider-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    flex-wrap: wrap;
}

.slider-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.slider-author {
    font-weight: 600;
    color: #fff;
}

.meta-sep {
    opacity: 0.4;
    font-size: 10px;
}

.meta-icon {
    width: 13px;
    height: 13px;
    fill: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

/* ===== SLIDER OK BUTONLARI ===== */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.slider-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.slider-nav svg {
    width: 22px;
    height: 22px;
    fill: #374151;
}

.slider-prev { left: 14px; }
.slider-next { right: 14px; }

/* ===== SLIDER DOTS ===== */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.25);
}

.meta-dot { opacity: 0.5; }

/* HERO YAN LİSTE */
.hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    transition: box-shadow 0.2s;
}

.mini-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.mini-card-thumb {
    width: 80px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
}

.mini-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card-info {
    flex: 1;
    min-width: 0;
}

.cat-tag-pill-xs {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.mini-card-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.mini-card-title a:hover { color: var(--accent-blue); }

.mini-card-meta {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.mini-card-meta svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================================
   TICKER / HABER AKIŞI (Birebir Referans Tasarımı)
   ============================================================ */
.news-ticker {
    background: transparent;
    padding: 12px 0;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.ticker-content::-webkit-scrollbar { display: none; }

.ticker-item-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ticker-item-title {
    color: #111827;
    white-space: nowrap;
    transition: color 0.2s;
}

.ticker-item-link:hover .ticker-item-title {
    color: var(--accent-blue);
}

.ticker-sep {
    color: #d1d5db;
    font-size: 16px;
    font-weight: 400;
    margin-left: 8px;
    user-select: none;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-block {
    margin-bottom: 28px;
}

.section-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 28px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header-left { flex: 1; min-width: 0; }

.section-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--accent-blue-light);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.section-all-link svg { width: 12px; height: 12px; }
.section-all-link:hover { background: var(--accent-blue); color: #fff; }

.subtitle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.section-icon-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon-box svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.section-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    padding-bottom: 10px;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, rgba(2, 132, 199, 0.4) 55%, rgba(2, 132, 199, 0) 100%);
    filter: blur(0.4px);
    border-radius: 2px;
}

/* ============================================================
   GÜNDEM GRİD (story_grid)
   ============================================================ */
.grid-actual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.25s, transform 0.25s;
}

.grid-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* 🌟 İLK KART (Top-Left Big Featured Card) 🌟 */
.grid-actual .grid-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 320px;
    border: none;
}

.grid-actual .grid-card:first-child .card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.grid-actual .grid-card:first-child .card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
}

.grid-actual .grid-card:first-child .card-cat-wrap {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
}

.grid-actual .grid-card:first-child .fav-icon-btn {
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
}

.grid-actual .grid-card:first-child .fav-icon-btn svg {
    fill: #ffffff;
}

.grid-actual .grid-card:first-child .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 20px;
    color: #ffffff;
    background: transparent;
}

.grid-actual .grid-card:first-child .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.grid-actual .grid-card:first-child .card-title a {
    color: #ffffff;
}

.grid-actual .grid-card:first-child .card-footer-meta {
    color: rgba(255,255,255,0.75);
}

.grid-actual .grid-card:first-child .meta-item-ic svg {
    fill: rgba(255,255,255,0.75);
}

/* Standart Kartlar */
.card-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    background: #e5e7eb;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.grid-card:hover .card-thumb img {
    transform: scale(1.04);
}

.fav-icon-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.92);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: background 0.2s;
}

.fav-icon-btn:hover { background: #fff; }

.fav-icon-btn svg {
    width: 14px;
    height: 14px;
    fill: #9ca3af;
}

.fav-icon-btn.fav-active svg,
.btn-fav.fav-active svg {
    fill: #ef4444;
}

.card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-cat-wrap { margin-bottom: 8px; }

/* Kategori Badgeleri (Birebir Referans Tasarımı: Asimetrik Kavis + Daire İkon) */
.cat-tag-blue,
.cat-tag-pill-xs,
.cat-tag-pill-sm {
    background: #0284c7;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 14px 4px 6px;
    border-radius: 14px 26px 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cat-tag-green {
    background: #10b981 !important;
}

.badge-icon-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon-circle svg,
.cat-tag-blue .badge-icon {
    width: 11px;
    height: 11px;
    fill: #ffffff;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 auto;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.card-title a:hover { color: var(--accent-blue); }

.card-footer-meta {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-item-ic {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-item-ic svg {
    width: 12px;
    height: 12px;
    fill: var(--text-muted);
}



/* ============================================================
   KATEGORİ KARTLARI
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.cat-card {
    height: 145px;
    border-radius: var(--border-radius-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #374151;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    transition: background 0.25s;
}

.cat-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

.cat-card:hover::before {
    background: rgba(0,0,0,0.35);
}

.cat-name {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    padding: 0 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cat-count {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
}

/* ============================================================
   YATAY LİSTE (story_horizontal)
   ============================================================ */
.list-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.horizontal-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.2s;
}

.horizontal-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.h-card-thumb {
    width: 88px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
}

.h-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.horizontal-card:hover .h-card-thumb img {
    transform: scale(1.05);
}

.h-card-content { flex: 1; min-width: 0; }

.cat-tag-pill-sm {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.h-card-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.h-card-title a:hover { color: var(--accent-blue); }

.h-card-meta {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================================
   SHORTSTORY (Kategori/Arama listesi) — Dikey grid
   ============================================================ */
.shortstory-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .shortstory-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .shortstory-list { grid-template-columns: 1fr; }
}

.hc-image {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
}

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

.hc-content { flex: 1; min-width: 0; }

.hc-category a {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 5px;
}

.hc-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-title a { color: var(--text-primary); }
.hc-title a:hover { color: var(--accent-blue); }

.hc-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   FULLSTORY & ARTICLE LAYOUT
   ============================================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-top: 10px;
    align-items: start;
}

.article-main {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    min-width: 0;
    overflow: hidden;
    word-break: break-word;
}

.article-cover {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-tag {
    background: var(--accent-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meta-item {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.article-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.article-full-text {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-full-text img,
.article-full-text video,
.article-full-text iframe,
.article-full-text embed,
.article-full-text object {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 16px auto;
    display: block;
    box-sizing: border-box;
}

.article-full-text table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    display: block;
}

.article-full-text iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
}

.article-full-text p { margin-bottom: 16px; }

.article-full-text blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--accent-blue);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: italic;
    color: #4b5563;
}

.article-tags {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags a {
    background: #f3f4f6;
    color: var(--accent-blue);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.article-tags a:hover { background: var(--accent-blue-light); }

/* Yazar Kartı */
.article-author-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    margin: 32px 0 28px 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.author-role { font-size: 11px; color: #ef4444; font-weight: 600; }

.author-actions { display: flex; align-items: center; gap: 10px; }

/* Article summary & rating & extra blocks */
.article-summary {
    background: #f8fafc;
    border-left: 4px solid var(--accent-blue);
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-size: 14px;
    color: #4b5563;
}

.article-pages { margin: 20px 0; }

/* ============================================================
   ETKİLEŞİM & REAKSİYON BARI (Seçenek 2)
   ============================================================ */
.article-feedback-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    margin: 26px 0;
    flex-wrap: wrap;
}

.feedback-emotes, .feedback-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feedback-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feedback-emotes .reaction-wrap {
    display: inline-block;
    margin: 0;
    position: relative;
}

.feedback-emotes .reaction-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    flex-wrap: wrap;
}

/* Sol Ekleme Butonu (Kaynak: .reactions-select > i) */
.feedback-emotes .rb-add {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    width: 36px;
    height: 30px;
    line-height: 30px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    z-index: 2;
}
.feedback-emotes .rb-add:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.feedback-emotes .plus-icon {
    position: absolute;
    top: 1px;
    right: 3px;
    font-size: 9px;
    color: var(--text-muted, #64748b);
    font-weight: 700;
    line-height: 1;
}

/* Emoji Butonları (Kaynak: #reactions > span) */
.feedback-emotes .rb-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    width: auto;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    z-index: 2;
}
.feedback-emotes .rb-chip:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.feedback-emotes .rb-chip.active {
    background: #ffffff !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 1px var(--accent-blue);
}
.feedback-emotes .rb-chip.active .chip-count {
    color: var(--accent-blue);
    font-weight: 700;
}

.feedback-emotes .chip-icon {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}
.feedback-emotes .chip-count {
    font-size: 13px;
    color: var(--text-primary, #111827);
    font-weight: 600;
    line-height: 30px;
}

/* Popup Picker */
.feedback-emotes .reaction-picker {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: none;
    gap: 6px;
    z-index: 999;
}
.feedback-emotes .reaction-picker.show { display: flex; }
.feedback-emotes .rp-item {
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.15s;
    padding: 2px 4px;
}
.feedback-emotes .rp-item:hover {
    transform: scale(1.25) translateY(-3px);
}

/* Sağ Taraf Standart Rating Kutusu */
.feedback-rating .article-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.feedback-rating .article-rating-box .unit-rating { flex-shrink: 0; }
.feedback-rating .article-rating-box strong { font-size: 13px; color: var(--text-primary); }
.feedback-rating .rating-vote-btn { cursor: pointer; font-weight: 600; color: var(--accent-blue); line-height: 1; }
.feedback-rating .rating-like { color: #10b981; font-weight: 700; }
.feedback-rating .rating-dislike { color: #ef4444; font-weight: 700; }

@media (max-width: 640px) {
    .article-feedback-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
    .feedback-emotes, .feedback-rating { width: 100%; justify-content: flex-start; }
}

.article-edit-info {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}
.article-edit-reason { margin-left: 8px; color: #ef4444; }

.article-poll { margin: 20px 0; }

/* ============================================================
   ÖNCEKİ / SONRAKİ NAVİGASYON
   ============================================================ */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 36px 0;
}
.article-nav-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.article-nav-item:hover {
    background: var(--accent-blue-light);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}
.article-nav-next { text-align: right; }
.article-nav-label { font-size: 11px; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.05em; }
.article-nav-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ============================================================
   BENZER HABERLER (Sona Doğru Blur Çizgi Başlık)
   ============================================================ */
.article-related {
    margin: 36px 0;
    padding-top: 28px;
    position: relative;
}

.article-related::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, rgba(2, 132, 199, 0.45) 35%, rgba(2, 132, 199, 0.08) 75%, transparent 100%);
    filter: blur(0.3px);
}

.article-related-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.article-related-grid .related-news-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.article-related-grid .related-news-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.article-related-grid .related-thumb-link {
    width: 100%;
    height: 120px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: block;
    background: #f1f5f9;
}

.article-related-grid .related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-related-grid .related-news-item:hover .related-thumb {
    transform: scale(1.05);
}

.article-related-grid .related-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-related-grid .related-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-related-grid .related-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    margin: 2px 0 4px 0;
}

.article-related-grid .related-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-related-grid .related-title a:hover {
    color: var(--accent-blue);
}

.article-related-grid .related-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   YORUMLAR BÖLÜMÜ (Sona Doğru Blur Çizgi Başlık)
   ============================================================ */
.comments-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: none;
    position: relative;
}

.comments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, rgba(2, 132, 199, 0.45) 35%, rgba(2, 132, 199, 0.08) 75%, transparent 100%);
    filter: blur(0.3px);
}

.comments-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 640px) {
    .article-navigation { grid-template-columns: 1fr; }
    .article-nav-next { text-align: left; }
    .article-related-grid { grid-template-columns: 1fr; }
}

.btn-fav {
    background: #fff;
    border: 1px solid #e5e7eb;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fav svg { width: 16px; height: 16px; fill: var(--text-muted); }

.btn-complaint:hover { border-color: #ef4444; }
.btn-complaint:hover svg { fill: #ef4444; }

.share-wrapper {
    position: relative;
    display: inline-block;
}

.btn-share {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-share:hover { background: #f3f4f6; color: var(--accent-blue); }

.btn-share svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.share-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    padding: 6px;
    z-index: 9999;
    flex-direction: column;
    gap: 2px;
}

.share-popover.is-visible {
    display: flex !important;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.share-item:hover {
    background: #f0f9ff;
    color: var(--accent-blue);
}

.share-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.share-wa svg { fill: #25D366; }
.share-tg svg { fill: #0088cc; }
.share-tw svg { fill: #000000; }
.share-fb svg { fill: #1877F2; }
.share-copy svg { fill: #6b7280; }

.comment-card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.comment-mass { flex-shrink: 0; }
.comment-mass:empty { display: none; }
.comment-mass input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

.comment-avatar-box { position: relative; flex-shrink: 0; }
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    display: block;
    background: #f3f4f6;
}

.comment-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.comment-dot-online { background: #10b981; }

.comment-user-meta { min-width: 0; }

.comment-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.comment-author { font-weight: 700; font-size: 14px; }
.comment-author a { color: var(--text-primary); text-decoration: none; }
.comment-author a:hover { color: var(--accent-blue); }

.comment-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 999px;
}
.comment-badge-author {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.comment-group {
    font-size: 10px;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.comment-group img { width: 14px; height: 14px; }

.comment-sub-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
    flex-wrap: wrap;
}
.comment-date { font-size: 11px; color: var(--text-muted); }
.comment-fullname { font-size: 11px; color: #ef4444; font-weight: 600; }
.comment-land { font-size: 11px; color: var(--text-muted); }

.comment-head-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.comment-rating { display: flex; align-items: center; gap: 6px; }
.comment-rating a { text-decoration: none; color: inherit; }

.comment-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
}
.comment-rating-num {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 16px;
    text-align: center;
}
.comment-vote { cursor: pointer; font-size: 12px; font-weight: 700; }
.comment-vote-up { color: #10b981; }
.comment-vote-down { color: #ef4444; }
.comment-rating-stars { font-size: 12px; color: var(--accent-blue); }

.comment-id { font-size: 11px; color: var(--text-muted); font-weight: 700; }

.comment-body {
    margin-top: 12px;
    padding-left: 50px;
}

.comment-news-link { margin-bottom: 8px; }
.comment-news-link a {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
}
.comment-news-link a:hover { text-decoration: underline; }

.comment-images { margin-bottom: 10px; }

.comment-text {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    word-break: break-word;
    overflow-wrap: break-word;
}

.comment-signature {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    padding-left: 50px;
    flex-wrap: wrap;
}

.comment-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}
.comment-action a { color: inherit; text-decoration: none; }
.comment-action:hover { color: var(--accent-blue); }
.comment-action svg { width: 14px; height: 14px; fill: currentColor; }

.comment-reply-count { color: var(--accent-blue); }
.comment-is-reply { color: #a78bfa; font-weight: 700; }
.comment-action-report:hover { color: #ef4444; }
.comment-action-spam { color: #f59e0b; }
.comment-action-spam:hover { color: #d97706; }
.comment-action-del:hover { color: #ef4444; }

.comment-foot-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.comment-ip {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Consolas', monospace;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .comment-body { padding-left: 0; }
    .comment-foot { padding-left: 0; }
    .comment-head-side { width: 100%; justify-content: space-between; }
    .comment-foot-right { margin-left: 0; width: 100%; justify-content: flex-start; }
}

/* ============================================================
   ADD COMMENT FORM (addcomments.tpl)
   ============================================================ */
.add-comment-box {
    background: #f8fafc;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin: 20px 0 36px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.add-comment-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue-light);
}

.btn-submit-comment,
.add-comment-box button[type="submit"],
.add-comment-box input[type="submit"] {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    font-family: var(--font-family);
}

.btn-submit-comment:hover,
.add-comment-box button[type="submit"]:hover,
.add-comment-box input[type="submit"]:hover {
    background: #0369a1;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-submit-comment:active,
.add-comment-box button[type="submit"]:active,
.add-comment-box input[type="submit"]:active {
    transform: scale(0.98);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 18px;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.widget-icon { width: 18px; height: 18px; fill: var(--accent-blue); }

.widget-header h3 { font-size: 15px; font-weight: 700; }

.widget-content { display: flex; flex-direction: column; gap: 12px; }

/* Last Comments Widget */
.last-comments-widget { gap: 0; }
.last-comment-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.last-comment-item:last-child { border-bottom: 0; padding-bottom: 0; }
.last-comment-inner { display: flex; gap: 10px; align-items: flex-start; }
.last-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}
.last-comment-body { flex: 1; min-width: 0; }
.last-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}
.last-comment-author { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.last-comment-time { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.last-comment-snippet {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.last-comment-news {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--accent-blue);
    overflow: hidden;
}
.last-comment-news svg { flex-shrink: 0; fill: var(--accent-blue); }
.last-comment-news span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-item-card { display: flex; align-items: center; gap: 10px; }

.sidebar-item-thumb {
    width: 65px;
    height: 50px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
}

.sidebar-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-item-info { flex: 1; min-width: 0; }

.sidebar-item-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin: 3px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-item-title a { color: var(--text-primary); }
.sidebar-item-title a:hover { color: var(--accent-blue); }
.sidebar-item-meta { font-size: 10px; color: var(--text-muted); }

/* ============================================================
   PROFIL
   ============================================================ */
.profile-header-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-cover-placeholder {
    height: 120px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

.profile-info-bar {
    padding: 0 24px 24px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    position: relative;
}

.profile-avatar-wrapper { margin-top: -40px; }

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    object-fit: cover;
}

.profile-details { flex-grow: 1; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-email { font-size: 13px; color: var(--text-muted); }

.profile-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
}

/* ============================================================
   AUTH & LOGIN DROPDOWN
   ============================================================ */
.user-auth-wrapper {
    position: relative;
    display: inline-block;
}

.auth-trigger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.auth-dropdown-popover {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 290px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-md);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: 16px;
}

.auth-dropdown-popover.is-visible {
    display: block !important;
}

.auth-box { background: transparent; border: none; padding: 0; margin: 0; }

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 12px;
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info-text { display: flex; flex-direction: column; }
.user-display-name { font-weight: 700; font-size: 14px; color: var(--text-primary); text-decoration: none; }
.user-group-badge { font-size: 11px; color: var(--accent-blue); font-weight: 600; }

.user-menu-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.user-menu-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 7px;
    transition: background 0.15s;
}

.user-menu-list a:hover { background: var(--bg-main); color: var(--accent-blue); }

.pm-counter-badge {
    margin-left: auto;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
}

.user-logout-wrap { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f3f4f6; }

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 7px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-logout:hover { background: #fee2e2; }

/* Auth Form (Guest) */
.auth-form-header h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

.form-group { margin-bottom: 10px; }

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-family);
}

.form-group input:focus { border-color: var(--accent-blue); }

.form-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.lost-pass-link { color: var(--accent-blue); text-decoration: none; font-size: 11px; }

.btn-login-submit {
    width: 100%;
    padding: 9px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    font-family: var(--font-family);
}

.btn-login-submit:hover { background: #0369a1; }

.form-footer-register { margin-top: 10px; text-align: center; font-size: 11px; color: var(--text-muted); }
.form-footer-register a { color: var(--accent-blue); text-decoration: none; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-wrap {
    background: #111827;
    color: #9ca3af;
    padding: 36px 0 20px;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover { color: #e5e7eb; }

.footer-socials { display: flex; gap: 12px; align-items: center; }

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1f2937;
    transition: background 0.2s;
}

.footer-socials a:hover { background: var(--accent-blue); }

.footer-socials svg { width: 16px; height: 16px; fill: #9ca3af; }
.footer-socials a:hover svg { fill: #fff; }

.footer-copyright {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.created-by a { color: #e5e7eb; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.created-by a:hover { color: var(--accent-blue); }

/* ============================================================
   INFO / NAVIGATION (DLE sayfalama)
   ============================================================ */
.navigation, .dle-page-navigation {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 10px;
    flex-wrap: wrap;
}

.navigation a, .navigation span,
.dle-page-navigation a, .dle-page-navigation span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
    transition: background 0.2s, color 0.2s;
}

.navigation a:hover,
.dle-page-navigation a:hover { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

.navigation .current_page, .navigation .selected,
.dle-page-navigation .current_page, .dle-page-navigation .selected {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

/* Pagination (navigation.tpl) */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 28px 0 10px;
    flex-wrap: wrap;
}

.pages-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pages-list a, .pages-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
    transition: background 0.2s, color 0.2s;
}

.pages-list a:hover { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

.pages-list span,
.pages-list .current_page,
.pages-list .selected {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.page-link a { color: inherit; text-decoration: none; }
.page-link:hover { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.prev-btn, .next-btn { color: var(--text-muted); }

/* ============================================================
   [not-available] — Kategori / Detay sayfası içerik alanı
   ============================================================ */
.content-page {
    padding: 10px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side-list { flex-direction: row; flex-wrap: wrap; }
    .mini-card { min-width: 240px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .grid-actual { grid-template-columns: repeat(2, 1fr); }
    .grid-actual .grid-card:first-child { grid-column: span 2; grid-row: span 1; }
    .grid-actual .grid-card:first-child .card-thumb { min-height: 240px; }
    .list-horizontal-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .main-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .slider-card { min-height: 280px; }
    .grid-actual,
    .categories-grid,
    .list-horizontal-grid,
    .profile-news-grid { grid-template-columns: 1fr; }
    .grid-actual .grid-card:first-child { grid-column: span 1; }
    .grid-actual .grid-card:first-child .card-thumb { min-height: 200px; }
    .article-main { padding: 16px; }
    .article-title { font-size: 20px; }
    .article-cover { height: 220px; }
    .article-author-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .author-actions { width: 100%; justify-content: space-between; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-copyright { flex-direction: column; gap: 6px; }
    .auth-dropdown-popover { right: -8px; width: 270px; }
    .section-title { font-size: 18px; }
}

/* ============================================================
   FORM PAGES (registration, lostpassword, feedback, addnews)
   ============================================================ */
.form-card-box {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    margin: 40px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.form-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-input, .form-textarea {
    background: var(--bg-main);
    border: 1.5px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: border-color 0.2s;
    width: 100%;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent-blue); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-input-file { font-size: 13px; color: var(--text-muted); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-code-wrap .sec-code-flex { display: flex; align-items: center; gap: 10px; }
.sec-input { max-width: 140px; }
.form-submit-row { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.btn-primary-form {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary-form:hover { background: #0369a1; }
.btn-secondary-form {
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1.5px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.search-extended-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   BANNED / OFFLINE PAGES
   ============================================================ */
.banned-box, .offline-box {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 48px 36px;
    text-align: center;
    max-width: 540px;
    margin: 60px auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.banned-icon, .offline-icon { width: 64px; height: 64px; margin: 0 auto 20px; color: #ef4444; }
.offline-icon { color: var(--accent-blue); }
.banned-icon svg, .offline-icon svg { width: 100%; height: 100%; }
.banned-title, .offline-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.banned-reason, .offline-reason { color: var(--text-muted); font-size: 15px; margin-bottom: 10px; }
.banned-by, .banned-end { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   STATS PAGE
   ============================================================ */
.stats-page-box { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 36px; margin: 32px 0; }
.stats-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-item { background: var(--bg-main); border-radius: var(--border-radius-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent-blue); }
.stats-period-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-period { background: var(--bg-main); border-radius: var(--border-radius-md); padding: 16px 20px; }
.stat-period h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--accent-blue); }
.stat-period p { font-size: 13px; color: var(--text-muted); margin: 2px 0; }
.top-authors-box { margin-top: 16px; }
.top-authors-box h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }

/* Top Users Table (stats.tpl) */
table.userstop { width: 100%; border-collapse: collapse; }
table.userstop td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: var(--text-primary);
}
table.userstop thead td {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--bg-main);
}
table.userstop tbody tr:last-child td { border-bottom: none; }
table.userstop tbody tr:hover { background: #f9fafb; }
table.userstop td a { color: var(--accent-blue); font-weight: 600; }

/* ============================================================
   STATIC PAGE
   ============================================================ */
.static-page-box { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 36px; margin: 32px 0; }
.static-page-content { font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
.static-page-content img, .static-page-content video, .static-page-content iframe, .static-page-content table { max-width: 100% !important; }
.static-page-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.static-print-link { color: var(--accent-blue); }
.static-edit-link { color: var(--accent-blue); font-size: 13px; }

/* ============================================================
   ATTACHMENT
   ============================================================ */
.attachment-item { display: flex; align-items: center; gap: 14px; background: var(--bg-main); border-radius: var(--border-radius-md); padding: 14px 18px; margin-bottom: 10px; }
.attachment-icon { width: 32px; height: 32px; color: var(--accent-blue); flex-shrink: 0; }
.attachment-icon svg { width: 100%; height: 100%; }
.attachment-name { font-weight: 600; color: var(--accent-blue); font-size: 14px; }
.attachment-ext, .attachment-size, .attachment-count, .attachment-date { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.attachment-view-btn { margin-left: auto; background: var(--accent-blue); color: #fff; border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 600; }
.attachment-locked { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); padding: 10px 0; }
.attachment-locked svg { width: 18px; height: 18px; color: #ef4444; }

/* ============================================================
   PM (Private Messages)
   ============================================================ */
.pm-page { margin: 32px 0; }
.pm-nav-bar { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 16px 24px; margin-bottom: 20px; flex-wrap: wrap; }
.pm-nav-btn { display: flex; align-items: center; gap: 6px; background: var(--bg-main); border-radius: var(--border-radius-sm); padding: 8px 16px; font-size: 13px; font-weight: 600; transition: background 0.2s; cursor: pointer; }
.pm-nav-btn a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.pm-nav-btn svg { width: 16px; height: 16px; }
.pm-nav-btn:hover, .pm-compose-btn { background: var(--accent-blue); color: #fff; }
.pm-storage-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; min-width: 80px; overflow: hidden; }
.pm-storage-fill { height: 100%; background: var(--accent-blue); border-radius: 3px; }
.pm-storage-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.pm-list-section, .pm-compose-section, .pm-read-section { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 28px; }
.pm-section-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.pm-thread-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #e5e7eb; }
.pm-thread-subject { font-size: 18px; font-weight: 700; }
.pm-message-item { display: flex; gap: 14px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f3f4f6; }
.pm-message-avatar { position: relative; flex-shrink: 0; }
.pm-avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pm-online-dot { position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px; background: #10b981; border-radius: 50%; border: 2px solid #fff; }
.pm-message-body { flex: 1; min-width: 0; }
.pm-message-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pm-message-author { font-size: 14px; font-weight: 700; color: var(--accent-blue); }
.pm-message-group { font-size: 12px; color: var(--text-muted); }
.pm-message-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.pm-message-text { font-size: 14px; line-height: 1.65; }
.pm-message-sig { font-size: 12px; color: var(--text-muted); border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 6px; font-style: italic; }
.pm-message-actions { display: flex; gap: 10px; margin-top: 8px; }
.pm-action-link { font-size: 12px; color: var(--accent-blue); cursor: pointer; }
.pm-action-link a { color: inherit; text-decoration: none; }
.pm-delete-link { color: #ef4444; }
.pm-report-link, .pm-ignore-link { color: var(--text-muted); }
.pm-reply-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.pm-reply-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

/* PM Mesaj Listesi Tablosu ({pmlist}) */
table.pm, table.userstop { width: 100%; border-collapse: collapse; }
table.pm th {
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 10px 14px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
table.pm th.pm_checkbox { text-align: center; }
table.pm td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: var(--text-primary);
    vertical-align: middle;
}
table.pm tbody > tr:hover { background: #f9fafb; }
table.pm tbody > tr:last-child td { border-bottom: none; }
table.pm td a { color: var(--accent-blue); font-weight: 600; text-decoration: none; }
table.pm td a:hover { text-decoration: underline; }

.pm_list.pm_subj, .pm_list.pm_icon, .pm_list.pm_last_user { cursor: pointer; }
.pm_list.pm_icon svg { width: 1.3rem; height: 1.3rem; vertical-align: middle; }
.pm_list.pm_icon.pm-unread-image { color: var(--accent-blue); }
.pm_list.pm_icon.pm-reply-image { color: #10b981; }
.pm_list.pm_icon.pm-read-image { color: #9ca3af; }
.pm_list .pm_last_message, .pm_list .pm_last_date, .pm_list .pm_with_user {
    color: var(--text-muted);
    font-size: 12px;
}

.pm_navigation { margin-top: 16px; }
.pm_navigation .navigation { display: inline-flex; gap: 6px; background: var(--bg-main); border-radius: 8px; padding: 4px; }
.pm_navigation .navigation a, .pm_navigation .navigation span {
    padding: 6px 12px;
    min-width: 34px;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
}
.pm_navigation .navigation span { background: var(--accent-blue); color: #fff; }
.pm_navigation .navigation a:hover { background: #e5e7eb; }

/* ============================================================
   PROFILE POPUP CARD
   ============================================================ */
.profile-popup-card { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 28px; max-width: 360px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid #e5e7eb; }
.pp-avatar-wrap { position: relative; width: 72px; margin: 0 auto 16px; }
.pp-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-blue); }
.pp-online-badge, .pp-offline-badge { position: absolute; bottom: 0; right: 0; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.pp-online-badge { background: #10b981; color: #fff; }
.pp-offline-badge { background: #6b7280; color: #fff; }
.pp-user-info { text-align: center; }
.pp-username { font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 4px; }
.pp-fullname { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.pp-land { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.pp-info { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.pp-stats-row { display: flex; justify-content: center; gap: 16px; margin: 8px 0; }
.pp-stat { font-size: 12px; color: var(--text-muted); }
.pp-stat strong { color: var(--text-primary); font-weight: 700; }
.pp-rating, .pp-comm-rating { font-size: 12px; color: var(--text-muted); margin: 3px 0; }
.pp-dates { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--text-muted); margin: 10px 0; }
.pp-banned-info { background: #fef2f2; border-radius: 8px; padding: 10px; margin-top: 8px; }
.pp-banned-label { font-size: 12px; font-weight: 700; color: #ef4444; display: block; }
.pp-banned-reason, .pp-banned-until { font-size: 11px; color: #b91c1c; display: block; }
.pp-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.pp-action-btn { background: var(--bg-main); border-radius: 6px; padding: 7px 14px; font-size: 12px; font-weight: 600; transition: background 0.2s; }
.pp-action-btn:hover { background: var(--accent-blue); color: #fff; }
.pp-ignore-btn:hover { background: #ef4444; color: #fff; }
.pp-signature { font-size: 11px; color: var(--text-muted); border-top: 1px solid #e5e7eb; margin-top: 14px; padding-top: 10px; font-style: italic; }

/* ============================================================
   POLL / VOTE
   ============================================================ */
.poll-box, .vote-widget-box { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 24px; margin: 20px 0; border: 1px solid #e5e7eb; }
.poll-title, .vote-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.poll-question { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.poll-options, .vote-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.btn-poll-vote { background: var(--accent-blue); color: #fff; border: none; border-radius: var(--border-radius-sm); padding: 9px 22px; font-size: 13px; font-weight: 600; cursor: pointer; }
.poll-close-date, .poll-total, .vote-total { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.poll-closed { opacity: 0.7; }

/* ============================================================
   TAGS CLOUD
   ============================================================ */
.tags-cloud-box { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 24px; margin: 20px 0; }
.tags-cloud-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-cloud-list a { background: var(--accent-blue-light); color: var(--accent-blue); border-radius: 20px; padding: 4px 14px; font-size: 13px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.tags-cloud-list a:hover { background: var(--accent-blue); color: #fff; }

/* ============================================================
   TOP NEWS / RELATED NEWS
   ============================================================ */
.topnews-item, .related-news-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.topnews-item:last-child, .related-news-item:last-child { border-bottom: none; }
.topnews-thumb-link, .related-thumb-link { flex-shrink: 0; }
.topnews-thumb, .related-thumb { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.topnews-info, .related-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.topnews-cat, .related-cat { font-size: 11px; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; }
.topnews-title, .related-title { font-size: 13px; font-weight: 600; margin: 0; line-height: 1.4; }
.topnews-title a:hover, .related-title a:hover { color: var(--accent-blue); }
.topnews-meta, .related-date { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   FAST SEARCH RESULT
   ============================================================ */
.fastsearch-item { border-bottom: 1px solid #f3f4f6; }
.fastsearch-item:last-child { border-bottom: none; }
.fastsearch-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; transition: background 0.15s; text-decoration: none; }
.fastsearch-link:hover { background: #f8fafc; }
.fastsearch-thumb-wrap { width: 48px; height: 38px; flex-shrink: 0; overflow: hidden; border-radius: 6px; }
.fastsearch-thumb { width: 100%; height: 100%; object-fit: cover; }
.fastsearch-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fastsearch-cat { font-size: 10px; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.03em; }
.fastsearch-title { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fastsearch-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.fastsearch-dot { font-size: 10px; color: #cbd5e1; }

/* ============================================================
   SEARCH PAGE & RESULTS
   ============================================================ */
.search-page-box { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 36px; margin: 32px 0; }
.search-page-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.search-result-msg { margin-top: 20px; padding: 14px 18px; background: var(--accent-blue-light); border-radius: var(--border-radius-sm); color: var(--accent-blue); font-size: 14px; font-weight: 600; }

.search-result-post { margin-bottom: 20px; }
.search-result-title-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-main);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    font-size: 14px;
}
.search-result-date { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.search-result-cat { font-size: 12px; color: var(--accent-blue); font-weight: 700; }
.search-result-link { color: var(--text-primary); font-weight: 600; }
.search-result-link:hover { color: var(--accent-blue); }

.search-result-comment-item {
    background: var(--bg-main);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    margin-bottom: 12px;
}
.src-comment-head { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.src-comment-head strong { color: var(--accent-blue); }
.src-comment-head a { color: var(--text-primary); font-weight: 600; }
.src-comment-body { font-size: 14px; line-height: 1.6; color: var(--text-primary); }

/* ============================================================
   PREVIEW PAGE
   ============================================================ */
.preview-box { background: var(--bg-card); border-radius: var(--border-radius-lg); padding: 32px; margin: 24px 0; border: 2px dashed var(--accent-blue); }
.preview-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 16px; letter-spacing: 0.08em; }
.preview-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--border-radius-md); margin-bottom: 16px; }
.preview-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.preview-short-text, .preview-full-text { font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.preview-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); }

/* ============================================================
   USERINFO PAGE
   ============================================================ */
.userinfo-page { margin: 32px 0; padding: 0 16px; }

/* Profil Header */
.ui-profile-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.ui-avatar-wrap { position: relative; flex-shrink: 0; }
.ui-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
}
.ui-status-badge {
    position: absolute;
    bottom: 4px; right: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    border: 2px solid #fff;
}
.ui-online { background: #10b981; color: #fff; }
.ui-offline { background: #9ca3af; color: #fff; }
.ui-header-info { flex: 1; min-width: 0; }
.ui-username {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    line-height: 1.2;
}
.ui-uid {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-main);
    padding: 2px 8px;
    border-radius: 10px;
}
.ui-status { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.ui-time-limit { font-size: 12px; color: #f59e0b; margin-bottom: 8px; }
.ui-banned-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #b91c1c;
    flex-wrap: wrap;
}
.ui-banned-icon { font-size: 16px; }
.ui-banned-until { margin-left: auto; font-weight: 700; font-size: 12px; }
.ui-header-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ui-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1.5px solid #e5e7eb;
}
.ui-action-btn svg { width: 15px; height: 15px; }
.ui-action-btn a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ui-pm-btn { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.ui-pm-btn:hover { background: #0369a1; }
.ui-email-btn:hover, .ui-edit-btn:hover { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.ui-ignore-btn:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.ui-rss-btn { color: #f97316; border-color: #f97316; }
.ui-rss-btn:hover { background: #f97316; color: #fff; }

/* Layout */
.ui-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}
.ui-sidebar { display: flex; flex-direction: column; gap: 18px; }
.ui-main { display: flex; flex-direction: column; gap: 18px; }

/* Kart */
.ui-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.ui-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue-light);
}

/* İstatistik Listesi */
.ui-stats-list { display: flex; flex-direction: column; gap: 8px; }
.ui-stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ui-stat-label { color: var(--text-muted); }
.ui-stat-val { font-weight: 700; color: var(--text-primary); }
.ui-stat-val a { color: var(--accent-blue); }

/* Rating */
.ui-rating-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.ui-rating-row strong { color: var(--accent-blue); font-size: 16px; }

/* Detaylar */
.ui-detail-row { font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
.ui-detail-label { font-weight: 600; color: var(--text-muted); }
.ui-info-text { color: var(--text-primary); line-height: 1.7; }
.ui-no-content { font-size: 13px; color: var(--text-muted); font-style: italic; }
.ui-signature {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}
.ui-sig-label { font-weight: 700; font-style: normal; display: block; margin-bottom: 4px; }

/* Form Sections */
.ui-form-section { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #f3f4f6; }
.ui-form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ui-form-section-title { font-size: 14px; font-weight: 700; color: var(--accent-blue); margin-bottom: 14px; }
.ui-avatar-edit-row { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.ui-avatar-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-blue); flex-shrink: 0; }
.ui-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 6px;
    color: var(--text-primary);
}

/* Sosyal Medya */
.ui-social-links { display: flex; flex-direction: column; gap: 10px; }
.ui-social-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-main);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
}
.ui-social-linked { border-left: 3px solid #10b981; }
.ui-social-name { font-weight: 600; }
.ui-social-detach { font-size: 12px; color: #ef4444; font-weight: 600; cursor: pointer; }
.ui-social-detach a { color: inherit; text-decoration: none; }
.ui-social-detach:hover { text-decoration: underline; }
.ui-social-list { margin-top: 12px; font-size: 13px; color: var(--text-muted); }

/* Hesabı Sil */
.ui-delete-profile-btn {
    font-size: 13px;
    color: #ef4444;
    border: 1.5px solid #ef4444;
    border-radius: var(--border-radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s;
}
.ui-delete-profile-btn:hover { background: #ef4444; color: #fff; }

/* Yoksay Listesi */
.ui-ignore-list { font-size: 13px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
    .ui-profile-header { flex-direction: column; align-items: center; text-align: center; }
    .ui-header-actions { justify-content: center; }
    .ui-layout { grid-template-columns: 1fr; }
    .ui-username { justify-content: center; }
    .form-row-2 { grid-template-columns: 1fr; }
    .ui-avatar { width: 84px; height: 84px; }
    .ui-avatar-edit-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ui-social-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ui-action-btn { padding: 8px 14px; font-size: 12px; }
    .ui-header-actions { gap: 8px; }
}

/* ============================================================
   YUKARI ÇIK BUTONU (back-to-top)
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    z-index: 2000;
}

.back-to-top svg { width: 22px; height: 22px; fill: #fff; }
.back-to-top:hover { background: #0369a1; }

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
