/* Premium Tasarım Entegrasyonu */
:root {
   --primary: #6366f1;
   --primary-dark: #4f46e5;
   --bg: #f8fafc;
   --card-bg: #ffffff;
   --text-main: #0f172a;
   --text-muted: #64748b;
   --border: #e2e8f0;
   --radius: 16px;
   --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
   --line-gradient: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
   --input-bg: #f1f5f9; 
   /* Yeni Eklenen Premium Değişkenler */
   --premium-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
   --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
   /* özel renkler */
   --accent-red: #b21f1f;
   --accent-yellow: #fdbb2d;
   --accent-darkblue: #1a2a6c;
   --ramadan-gradient: linear-gradient(135deg, var(--accent-darkblue), var(--accent-red), var(--accent-yellow));
   --accent-pink: #ec4899;
   --msg-my-bg: linear-gradient(135deg, #6366f1, #a855f7);
   --online-green: #22c55e;
   --danger: #ef4444;
   --success: #10b981;
   --warning: #f59e0b;
   --header-bg: var(--card-bg);
}

/* Mobil: sohbet butonunda sadece metni ve rozetleri gizle, ikonu koru */
@media (max-width: 768px) {
    .header-msg-btn {
        display: inline-flex; /* keep layout but hide children */
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 6px;
    }
    /* Badge'leri göstermek isteyebilirsiniz; metinleri footer temasıyla göstermek için gizleme kaldırıldı */
    /* İkon görünür kalsın */
    .header-msg-btn .fa-comments {
        display: inline-block !important;
        font-size: 1.05rem;
    }

    /* Mobilde sadece tema değiştirme butonunu gizle */
    #themeToggleBtn {
        display: none !important;
    }
}

body { 
    background: var(--bg); 
    color: var(--text-main); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* Floating theme button - hidden by default, shown on mobile */
.floating-theme-btn { display: none; }
.community-join-btn,
.community-detail-join-btn {
    position: relative;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.community-join-btn:hover,
.community-detail-join-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.community-join-btn:active,
.community-detail-join-btn:active {
    transform: translateY(1px) scale(0.98);
    filter: brightness(0.96);
}
.community-join-btn[data-joined="true"],
.community-detail-join-btn[data-joined="true"] {
    outline: 2px solid rgba(16, 185, 129, 0.35);
    outline-offset: 1px;
}
.community-join-btn[disabled],
.community-detail-join-btn[disabled] {
    pointer-events: none;
}


/* Prevent horizontal overflow on mobile */
html, body { overflow-x: hidden; }

/* DARK MODE */
body.dark-mode {
  --bg:#0f172a;
  --card-bg:#1e293b;
  --text-main:#f8fafc;
  --text-muted:#94a3b8;
  --border:#334155;
  --shadow:0 4px 6px -1px rgba(0,0,0,.5);
  --input-bg:#0f172a;
}

/* Koyu modda dinamik olarak eklenen acik kartlar icin guvenli fallback */
body.dark-mode #main-content [style*="rgba(255,255,255"],
body.dark-mode .right-panel [style*="rgba(255,255,255"],
body.dark-mode #main-content [style*="background: #fff"],
body.dark-mode #main-content [style*="background:white"] {
        color: var(--text-main) !important;
        border-color: rgba(148,163,184,0.24) !important;
}

body.dark-mode #main-content [style*="linear-gradient(180deg, rgba(255,255,255"],
body.dark-mode #main-content [style*="linear-gradient(135deg, rgba(255,255,255"],
body.dark-mode .right-panel [style*="linear-gradient(180deg, rgba(255,255,255"],
body.dark-mode .right-panel [style*="linear-gradient(135deg, rgba(255,255,255"] {
        background: linear-gradient(180deg, rgba(30,41,59,0.9), rgba(15,23,42,0.92)) !important;
}
/* Karanlık Mod Ayarı */
@media (prefers-color-scheme: dark) {
  #postInput {
    background: #1e1e1e; /* İstediğin koyu tonu buraya yazabilirsin */
    color: #ffffff;
  }
}
.dark-mode #postInput {
  background: #1e293b; color:#fff
}

/* contenteditable "editor" style to mimic textarea and show placeholders */
#postInput[contenteditable],
#editPostInput[contenteditable] {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    outline: none;
    cursor: text;
}
#postInput[contenteditable]:empty:before,
#editPostInput[contenteditable]:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.announcement-feed {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

/* Stories row */
.stories-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 12px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-bottom: 12px;
}
.stories-row::-webkit-scrollbar { height: 8px; }
.story-card {
    min-width: 120px;
    width: 120px;
    height: 200px;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 8px 20px rgba(15,23,42,0.06);
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
}
.story-card .story-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.story-create {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    height: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(99,102,241,0.12), rgba(99,102,241,0.04));
    border: 1px solid rgba(99,102,241,0.08);
    box-shadow: 0 10px 28px rgba(15,23,42,0.06);
    position: relative;
}
.story-create .plus-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 22px rgba(99,102,241,0.24), 0 2px 0 rgba(255,255,255,0.06) inset;
    border: 3px solid rgba(255,255,255,0.6);
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.story-create .plus-btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 28px rgba(99,102,241,0.28); }
.story-label { text-align:center; font-size:0.95rem; color:var(--text-main); font-weight:800; }
.story-small-avatar { position:absolute; left:8px; top:8px; width:44px; height:44px; border-radius:50%; border:3px solid #8b5cf6; box-shadow:0 6px 16px rgba(15,23,42,0.08); overflow:hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.story-small-avatar.seen { border-color: #ffffff; }
.story-small-avatar.unseen { border-color: #8b5cf6; }
.story-count-badge { position:absolute; top:12px; left:60px; right:8px; min-width:50px; padding:4px 8px; border-radius:999px; background: rgba(0,0,0,0.6); color:#fff; font-size:0.75rem; font-weight:700; text-align:center; line-height:1.2; white-space:nowrap; }
.story-text-overlay { position:absolute; left:8px; right:8px; bottom:12px; color:#fff; font-weight:800; font-size:0.95rem; text-shadow:0 2px 8px rgba(0,0,0,0.5); }
.story-card .overlay-gradient { position:absolute; inset:0; background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.48)); pointer-events:none; }
.story-text-cover { display:flex; align-items:center; justify-content:center; min-height:100%; padding:16px; text-align:center; color:#fff; font-weight:700; font-size:0.95rem; background: linear-gradient(180deg, rgba(20,23,78,0.92), rgba(31,41,55,0.92)); }
.story-viewer-text { display:flex; align-items:center; justify-content:center; padding:20px; width:100%; min-height:320px; color: var(--text-main); font-size:1rem; text-align:center; background: rgba(255,255,255,0.95); border-radius:12px; }

@media (max-width:600px) {
    .story-card { min-width:100px; height:180px; }
}

/* Viewer title under avatar and above countdown */
.story-viewer-top .who { font-weight:700; font-size:1rem; color: var(--text-main); }
.story-viewer-top .label { display:none; }
.story-viewer-footer-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 0 10px 0; margin-bottom:8px; }
.story-title-actions { display:flex; align-items:center; gap:8px; min-width:0; }
.story-viewer-title { font-weight:700; color: var(--text-main); font-size:1rem; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.story-edit-btn { border: none; background: rgba(99,102,241,0.12); color: var(--text-main); width:34px; height:34px; border-radius:12px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition: background 0.2s ease, transform 0.2s ease; }
.story-edit-btn:hover { background: rgba(99,102,241,0.18); transform: translateY(-1px); }
.story-viewer-user { display:none; }
.story-viewer-countdown { font-size:0.78rem; color: rgba(148,163,184,0.85); line-height:1.4; flex:1; text-align:center; min-width:160px; }
.story-viewer-time { font-size:0.85rem; color: rgba(148,163,184,0.95); white-space:nowrap; flex-shrink:0; }

/* Empty state when no stories exist */
.story-empty {
    min-width: 240px;
    padding: 18px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(250,250,250,0.98), rgba(245,245,246,0.95));
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15,23,42,0.04);
    flex: 0 0 auto;
}
.story-empty-inner { font-size: 0.95rem; }

/* Story upload modal */
.story-upload-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 4200;
}
.story-upload-modal-inner {
    width: 420px;
    max-width: calc(100% - 40px);
    background: var(--card-bg);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.story-upload-modal-inner h3 { margin:0 0 6px; }

/* delete button on story card */
.story-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    cursor: pointer;
}
.story-delete-btn i { font-size:0.9rem; }

/* viewer slideshow styles */
.story-viewer { width:min(92vw, 880px); height:min(82vh, 740px); display:flex; flex-direction:column; border-radius:16px; overflow:hidden; box-shadow:var(--glass-shadow); background:transparent; margin-top:28px; }
.story-viewer .inner-card { background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,247,250,0.95)); display:flex; flex-direction:column; min-height:320px; }
.story-viewer-top { position:relative; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--text-main); background: var(--card-bg); backdrop-filter: blur(6px); z-index:70; box-shadow: 0 6px 20px rgba(15,23,42,0.08); border-bottom: 1px solid rgba(226,232,240,0.95); }
.story-viewer-top .meta { display:flex; gap:12px; align-items:center; }
.story-viewer-top img { width:44px; height:44px; border-radius:50%; object-fit:cover; border:1px solid rgba(148,163,184,0.24); box-shadow:0 4px 12px rgba(15,23,42,0.12); }
.story-viewer-top .who { font-weight:700; font-size:1rem; color: var(--text-main); }
.story-viewer-top .label { font-size:0.9rem; color: var(--text-muted); margin-top:2px; }
.story-viewer-progress { position:absolute; left:18px; right:18px; top:10px; display:flex; gap:6px; z-index:80; }
.story-viewer-progress .seg { flex:1; height:5px; background:rgba(15,23,42,0.08); border-radius:999px; overflow:hidden; }
.story-viewer-progress .seg .fill { width:0%; height:100%; background:linear-gradient(90deg,var(--primary),#8b5cf6); transition:width 5s linear; }
.story-viewer-media { flex:1; display:flex; align-items:center; justify-content:center; background:rgba(244,246,248,0.95); position:relative; min-height:320px; }
.story-viewer-media img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; display:block; border-radius:6px; }
.story-media-actions { position:absolute; left:16px; right:16px; bottom:16px; display:flex; align-items:center; justify-content:space-between; z-index:80; flex-wrap:nowrap; }
.story-media-actions-left, .story-media-actions-right { display:flex; gap:10px; align-items:center; flex-wrap:nowrap; }
.story-action-btn { min-width:44px; min-height:44px; border-radius:12px; border:none; background:rgba(255,255,255,0.92); color:var(--text-main); display:flex; align-items:center; justify-content:center; gap:6px; padding:0 12px; box-shadow:0 10px 22px rgba(15,23,42,0.12); cursor:pointer; transition:transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.story-action-btn:hover { transform:translateY(-2px); background:var(--primary); color:#fff; }

@media (max-width: 640px) {
    .story-viewer { width: calc(100vw - 24px); height: calc(100vh - 24px); }
    .story-media-actions { left: 12px; right: 12px; bottom: 12px; gap: 8px; }
    .story-action-btn { min-width:40px; min-height:40px; padding:0 10px; }
    .story-media-actions-left, .story-media-actions-right { gap:8px; }
}
.story-action-btn.story-like-btn { background:rgba(254,229,236,0.95); color:var(--danger); }
.story-action-btn.story-like-btn.liked { background:var(--danger); color:#fff; }
.story-action-btn.story-like-btn:hover { background:var(--danger); color:#fff; }
.story-action-btn.story-like-btn .like-count { font-size:0.8rem; font-weight:700; }
.story-action-btn.story-report-btn { background:rgba(254,226,226,0.95); color:var(--danger); }
.story-action-btn.story-report-btn:hover { background:rgba(254,205,211,0.95); color:var(--danger); }
.story-nav { position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%; background: rgba(255,255,255,0.95); color: var(--text-main); display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:90; box-shadow:0 10px 28px rgba(15,23,42,0.14); border: 1px solid rgba(148,163,184,0.18); }
.story-nav.left { left:14px; }
.story-nav.right { right:14px; }
.story-viewer-footer { padding:10px 12px; background:var(--card-bg); border-top:1px solid rgba(226,232,240,0.95); }
.story-viewer-close { background: var(--card-bg); border: 1px solid var(--border); color: var(--text-main); font-size:1.1rem; cursor:pointer; width:36px; height:36px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; box-shadow: 0 6px 18px rgba(16,24,40,0.08); }
.story-viewer-inner { width:100%; height:100%; display:flex; flex-direction:column; background: var(--card-bg); border-radius:12px; overflow:hidden; }
.story-viewer-footer-top { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 0 6px 0; margin-bottom:4px; }
.story-viewer-footer-row { display:flex; align-items:center; justify-content:space-between; width:100%; gap:8px; }
.story-viewer-countdown { font-size:0.76rem; color: rgba(148,163,184,0.85); line-height:1.3; flex:1; text-align:center; min-width:120px; }
.story-viewer-user { font-weight:700; color: var(--text-main); }
.story-viewer-time { font-size:0.85rem; color: var(--text-muted); white-space:nowrap; flex-shrink:0; }

/* footer comment input */
.story-viewer-footer .story-comments { max-height:140px; overflow:auto; margin-top:12px; padding-top:12px; border-top:1px solid rgba(226,232,240,0.9); }
.story-viewer-footer .comment-row { display:flex; gap:10px; margin-top:14px; }
.story-viewer-footer .comment-row input { flex:1; padding:12px 14px; border-radius:999px; border:1px solid var(--border); background:var(--input-bg); color:var(--text-main); min-width:0; }
.story-viewer-footer .comment-row button { padding:10px 18px; border-radius:999px; background:var(--primary); color:#fff; border:none; cursor:pointer; white-space:nowrap; }
/* overlay backdrop */
#story-viewer-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); z-index:4000; padding:20px; }

.announcement-card {
    position: relative;
    margin-bottom: 0 !important;
    padding: 20px 22px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}
.announcement-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}
.announcement-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.09);
}
.announcement-card .announcement-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.announcement-card .announcement-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.announcement-card .announcement-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.18);
    flex-shrink: 0;
}
.announcement-card .announcement-details {
    min-width: 0;
}
.announcement-card .announcement-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}
.announcement-card .announcement-title .announcement-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
}
.announcement-card .announcement-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
}
.announcement-card .announcement-meta {
    text-align: right;
    min-width: 110px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.announcement-card .announcement-content {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: var(--text-main);
    font-size: 0.96rem;
    line-height: 1.7;
    white-space: pre-wrap;
}
.announcement-card .announcement-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
.announcement-card .announcement-footer .announcement-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.announcement-card .announcement-footer .announcement-action-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}
.announcement-card .announcement-action-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}
.announcement-card .post-content-block {
    background: rgba(255,255,255,0.95);
    border-color: rgba(226, 232, 240, 0.95);
}
.announcement-card .announcement-content {
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: var(--text-main);
    font-size: 0.96rem;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}
.announcement-card .announcement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.announcement-card .announcement-stats {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.announcement-card .announcement-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.announcement-card .announcement-action-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.announcement-card .announcement-action-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}
.announcement-card .announcement-comment-area {
    display: none;
    margin-top: 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    padding-top: 16px;
}
.announcement-card .announcement-comment-area.expanded {
    display: block;
}
.announcement-card .comment-input-area {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}
.announcement-card .comment-input-area img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.announcement-card .comment-row-inner {
    flex: 1;
    display: flex;
    gap: 8px;
}
.announcement-card .comment-row-inner input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 16px;
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
}
.announcement-card .comment-submit-btn {
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}
.announcement-card .announcement-comment-list {
    margin-top: 12px;
}
.announcement-card .comment-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--input-bg);
    border: 1px solid rgba(226, 232, 240, 0.95);
    margin-bottom: 12px;
}
.announcement-card .comment-item .comment-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.announcement-card .comment-item .comment-author {
    font-weight: 700;
    color: var(--text-main);
}
.announcement-card .comment-item .comment-username {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.announcement-card .comment-item p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.6;
}
.announcement-card .comment-item .comment-time {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.announcement-card .comment-delete-btn {
    background:none;
    border:none;
    color: #ef4444;
    cursor:pointer;
    opacity:0.7;
    transition: opacity 0.2s;
}
.announcement-card .comment-delete-btn:hover {
    opacity:1;
}
@media (max-width: 720px) {
    .announcement-card {
        padding: 18px 18px;
    }
    .announcement-card .announcement-header {
        flex-direction: column;
        align-items: stretch;
    }
    .announcement-card .announcement-meta {
        text-align: left;
    }
    .announcement-card .announcement-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

.post-composer {
    position: relative;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(1200px 360px at 8% -20%, rgba(16,185,129,0.16), transparent 60%),
        radial-gradient(900px 300px at 92% -10%, rgba(59,130,246,0.14), transparent 58%),
        var(--card-bg);
    border: 1px solid rgba(99,102,241,0.18);
    box-shadow: 0 24px 50px rgba(15,23,42,0.1);
}

body.dark-mode .post-composer {
    border-color: rgba(148,163,184,0.2);
    box-shadow: 0 22px 42px rgba(0,0,0,0.25);
}

.post-composer-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.post-composer-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.post-composer-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 16px 28px rgba(99,102,241,0.18);
    aspect-ratio: 1 / 1;
    background: var(--surface);
}

.post-composer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: auto;
}

.post-composer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.post-composer-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.post-composer-area {
    position: relative;
    border-radius: 22px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    padding: 16px;
    min-height: 130px;
    margin-bottom: 16px;
}

.post-composer-area [contenteditable] {
    min-height: 100px;
    width: 100%;
    font-size: 1rem;
    color: var(--text-main);
    padding-bottom: 28px;
}

.post-charcount {
    position: absolute;
    right: 16px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-muted);
    font-size: 0.84rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.post-composer-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.post-composer-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    flex: 0 1 auto;
}

.emoji-wrapper {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.post-action-btn {
    border: none;
    border-radius: 18px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: 0 12px 22px rgba(15,23,42,0.08);
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    min-height: 36px;
    line-height: 1;
    overflow: hidden;
}

.post-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(15,23,42,0.12);
}

.post-action-btn.icon-btn {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.18);
    color: var(--primary);
    padding: 8px 14px;
    min-width: 85px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-action-btn.icon-btn i {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.emoji-toggle-btn {
    background: linear-gradient(145deg, rgba(99,102,241,0.12), rgba(147,51,234,0.14));
    border-color: rgba(99,102,241,0.28);
    color: var(--primary);
    box-shadow: 0 12px 24px rgba(99,102,241,0.14);
}

.emoji-toggle-btn:hover {
    background: linear-gradient(145deg, rgba(99,102,241,0.16), rgba(147,51,234,0.18));
}

.poll-toggle-btn {
    background: linear-gradient(145deg, rgba(16,185,129,0.12), rgba(34,197,94,0.14));
    border-color: rgba(34,197,94,0.28);
    color: #16a34a;
    box-shadow: 0 12px 24px rgba(34,197,94,0.14);
}

.poll-toggle-btn:hover {
    background: linear-gradient(145deg, rgba(16,185,129,0.16), rgba(34,197,94,0.18));
}

.poll-toggle-btn.active {
    box-shadow: 0 16px 28px rgba(34,197,94,0.22);
}

.poll-form {
    margin-top: 16px;
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 24px;
    padding: 18px;
    background: rgba(255,255,255,0.04);
}

.poll-form-grid {
    display: grid;
    gap: 12px;
}

.poll-form-grid label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.poll-form-grid input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(99,102,241,0.16);
    background: transparent;
    color: var(--text-main);
}

.poll-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.poll-form-row label {
    min-width: 48px;
}

.poll-form-row input {
    width: 120px;
}


.poll-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.poll-form-message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--danger);
}

.post-poll {
    margin: 12px 0;
    padding: 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.poll-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.poll-question-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.poll-status-pill {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.poll-option-card.selected {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.poll-option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.poll-option-label {
    font-weight: 600;
    color: var(--text-main);
}

.poll-option-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.poll-option-count,
.poll-option-percent {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
}

.poll-voter-avatars {
    display: flex;
    align-items: center;
}

.poll-voter-avatars img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border);
    margin-left: -6px;
    background: var(--surface);
}

.poll-voter-avatars img:first-child {
    margin-left: 0;
}

.poll-voter-more {
    margin-left: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.poll-progress-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.2);
}

.poll-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.poll-option-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.poll-vote-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 999px;
    color: #111;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.2);
}

.poll-vote-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.24);
}

.poll-vote-btn.danger {
    background: linear-gradient(135deg, var(--danger), #f43f5e);
}

.poll-footer {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-action-btn.primary {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    min-width: 138px;
    box-shadow: 0 16px 30px rgba(99,102,241,0.2);
}

.post-action-btn.primary:disabled,
.post-action-btn.primary.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.post-charcount {
    color: var(--text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.post-composer-preview {
    position: relative;
    width: 100%;
    max-width: 360px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 18px;
    box-shadow: 0 18px 32px rgba(15,23,42,0.12);
}

.post-composer-preview img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.post-preview-remove {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(15,23,42,0.8);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.post-help-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 12px;
}

.emoji-picker {
    display: none;
    position: fixed;
    width: min(340px, calc(100vw - 32px));
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(99,102,241,0.24);
    border-radius: 24px;
    box-shadow: 0 32px 60px rgba(15,23,42,0.18);
    backdrop-filter: blur(18px);
    overflow: hidden;
    z-index: 1300;
    transition: opacity 0.18s ease, transform 0.18s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.emoji-picker.open {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, rgba(99,102,241,0.08), transparent);
    border-bottom: 1px solid rgba(99,102,241,0.12);
}

.emoji-picker-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-main);
}

.emoji-picker-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.emoji-picker-close:hover {
    background: rgba(99,102,241,0.14);
    color: var(--primary);
}

.emoji-search {
    margin: 0 16px 12px;
    padding: 10px 14px;
    width: calc(100% - 32px);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.95rem;
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(44px, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}

.emoji-picker-item {
    border: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    background: rgba(99,102,241,0.06);
    color: var(--text-main);
}

.emoji-picker-item:hover {
    transform: translateY(-2px);
    background: rgba(99,102,241,0.18);
    box-shadow: 0 12px 20px rgba(99,102,241,0.12);
}

.emoji-picker-empty {
    padding: 14px 16px 20px;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.92rem;
}

.emoji-picker::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(99,102,241,0.08), transparent 32%);
}


.theme-btn{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid var(--border);
  background:linear-gradient(145deg, var(--card-bg), var(--bg));
  color:var(--text-main);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition:all .35s cubic-bezier(.4,0,.2,1);
  box-shadow:var(--shadow);
}

/* Hover Glow */
.theme-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top left, rgba(99,102,241,.35), transparent 70%);
  opacity:0;
  transition:.35s;
}

.theme-btn:hover::before{
  opacity:1;
}

.theme-btn:hover{
  transform:rotate(12deg) scale(1.08);
  color:#fff;
}

.header-msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--card-bg), var(--bg));
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.header-msg-btn:hover {
    transform: translateY(-1px);
    background: rgba(99,102,241,0.14);
}

    .header-msg-btn.has-unread {
        background: var(--danger);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    }
    .header-msg-btn.has-unread .fa-comments,
    .header-msg-btn.has-unread span {
        color: #fff;
    }

    #notificationsBtn.has-unread {
        background: var(--danger);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    }
    #notificationsBtn.has-unread i,
    #notificationsBtn.has-unread span {
        color: #fff;
    }

.header-msg-btn {
    padding: 10px 14px;
}

@media (max-width: 680px) {
    .header-msg-btn {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

.theme-btn i{
  font-size:1.1rem;
  transition:transform .4s ease, opacity .25s ease;
}

body.dark-mode .theme-btn{
  background:linear-gradient(145deg, #1e293b, #020617);
  border-color:#475569;
}

body.dark-mode .theme-btn i{
  transform:rotate(180deg) scale(1.1);
}

* { 
    margin:0; 
    padding:0; 
    box-sizing:border-box; 
    font-family: 'Inter', system-ui, sans-serif; 
    transition: background-color 0.2s, border-color 0.2s, color 0.1s; 
}

/* clickable mutual friend count */
.mutual-info {
    cursor: pointer;
    /* no underline for a cleaner look */
    text-decoration: none;
}
.mutual-info:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ensure modal content scrolls if too tall */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.64);
    backdrop-filter: blur(2px);
    z-index: 2147483647 !important;
    overflow-y: auto;
}

.modal-overlay .glass-card {
    max-height: 90vh;
    overflow-y: auto;
}

/* TOP BAR - Sayfanın en üstünde çakılı */
.top-bar {
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    position: fixed; /* Sticky yerine fixed */
    top: 0;
    left: 0;
    right: 0;
    height: 32px; /* Yükseklik sabitlendi */
    z-index: 10005;
    box-sizing: border-box;
}

/* Avatar wrapper and online/offline badge */
.avatar-wrap {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid var(--border);
}
.avatar-wrap img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-wrap.online {
    border-color: var(--online-green);
    box-shadow: 0 4px 10px rgba(34,197,94,0.08);
}
.avatar-wrap.offline {
    border-color: var(--border);
}
.avatar-wrap .status-badge,
.chat-friend-avatar-wrap .status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.avatar-wrap .status-online {
    background: var(--online-green);
}
.avatar-wrap .status-offline {
    background: #9ca3af; /* gray */
}

/* Admin crown badge (inside top-right corner) */
.admin-crown-badge {
    position: relative !important;
}

.admin-crown-badge .admin-crown-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    color: #fbbf24;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    z-index: 3;
    pointer-events: none;
    font-size: 0;
}

.admin-crown-badge .admin-crown-icon::before {
    content: "👑";
    font-size: 10px;
    line-height: 1;
}

.chat-friend-avatar-wrap.online {
    border: 2px solid var(--online-green);
}

.chat-friend-avatar-wrap.offline {
    border: 2px solid var(--border);
}

.chat-friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-friend-item:hover {
    background: rgba(99,102,241,0.08);
}

.chat-friend-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.chat-friend-avatar-wrap img,
.friends-dropdown .avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-friend-status,
.friends-dropdown-status {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

/* Normalize avatar rendering: keep avatars square and prevent stretched faces */
img[class*="avatar"], .avatar-wrap img, .friends-dropdown-avatar, .chat-friend-avatar, .chat-friend-avatar-wrap img, .sidebar-profile-avatar img, .post img.user-avatar, .recent-item-avatar img, .profile-trigger .avatar-wrap img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Small avatar contexts (chat lists, dropdown items, posts) */
.chat-friend-avatar, .friends-dropdown-avatar, .post img.user-avatar, .chat-friend-avatar-wrap img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
}

.profile-trigger .avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}


.top-bar::after {
    content: ""; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 1px; 
    background: var(--line-gradient);
}

#topBarDateTime {
    min-width: 220px; 
    text-align: right;
    display: flex;
    justify-content: flex-end;
    color: #fff;
    align-items: center;
    gap: 5px;
}

/* BAŞLIK (HEADER) - Üstte sabit */
header {
    background:
        radial-gradient(1200px 360px at 8% -20%, rgba(16,185,129,0.16), transparent 60%),
        radial-gradient(900px 300px at 92% -10%, rgba(59,130,246,0.14), transparent 58%),
        var(--card-bg);
    backdrop-filter: blur(12px);
    height: 84px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
    position: fixed; /* Sticky yerine fixed */
    top: 0;
    left: 0;
    z-index: 999999;
    border-bottom: none;
    box-sizing: border-box;
}

header::before {
   content: "";
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: var(--line-gradient);
}

.header-logo-link {
    color: var(--text-main);
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-icon {
    width: min(64px, 10vw);
    height: min(64px, 10vw);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(99,102,241,0.08);
    display: grid;
    place-items: center;
}

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

.header-center {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.header-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(99,102,241,0.08);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.header-nav-btn.active {
    background: rgba(99,102,241,0.18);
    border-color: rgba(99,102,241,0.35);
}

.header-nav-btn.active i {
    color: var(--text-main);
}

.header-friends-online-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16,185,129,0.14);
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 700;
}

.header-nav-btn i {
    font-size: 0.95rem;
}

.header-nav-btn:hover {
    background: rgba(99,102,241,0.16);
    border-color: rgba(99,102,241,0.25);
}

.mobile-header-action-btn {
    display: none;
}

.header-msg-btn {
    position: relative;
}

#headerChatBtn {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}

#headerChatBtn i {
    color: var(--text-main) !important;
}

#headerChatBtn:hover {
    background: rgba(99,102,241,0.14) !important;
    border-color: rgba(99,102,241,0.25) !important;
}

#headerChatBtn.has-unread {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.22) !important;
}

#headerChatBtn.has-unread i {
    color: #fff !important;
}

#headerChatBtn.has-unread:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    border-color: rgba(220, 38, 38, 0.55) !important;
}

#header-chat-unread {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.68rem;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search .search-wrapper {
    display: none;
    min-width: 280px;
    position: relative;
}

.header-search .search-wrapper.active,
.header-search .search-wrapper[style*="display:flex"] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search .search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.95rem;
}

.header-search .search-wrapper input {
    width: 100%;
    min-width: 220px;
    padding: 12px 14px 12px 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-search-submit {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.header-search-submit:hover {
    background: rgb(79, 70, 229);
}

.header-search .search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card-bg);
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s ease, transform 0.15s ease;
}

.search-result-card:hover {
    background: rgba(99,102,241,0.08);
    transform: translateY(-1px);
}

.search-page-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.search-page-input-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    position: relative;
}

.search-suggestion-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    z-index: 30;
    max-height: 340px;
    overflow-y: auto;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-suggestion-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.search-suggestion-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    flex-shrink: 0;
}

.search-suggestion-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-suggestion-title {
    font-weight: 700;
    color: var(--text-main);
}

.search-suggestion-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.search-suggestion-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.search-suggestion-empty {
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-page-input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-page-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.search-page-btn {
    min-width: 140px;
    padding: 14px 18px;
    border-radius: 18px;
    border: none;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.15s ease;
}

.search-page-btn:hover {
    background: rgb(79, 70, 229);
}

.search-page-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-results-grid {
    display: grid;
    gap: 24px;
}

.search-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.search-results-section {
    display: grid;
    gap: 14px;
}

.search-result-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(99,102,241,0.14);
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-result-card-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.search-result-card-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.header-search-results {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    z-index: 10003;
    padding: 12px 3%;
    pointer-events: auto;
}

.header-search-results-card {
    max-width: 1180px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.header-search-results-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(147,51,234,0.08));
    color: var(--text-main);
    font-weight: 700;
}

.header-search-results-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
}

.header-search-results-list {
    max-height: 320px;
    overflow-y: auto;
    display: grid;
    gap: 0;
}

.header-search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.header-search-result-item:hover {
    background: rgba(99,102,241,0.08);
}

.header-search-result-icon,
.header-search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(99,102,241,0.11);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    overflow: hidden;
    flex-shrink: 0;
}

.header-search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-search-result-content span {
    display: block;
    font-weight: 700;
}

.header-search-result-content small {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

.header-search-result-empty,
.header-search-result-footer {
    padding: 18px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-search-result-empty a,
.header-search-result-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.header-search-result-empty a:hover,
.header-search-result-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-search-results {
        top: 56px;
        padding: 10px 4%;
    }

    .header-search-results-card {
        border-radius: 18px;
    }

    .header-search-result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-search-result-icon {
        width: 38px;
        height: 38px;
    }
}

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

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-close-panel {
    position: absolute;
    top: 100%;
    left: 16px;
    margin-top: 8px;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.95);
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10005;
}

.header-close-panel.active {
    display: inline-flex;
}

.header-close-panel.left-active {
    left: 16px;
    right: auto;
}

.header-close-panel.right-active {
    left: auto;
    right: 16px;
}

@media (max-width: 768px) {
    .header-close-panel {
        right: auto;
        left: 12px;
    }
    .header-close-panel.right-active {
        right: 12px;
        left: auto;
    }
}

.notification-wrapper {
    position: relative;
}

.notifications-dropdown,
.friends-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    width: min(420px, calc(100vw - 32px));
    min-width: 300px;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    max-height: 66vh;
    overflow: hidden;
    z-index: 1002;
    box-shadow: 0 20px 40px rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
}

.friends-dropdown {
    left: 50%;
    transform: translateX(-50%);
}

.friends-dropdown-wrapper {
    position: relative;
}

.friends-dropdown-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(147,51,234,0.08));
    font-weight: 700;
    color: var(--text-main);
}

.friends-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(99,102,241,0.15);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.friends-dropdown-search {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
}

.friends-dropdown-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.friends-dropdown-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.14);
}

.friends-dropdown-close {
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.friends-dropdown-list {
    overflow-y: auto;
    max-height: calc(66vh - 130px);
    display: grid;
    gap: 0;
}

.friends-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.friends-dropdown-item:hover {
    background: rgba(99,102,241,0.08);
}

.friends-dropdown-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.friends-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-friend-action-group {
    flex-shrink: 0;
}

.friends-dropdown-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.friends-dropdown-name {
    display: block;
    font-weight: 700;
}

.friends-dropdown-username {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.friends-dropdown-empty {
    padding: 18px 16px;
    color: var(--text-muted);
    text-align: center;
}

.friends-dropdown-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--input-bg);
}

.friends-dropdown-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 900px) {
    .notifications-dropdown,
    .friends-dropdown {
        position: fixed;
        top: 56px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(95vw, 360px);
        min-width: auto;
        max-width: 420px;
        box-sizing: border-box;
        z-index: 1000001;
    }
}

@media (max-width: 640px) {
    .notifications-dropdown,
    .friends-dropdown {
        position: fixed;
        top: 56px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(96vw, 320px);
        min-width: auto;
        max-width: 420px;
        box-sizing: border-box;
        z-index: 1000001;
    }
}

.header-nav-btn {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}

/* Fix: center notifications dropdown on small screens to avoid sticking to the right */
@media (max-width: 768px) {
    .notifications-dropdown, #notificationsDropdown {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        top: 68px !important;
    }
}

.nav-dot-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 2px solid var(--card-bg);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    header::before {
        display: none;
    }

    .header-center {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-container {
        align-items: center;
        text-align: center;
    }
    .header-tools {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    .header-right {
        min-width: 48px;
    }

    /* Floating theme button (right-middle) hidden on mobile */
    .floating-theme-btn {
        display: none !important;
    }

    .floating-theme-menu {
        display: none !important;
    }
    .floating-theme-menu button:hover{ background: rgba(99,102,241,0.06); }

    /* Mobilde ana navigasyon butonlarındaki metinleri görünür bırak */
    /* (Önceki kural kaldırıldı: logo ve ikon metinleri artık mobilde görünür) */

    .header-nav-btn {
        padding: 8px 10px;
        gap: 6px;
    }

    .mobile-header-action-btn {
        display: inline-flex;
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        justify-content: center;
    }

    .mobile-header-action-btn span {
        display: none;
    }

    /* Mobil header: sadece Arkadaslar ve Bildirim metinlerini gizle */
    #friendsBtn > span:not(#friendsOnlineCount),
    #notificationsBtn > span:not(#notificationBadge) {
        display: none;
    }

    /* Mobilde ana sayfa butonunu gizle, arama düğmesini koru */
    .header-nav-btn.home-nav-btn {
        display: none !important;
    }

    /* Mobilde üst header arama düğmesini gizle */
    #headerSearchWrapper {
        display: none !important;
    }

    /* Mobilde tema/davet butonları bildirim yanında görünsün; üst sağdaki kopyalar gizlensin */
    #themeToggleBtn,
    #headerInviteBtn {
        display: none !important;
    }

    /* Mobilde üst header profil avatarını gizle (alt mobil profil butonu kalır) */
    .header-tools #profileTrigger {
        display: none !important;
    }
}

.logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.1;
}

/* Make header rounded and pull in from edges on small screens so left/right corners join */
@media (max-width: 768px) {
    header {
        left: 10px;
        right: 10px;
        width: auto;
        border-radius: 14px;
        box-shadow: var(--glass-shadow);
    }
}

/* Mobile menu open buttons (hidden on desktop) */
.side-open-btn,
.side-trigger {
    display: none;
}

@media (max-width: 768px) {
    .side-open-btn,
    .side-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.08);
        background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
        color: var(--text-main);
        cursor: pointer;
        margin-right: 8px;
        box-shadow: 0 6px 18px rgba(16,24,40,0.08);
        backdrop-filter: blur(6px);
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .side-trigger:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 10px 30px rgba(16,24,40,0.12);
    }

    .side-trigger .icon-wrap svg { width:20px; height:20px; color: var(--text-main); display:block; }

    .left-trigger { margin-left: 6px; }
    .right-trigger { margin-right: 6px; }
}

/* ANA İÇERİK - Header'ın altında kalmaması için boşluk verildi */
.app-container { 
    display: grid; 
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(250px, 320px); 
    gap: 24px; 
    padding: 108px 24px 32px; 
    max-width: 1560px; 
    margin: auto; 
    width: 100%; 
    box-sizing: border-box;
    flex: 1; 
    align-items: start;
}

/* Grid içindeki orta sütunun taşmasını önleme */
.app-container > *,
#main-content,
.page-content {
    min-width: 0;
}

#main-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feed-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 2px 0;
}

.feed-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(255, 255, 255, 0.06));
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feed-toolbar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    border-color: rgba(99, 102, 241, 0.24);
}

.feed-panel {
    display: none;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.96));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.feed-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.dark-mode .feed-panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }

    .app-container > [data-include="partials/right-aside.html"] {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 96px 14px 24px;
    }

    #main-content {
        gap: 14px;
    }

    .feed-toolbar {
        justify-content: stretch;
    }

    .feed-toolbar-btn {
        flex: 1 1 calc(50% - 6px);
    }
}

/* Desktop'ta sağ panelin profil sekmelerinin üzerine çıkmasını engelle */
@media (min-width: 1100px) {
    .right-panel {
        position: relative;
        z-index: 1; /* düşük tut, header ve profil sekmeleri üstte kalsın */
    }
}

/* Güvenlik: profil sayfasındaki sekmelerin her zaman sağ panelin üstünde görünmesini sağla */
@media (min-width: 1100px) {
    #page-profile, #page-profile .profile-tabs, #page-profile .profile-actions {
        position: relative;
        z-index: 10060; /* chat-widget ve diğer sabit öğelerden üstte */
    }

    /* ana içerikte sağ taraftaki panel çok daralınca butonların altında kalmaması için küçük koruyucu boşluk */
    #main-content {
        padding-right: 12px;
        position: relative;
        z-index: 1;
    }
}

/* --- RAMADAN WIDGET & MODAL STYLES (taşınmış) --- */
.ramadan-widget {
    background: var(--ramadan-gradient);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: inherit;
}
.timer-title { font-weight: 800; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 5px; }

/* Tebrik / Üye Bilgileri kart ortak stilleri */
.tebrik-card, .membership-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tebrik-card-header, .tebrik-card .tebrik-card-header {
    padding: 16px 18px;
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:space-between;
}
.tebrik-card-title { font-weight:800; font-size:1rem; color:var(--primary); }
.tebrik-card-subtitle { font-size:0.85rem; color:var(--text-muted); }
.tebrik-card-tag { background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08)); padding:6px 10px; border-radius:12px; font-weight:700; font-size:0.8rem; color:var(--text-main); }
.tebrik-card-body { padding: 14px 18px 18px; display:flex; flex-direction:column; gap:12px; flex:1 1 auto; }
.tebrik-score-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.tebrik-score { font-size:1.6rem; font-weight:800; color:var(--text-main); }
.tebrik-metrics { display:flex; gap:12px; }
.tebrik-metric { display:flex; flex-direction:column; align-items:flex-end; font-size:0.9rem; color:var(--text-muted); }
.tebrik-meter { height:10px; background:var(--border); border-radius:999px; overflow:hidden; }
.tebrik-meter-fill { height:100%; width:0%; background: linear-gradient(135deg, var(--primary), #8b5cf6); transition: width 0.6s ease; }
.tebrik-label-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }

/* Make sure top pair cards are equal height */
.profile-top-pairs > * { height: 100%; }

.current-city-label { font-size: 0.8rem; opacity: 0.9; margin-bottom: 10px; display: block; }
.ramadan-timer { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.timer-item { display: flex; flex-direction: column; align-items: center; }
.timer-value { 
    font-size: 1.4rem; font-weight: 800; background: rgba(255,255,255,0.2); 
    padding: 5px 8px; border-radius: 8px; min-width: 42px; backdrop-filter: blur(5px);
}
.timer-label { font-size: 0.6rem; text-transform: uppercase; margin-top: 4px; font-weight: 600; }
.widget-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.w-select {
    background: white; border: none; padding: 6px 10px;
    border-radius: 20px; font-size: 0.75rem; cursor: pointer; outline: none;
}
.w-btn {
    background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4);
    color: white; padding: 6px 15px; border-radius: 20px; font-size: 0.75rem; cursor: pointer; transition: 0.3s;
}
.w-btn:hover { background: rgba(255, 255, 255, 0.4); }

/* İmsakiye modal */
#imsakiye-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; padding: 15px;
}
.modal-content {
    background: var(--card-bg); color: var(--text-main); width: 100%; max-width: 450px;
    max-height: 85vh; border-radius: 15px; overflow-y: auto; padding: 20px; position: relative;
}
#modal-city-title { margin: 0 0 5px 0; color: var(--accent-red); }
#imsakiye-modal p { margin: 0 0 15px 0; font-size: 0.8rem; color: var(--text-muted); }
.imsakiye-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.85rem; }
.imsakiye-table th { background: #1e293b; padding: 10px; border: 1px solid #ccc; position: sticky; top: 0; color: #fff; }
.imsakiye-table td { padding: 8px; border: 1px solid #ccc; text-align: center; }
/* tüm satırlar aynı arka plan rengine sahip olsun */
.imsakiye-table tr { background: #fafafa; }
/* iç tablo varsa miras alsın */
.imsakiye-table td > table { background: inherit; }

/* dark-mode eşleştirmeleri */
body.dark-mode .imsakiye-table thead,
body.dark-mode .imsakiye-table th {
    background: #1e293b; /* same as light mode header */
    color: #f1f5f9;
    border: 1px solid #475569;
}
body.dark-mode .imsakiye-table tr {
    background: #334155;
}
body.dark-mode .imsakiye-table td {
    border: 1px solid #475569;
}

/* dark mode adjustments for imsakiye */
body.dark-mode .imsakiye-table th {
    background: #334155;
    border-bottom-color: #475569;
}
body.dark-mode .imsakiye-table td {
    border-bottom-color: #475569;
}
body.dark-mode .imsakiye-table tr:nth-child(even) {
    background: #1e293b;
}

/* Most Read (En Çok Okunanlar) Table */
.most-read-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.most-read-table th,
.most-read-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.most-read-table .most-read-title th {
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    text-align: left !important;
    border-bottom: 1px solid var(--border);
}

.most-read-table th:last-child,
.most-read-table td:last-child {
    text-align: right;
}

.most-read-table th {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-main);
    font-weight: 700;
}

.most-read-table tr:nth-child(even) {
    background: rgba(99, 102, 241, 0.04);
}

.most-read-table tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Dark mode adjustments for Most Read */
body.dark-mode .most-read-table {
    background: var(--card-bg);
    border-color: rgba(148, 163, 184, 0.4);
}

body.dark-mode .most-read-table th {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-main);
}

body.dark-mode .most-read-table tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.06);
}

.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; cursor: pointer; color: var(--text-main); font-weight: bold; }

/* job icons */
.job-icon {
    width: 48px;
    height: 48px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    border-radius:12px;
    color: var(--primary);
    background: rgba(99,102,241,0.1);
}
.job-icon.pink {
    color: var(--accent-pink);
    background: rgba(236,72,153,0.1);
}

.job-title {
    color: var(--text-main);
    margin: 0;
    font-size: 1.2rem;
}
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 240px 1fr;
        padding: 116px 3% 32px 3%;
    }
    .right-panel {
        display: none; /* hide right sidebar on tablets */
    }
}


@media (max-width: 480px) {
    .theme-btn { width:36px; height:36px; }
    .profile-tabs { gap: 5px; }
    .tab-btn { padding: 8px 12px; font-size: 0.75rem; }
    .main-content, .page-content { font-size: 0.9rem; }
}

/* ensure header areas align properly */
.header-left, .header-right { display: flex; align-items: center; gap: 14px; }
.header-right { flex-wrap: nowrap; }
.header-right { justify-content: flex-end; }
.header-right > * { flex-shrink: 0; }

.search-wrapper { position: relative; width: 100%; max-width: 450px; }
.search-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 15px;
    border-radius: 25px;
    border: 2px solid var(--border);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
}
.search-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(99,102,241,0.16);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    position: relative;
}
.profile-trigger:hover {
    transform: scale(1.04);
    background: rgba(99,102,241,0.24);
    box-shadow: 0 10px 18px rgba(99,102,241,0.16);
}
.profile-trigger .avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid rgba(99,102,241,0.32) !important;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.75) !important;
    position: relative;
}
.profile-trigger .avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.profile-trigger .avatar-wrap .status-badge {
    display: none;
}

/* Mobile Profile Trigger */
.mobile-profile-trigger {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    overflow: hidden;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    position: relative;
}

.mobile-profile-trigger:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    border-color: transparent !important;
}

.mobile-profile-trigger .avatar-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    padding: 0 !important;
    border: 2px solid rgba(99,102,241,0.32) !important;
    overflow: hidden;
    background: transparent !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.75) !important;
    position: absolute;
    inset: 0;
}
body.dark-mode .profile-trigger .avatar-wrap,
body.dark-mode .mobile-profile-trigger .avatar-wrap {
    box-shadow: 0 0 0 2px rgba(15,23,42,0.9) !important;
}

.mobile-profile-trigger .avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.mobile-profile-trigger .status-badge {
    display: none !important;
}

.profile-trigger.mobile-nav-item {
    background: transparent !important;
    min-width: auto !important;
}

.profile-trigger.mobile-nav-item:hover {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Profile Dropdown Menu */
.dropdown-menu-wrapper {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000002;
    pointer-events: none;
}

.dropdown-menu-wrapper.active {
    display: block;
    pointer-events: none;
}

.dropdown-backdrop {
    display: none;
}

.dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: min(420px, calc(100vw - 32px));
    min-width: 300px;
    max-width: 420px;
    max-height: 66vh;
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.16);
    padding: 0;
    display: none;
    flex-direction: column;
    z-index: 1000003;
    pointer-events: auto;
    overflow: hidden;
}

body.dark-mode .dropdown-menu {
    background: var(--card-bg);
}

.dropdown-menu.active {
    display: flex;
    animation: profileMenuDropIn .2s ease;
}

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

/* Dropdown Menu Header */
.dropdown-menu-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(99,102,241,0.14);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-menu-header .avatar-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid rgba(99,102,241,0.3);
    overflow: hidden;
    background: transparent;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.75);
    display: block;
}

.dropdown-menu-header .avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.dropdown-avatar {
    border-radius: 50% !important;
}

.dropdown-avatar img {
    border-radius: 50% !important;
}
body.dark-mode .dropdown-menu-header .avatar-wrap {
    box-shadow: 0 0 0 2px rgba(15,23,42,0.9);
}

.dropdown-menu-header .status-badge {
    display: none !important;
}

.dropdown-menu-name {
    font-weight: 800;
    font-size: .95rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.dropdown-menu-username {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.2;
}

/* Dropdown Menu Items Container */
.dropdown-menu-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 6px 12px;
}

.menu-style-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    text-decoration: none;
    color: var(--text-main);
    font-size: .92rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.menu-style-btn i {
    font-size: 1.05rem;
    min-width: 20px;
    text-align: center;
    color: inherit;
}

.menu-style-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,.12), transparent);
    opacity: 0;
    transition: opacity .25s;
}

.menu-style-btn:hover {
    background: rgba(99,102,241,.16);
    color: var(--primary);
    transform: translateX(4px);
}

.menu-style-btn:hover::before {
    opacity: 1;
}

/* Logout Button Special Style */
.menu-logout-btn {
    color: #ef4444;
    border-top: 1px solid rgba(99,102,241,0.14);
    margin: 6px 12px 12px 12px;
    padding: 13px 14px;
}

.menu-logout-btn:hover {
    background: rgba(239, 68, 68, .16);
    color: #dc2626;
}

.menu-logout-btn i {
    color: inherit;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,.1), transparent);
    opacity: 0;
    transition: opacity .25s;
}

.menu-style-btn:hover {
    background: rgba(99,102,241,.12);
    color: var(--primary);
    transform: translateX(4px);
}

.menu-style-btn:hover::before {
    opacity: 1;
}

/* Dropdown Menu Header */
.dropdown-menu-header {
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.dropdown-menu-name {
    font-weight: 800;
    font-size: .9rem;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.dropdown-menu-username {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Dropdown Menu Items Container */
.dropdown-menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

/* Logout Button Special Style */
.menu-logout-btn {
    color: #ef4444;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
}

.menu-logout-btn:hover {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
}

.menu-logout-btn i {
    color: inherit;
}

/* MOBİL UYUMLULUK */
@media (max-width: 480px) {
    #topBarDateTime { min-width: auto; }
    #topBarDateTime span:first-child { display: none; } 
    .app-container { 
        grid-template-columns: 1fr; 
        padding: 120px 12px 80px 12px; /* üst ve alt boşluk verildi */
        min-height: calc(100vh - 120px); /* header kadar alanı düş
        allow vertical scroll */
        overflow-y: auto;
    }
}

.slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: #ccc; 
    transition: .4s; 
    border-radius: 34px; 
}

.slider:before { 
    position: absolute; 
    content: ""; 
    height: 16px; 
    width: 16px; 
    left: 3px; 
    bottom: 3px; 
    background-color: white; 
    transition: .4s; 
    border-radius: 50%; 
}

input:checked + .slider { 
    background-color: var(--primary); 
}

input:checked + .slider:before { 
    transform: translateX(22px); 
}


.sidebar-container .sidebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.new-connections-card {
    position: relative;
    overflow: hidden;
    padding: 14px 14px 12px;
    border: 1px solid rgba(99, 102, 241, 0.24);
    background:
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.18), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.2), transparent 42%),
        linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.1));
}

.new-connections-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 22px,
        rgba(255, 255, 255, 0.06) 22px,
        rgba(255, 255, 255, 0.06) 44px
    );
    opacity: 0.35;
}

.new-connections-head,
.new-connections-features,
.new-connections-actions {
    position: relative;
    z-index: 1;
}

.new-connections-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.new-connections-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}

.new-connections-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
}

.new-connections-subtitle {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.new-connections-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 1.15rem;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.16);
}

.new-connections-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 11px;
}

.new-connections-feature {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--text-main);
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.2);
    line-height: 1.35;
}

.new-connections-feature i {
    color: var(--primary);
    margin-top: 2px;
}

.new-connections-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.new-connections-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 10px 12px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.new-connections-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}

.new-connections-btn.primary:hover {
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.35);
}

.new-connections-btn.secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(99, 102, 241, 0.25);
}

.new-connections-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.95);
}

body.dark-mode .new-connections-card {
    border-color: rgba(129, 140, 248, 0.34);
    background:
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.2), transparent 46%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.25), transparent 45%),
        linear-gradient(145deg, rgba(79, 70, 229, 0.3), rgba(15, 23, 42, 0.6));
}

body.dark-mode .new-connections-card::after {
    opacity: 0.22;
}

body.dark-mode .new-connections-feature {
    background: rgba(15, 23, 42, 0.42);
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .new-connections-btn.secondary {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(129, 140, 248, 0.34);
}

body.dark-mode .new-connections-btn.secondary:hover {
    background: rgba(30, 41, 59, 0.75);
}

@media (max-width: 1280px) {
    .new-connections-feature {
        font-size: 0.78rem;
    }
}
.sidebar-voter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.16);
    font-size: 0.82rem;
    color: var(--text);
}

.suggestion-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 7px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.92));
}

.suggestion-main {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 0;
    flex: 1;
}

.suggestion-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.18);
}

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

.suggestion-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-username {
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-top: 0;
}

.suggestion-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.suggestion-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.6rem;
    color: var(--text-muted);
    max-width: 100%;
}

.suggestion-meta-highlight {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
}

.suggestion-add-btn {
    width: auto;
    min-width: 80px;
    border: none;
    border-radius: 9px;
    padding: 6px 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 5px 10px rgba(79, 70, 229, 0.2);
}

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

.suggestion-add-btn.pending {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 8px 16px rgba(2, 132, 199, 0.25);
}

.suggestion-add-btn.disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: default;
    opacity: 0.85;
}

.suggestions-empty {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 8px;
}

.top-communities-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 4px 8px;
}

.top-communities-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.top-communities-note {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.top-communities-list {
    display: grid;
    gap: 8px;
}

.top-community-card {
    display: grid;
    gap: 7px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(150deg, rgba(99,102,241,0.08), rgba(255,255,255,0.8));
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.top-community-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99,102,241,0.42);
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.top-community-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.top-community-rank {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(99,102,241,0.14);
    color: var(--primary);
    flex-shrink: 0;
}

.top-community-main {
    min-width: 0;
    flex: 1;
}

.top-community-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-community-category {
    margin-top: 1px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.top-community-arrow {
    font-size: 0.72rem;
    color: var(--primary);
    opacity: 0.85;
    flex-shrink: 0;
}

.top-community-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.top-community-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.top-community-stats i {
    color: var(--primary);
    margin-right: 4px;
}

.top-community-rank-1 .top-community-rank {
    background: rgba(245,158,11,0.22);
    color: #b45309;
}

.top-community-rank-2 .top-community-rank {
    background: rgba(148,163,184,0.24);
    color: #475569;
}

.top-community-rank-3 .top-community-rank {
    background: rgba(234,179,8,0.24);
    color: #a16207;
}

.top-communities-empty {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 12px 6px;
    border: 1px dashed var(--border);
    border-radius: 14px;
}

body.dark-mode .suggestion-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
    border-color: rgba(129, 140, 248, 0.34);
}

body.dark-mode .suggestion-meta {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.25);
}

body.dark-mode .suggestion-meta-highlight {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.38);
    background: rgba(251, 191, 36, 0.12);
}
.top-tebrik-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}
.top-tebrik-item:last-child {
    border-bottom: none;
}
.top-tebrik-rank {
    min-width: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-top: 4px;
}
.top-tebrik-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.top-tebrik-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid rgba(99, 102, 241, 0.18);
    display: block;
}
.top-tebrik-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.top-tebrik-name {
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-tebrik-stats {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.top-tebrik-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    overflow: hidden;
}
.top-tebrik-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    transition: width 0.2s ease;
}
/* submenu details styling */
details.menu-details {
    border: none;
}
details.menu-details summary {
    list-style: none;
    position: relative;
}
details.menu-details summary::-webkit-details-marker {
    display: none;
}
details.menu-details summary:after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s;
}
details.menu-details[open] summary:after {
    transform: translateY(-50%) rotate(180deg);
}

.menu-style-btn.sub-item {
    font-size: 0.9rem;
    padding-left: 24px;
}

/* existing rule */
.sidebar-title {
    padding: 12px 14px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: 
        /* Soft gradient base */
        linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02)),
        /* Large circle pattern top right */
        radial-gradient(circle at 95% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        /* Medium circle pattern bottom right */
        radial-gradient(circle at 88% 85%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
        /* Small decorative circles */
        radial-gradient(circle at 92% 35%, rgba(168, 85, 247, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        /* Diagonal lines pattern */
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(99, 102, 241, 0.04) 35px, rgba(99, 102, 241, 0.04) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(139, 92, 246, 0.04) 35px, rgba(139, 92, 246, 0.04) 70px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, top right, top right;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.sidebar-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150%;
    height: 150%;
    background: 
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.sidebar-title:hover {
    background-image:
        linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.04)),
        radial-gradient(circle at 95% 15%, rgba(99, 102, 241, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 88% 85%, rgba(139, 92, 246, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 92% 35%, rgba(168, 85, 247, 0.16) 0%, transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.16) 0%, transparent 25%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(99, 102, 241, 0.08) 35px, rgba(99, 102, 241, 0.08) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(139, 92, 246, 0.08) 35px, rgba(139, 92, 246, 0.08) 70px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.sidebar-title:hover::before {
    opacity: 1;
}

.sidebar-title:active {
    transform: translateY(0);
}

.chat-left-unread-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-width: 152px;
    margin: 10px 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-left-unread-text:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.22);
}

/* Right sidebar calendar */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.82rem;
}
.calendar-nav button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.calendar-nav button:hover {
    background: rgba(99, 102, 241, 0.12);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 0;
}
.calendar-grid .day {
    padding: 6px 4px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.68rem;
}
.calendar-grid .day.header {
    font-weight: 700;
    color: var(--text-muted);
}
.calendar-grid .day.other-month {
    color: var(--text-muted);
}
.calendar-grid .day.today {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.calendar-grid .day.special {
    border: 1px solid var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
    cursor: pointer;
}

.calendar-grid .day.special:hover {
    background: rgba(99, 102, 241, 0.15);
}

.calendar-online-friends {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
    margin-bottom: 8px;
}

.calendar-online-friend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.06);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.calendar-online-friend:hover {
    transform: translateY(-1px);
    background: rgba(99, 102, 241, 0.12);
}

.online-friend-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.06);
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.online-friend-card:hover {
    transform: translateY(-1px);
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.online-friend-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.online-friend-card-left img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid white;
}

.online-friend-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.friend-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0;
    flex-shrink: 0;
}

.friend-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.friend-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.friend-action-btn i {
    font-size: 1rem;
}

.friend-action-btn:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.friend-action-btn:focus {
    outline: 2px solid rgba(99, 102, 241, 0.35);
    outline-offset: 2px;
}

.online-friend-status {
    font-size: 0.78rem;
    color: var(--success);
}

.online-friend-card.offline {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.08);
}

.online-friend-card.offline .online-friend-status {
    color: var(--text-muted);
}

.friends-widget {
    display: grid;
    gap: 16px;
}

.friend-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(255, 255, 255, 0.9));
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(6px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.friend-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.32);
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.18);
}

body.dark-mode .friend-card {
    border-color: rgba(129, 140, 248, 0.32);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.26), rgba(15, 23, 42, 0.72));
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.36);
}

body.dark-mode .friend-card:hover {
    border-color: rgba(129, 140, 248, 0.52);
    box-shadow: 0 18px 30px rgba(2, 6, 23, 0.5);
}

.friend-status-group {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.friend-status-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.friend-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
}

.offline-badge {
    background: rgba(148, 163, 184, 0.16);
}

.friend-list-grid {
    display: grid;
    gap: 10px;
}

.friend-status-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.calendar-online-friend img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid white;
}

/* blog card styling */
.sidebar-blog-card {
    padding: 10px 12px;
    margin-top: 10px;
}
.sidebar-blog-card .sidebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
/* Override: simplify Blog Menü header background */
.sidebar-blog-card .sidebar-title {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
}
.sidebar-blog-card a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* sidebar statistics card styling */
.sidebar-stats-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(255,255,255,0.35) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    margin-top: 10px;
}
/* previously .stats-header styles were here but headers now use .sidebar-title */

.sidebar-stats-card .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    overflow: visible;
}
.sidebar-stats-card .stat-row.last {
    border-bottom: none;
    position: relative;
}
.sidebar-stats-card .stat-row.last.new-user-row:hover {
    background: rgba(16,185,129,0.1);
    cursor: pointer;
}
.sidebar-stats-card .stat-row.last.new-user-row .latest-info a {
    display: inline-block;
    padding: 2px 6px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    transition: background 0.3s;
}
.sidebar-stats-card .stat-row.last.new-user-row .latest-info a:hover {
    background: #4f46e5;
}
.sidebar-stats-card .stat-row .label {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.sidebar-stats-card .stat-row span,
.sidebar-stats-card .stat-row a {
    font-weight: 600;
    color: var(--text-main);
}
.sidebar-stats-card .latest-info {
    display: flex;
    align-items: center;
    gap: 4px;
}
/* right-aside stats carousel styling */
.recent-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 14px;
    overflow: visible;
    padding: 2px;
}
.carousel-wrapper {
    overflow: visible;
}
.recent-item-avatar {
    position: relative;
    animation: fadeInScale 0.5s ease-out forwards;
    padding: 4px;
    border-radius: 14px;
    transition: background 0.3s, box-shadow 0.3s;
}
.recent-item-avatar:hover {
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}
.recent-item-avatar img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2.5px solid var(--primary);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.2);
}
.recent-item-avatar img:hover {
    transform: scale(1.2) rotate(-2deg);
    filter: brightness(1.15) saturate(1.1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}
.recent-item-avatar .tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    letter-spacing: 0.2px;
}
.recent-item-avatar:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}
.stats-header-right {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .recent-carousel {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .recent-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
}
.sidebar-stats-card .stat-row img {
    border: 2px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
/* big number variant */
.sidebar-stats-card .stat-row.big {
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-stats-card .stat-row.big .big-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #6366f1);
    background-size: 200% auto;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    animation: countUp 1.2s ease-out, shine 2.5s infinite, slideGradient 3s infinite;
    letter-spacing: 1px;
}

@keyframes shine {
    0% { background-position: -100px; }
    100% { background-position: 100px; }
}
.sidebar-stats-card .stat-row.big .label-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.85;
}
.sidebar-stats-card a {
    color: var(--primary);
    text-decoration: none;
}
.sidebar-stats-card a:hover {
    text-decoration: underline;
}

.sidebar-stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes countUp {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.prevent-overflow-btns {
    box-sizing: border-box;
}

/* Genel: butonların kapsayıcı dışına taşmasını engelle */
.glass-card button,
.profile-actions button,
.profile-tabs .tab-btn,
main button,
table button {
    min-width: 0; /* flex içinde küçülebilsin */
    max-width: 100%;
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* taşıyorsa kısalt */
}

/* Tablolar içinde içerik taşmasını önle */
table td, table th {
    overflow: hidden;
    word-break: break-word;
}

/* Profil sekmeleri için dar ekranlarda düzgün sarma */
.profile-tabs { display: flex; flex-wrap: wrap; }
.profile-tabs .tab-btn { white-space: nowrap; }

/* Profil aksiyon butonlarını dikey düzenle */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.profile-actions button {
    width: 100%;
    max-width: 200px;
}

.main-content {
    font-size: 17px;
}

/* NAV ITEM PREMIUM ENTEGRASYON */
.nav-item { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px; text-decoration: none; color: var(--text-main); border-radius: 10px; transition: 0.3s;}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--premium-gradient);
    transform: none;
    transition: left 0.4s ease, transform 0.4s ease;
}
.nav-item:hover::after {
    left: 0;
    transform: none;
}
.nav-item.active {
    background: rgba(99, 102, 241, 0.1); color: var(--primary);
}

@media (max-width: 768px) {
    .nav-item::after {
        left: 50%;
        width: 40%;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
    }

    .nav-item:hover::after {
        left: 50%;
        transform: translateX(-50%) scaleX(1);
    }
}

.trend-item {
display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid var(--border); transition: 0.2s; text-decoration: none; color: inherit;}
.trend-item:hover {background-color: var(--bg); }
.trend-info { flex: 1; margin-left: 12px; }
.trend-name { font-weight: 700; font-size: 0.85rem; }
.trend-meta { font-size: 0.7rem; color: var(--text-muted); }

.category-bar {
display: flex;gap: 10px;overflow-x: auto;padding-bottom: 10px;margin-bottom: 20px;}
.category-chip {
white-space: nowrap;padding: 8px 16px;background: var(--card-bg);border: 1px solid var(--border);border-radius: 20px;font-size: 0.85rem;cursor: pointer;transition: 0.2s;}
.category-chip.active { 
background: var(--primary); color: white; border-color: var(--primary); }

.page-grid { 
display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }

/* Blog list: two-column widget layout (yan yana) and stacked on smaller screens */
#blogPostsContainer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    #blogPostsContainer {
        grid-template-columns: 1fr;
    }
}

.advanced-page-card {
background: var(--card-bg);border-radius: var(--radius);border: 1px solid var(--border);overflow: hidden;position: relative;transition: 0.3s;}
.advanced-page-card:hover { 
transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.card-cover { 
height: 60px; background: var(--line-gradient); opacity: 0.7; }
.card-body { 
padding: 0 15px 15px; text-align: center; margin-top: -30px; gap: 0; }
.card-avatar { 
width: 60px; height: 60px; border-radius: 12px; border: 4px solid var(--card-bg); background: white; object-fit: cover; margin: 0 auto 10px; }

.page-content { 
display: none; animation: fadeIn 0.3s ease; }
.page-content.active { display: block; }

@keyframes fadeIn { 
from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* GLASS CARD PREMIUM ENTEGRASYON */
.glass-card { 
background: var(--card-bg); 
border-radius: var(--radius); 
overflow: hidden; 
margin-bottom: 24px; 
/* Premium Efektler */
backdrop-filter: blur(12px) saturate(180%);
box-shadow: var(--glass-shadow);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25); 
}

/* post composer glass-card arkaplanini footer stiliyle sabitle */
.glass-card.post-composer {
    background:
        radial-gradient(1200px 360px at 8% -20%, rgba(16,185,129,0.16), transparent 60%),
        radial-gradient(900px 300px at 92% -10%, rgba(59,130,246,0.14), transparent 58%),
        var(--card-bg) !important;
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 28px;
}

body.dark-mode .glass-card.post-composer {
    background:
        radial-gradient(1200px 360px at 8% -20%, rgba(16,185,129,0.16), transparent 60%),
        radial-gradient(900px 300px at 92% -10%, rgba(59,130,246,0.14), transparent 58%),
        var(--card-bg) !important;
    border-color: rgba(148,163,184,0.2);
}

.tebrik-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-main);
  font-size: 0.9rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.tebrik-grid {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(320px, 1fr);
  gap: 20px;
}

.tebrik-template-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.template-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.template-option:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.template-option.active {
  border-color: var(--primary);
  box-shadow: 0 16px 30px rgba(99, 102, 241, 0.12);
}

.template-option strong {
  display: block;
  font-size: 0.95rem;
}

.template-option small {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.tebrik-preview {
  min-height: 190px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-top: 8px;
}

.tebrik-card-preview-surface {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.preview-badge {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  font-size: 1.6rem;
}

.preview-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.preview-text {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 100%;
  word-break: break-word;
}

.preview-footer {
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.tebrik-form input,
.tebrik-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  padding: 14px 16px;
  color: var(--text-main);
}

.tebrik-form textarea {
  min-height: 130px;
  resize: vertical;
}

.tebrik-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--card-bg);
}

.tebrik-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.tebrik-card-header {
  padding: 18px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.tebrik-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.tebrik-card-subtitle {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.95;
}

.tebrik-card-tag {
  background: rgba(255,255,255,0.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.tebrik-card-body {
  padding: 18px 16px 20px;
}

.tebrik-card-body p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.7;
}

.tebrik-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.tebrik-score-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
}

.tebrik-score {
  min-width: 120px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-align: center;
}

.tebrik-score span {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.tebrik-score small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}

.tebrik-metrics {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.tebrik-metric {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(99,102,241,0.08);
  text-align: center;
}

.tebrik-metric strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.tebrik-meter {
  margin-top: 14px;
  height: 12px;
  background: rgba(99,102,241,0.12);
  border-radius: 999px;
  overflow: hidden;
}

.tebrik-meter-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease, background 0.4s ease;
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.tebrik-label-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tebrik-summary-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1;
}

.tebrik-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  color: var(--primary);
  font-size: 0.8rem;
  white-space: nowrap;
}

.tebrik-level-pill.success {
  background: rgba(16,185,129,0.12);
  color: #10b981;
}

.tebrik-level-pill.warning {
  background: rgba(251,191,36,0.12);
  color: #f59e0b;
}

.tebrik-level-pill.danger {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
}

@media (max-width: 700px) {
  .tebrik-score-row {
    flex-direction: column;
  }
  .tebrik-metrics {
    grid-template-columns: 1fr;
  }
}

.tebrik-recent-list .empty-state {
  padding: 18px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .tebrik-grid {
    grid-template-columns: 1fr;
  }
}

/* Hobi Grupları Sayfası */
.group-filter { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
  flex-wrap: wrap; 
  margin-bottom: 18px; 
}
.group-filter input, .group-filter select { 
  flex: 1; 
  min-width: 160px; 
  padding: 10px 14px; 
  border-radius: 14px; 
  border: 1px solid var(--border); 
  background: var(--input-bg);
  color: var(--text-main);
  outline: none;
}
.group-filter input:focus, .group-filter select:focus { 
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}
.group-filter button { 
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.group-filter button.active { 
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.group-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap: 16px; 
}

.group-create {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}

.group-create h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--primary);
}

.group-create-form {
  display: grid;
  gap: 10px;
}

.group-create-form input,
.group-create-form textarea,
.group-create-form select {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
}

.group-date-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.group-date-row > div {
  flex: 1;
  min-width: 140px;
}

.group-date-row label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.group-card { 
  background: var(--card-bg); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 18px; 
  box-shadow: var(--shadow); 
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.group-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 32px rgba(0,0,0,0.14); 
}
.group-card-header { 
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
}
.group-icon { 
  font-size: 1.6rem; 
  width: 42px; 
  height: 42px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 14px; 
  background: rgba(99,102,241,0.12); 
}
.group-card-title { 
  font-size: 1rem; 
  font-weight: 800; 
  margin-bottom: 4px; 
}
.group-card-subtitle { 
  color: var(--text-muted); 
  font-size: 0.9rem; 
}
.group-card-details { 
  margin-top: 10px; 
  color: var(--text-muted); 
  font-size: 0.9rem; 
  line-height: 1.45; 
}
.group-members {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.group-members span {
  display: inline-block;
  margin-right: 10px;
}
.group-card-actions { 
  display: flex; 
  gap: 10px; 
  margin-top: 14px; 
  flex-wrap: wrap;
}
.group-card-actions .form-btn { 
  flex: 1; 
  min-width: 120px; 
}

.post { 
   padding: 20px; 
   border-bottom: 1px solid var(--border); 
   position: relative; 
}

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

.post img.page-avatar { 
   width: 40px; 
   height: 40px; 
   object-fit: cover; 
   border-radius: 8px;
}

.post-delete-btn {
   position: absolute; 
   top: 20px; 
   right: 20px; 
   color: #ef4444; 
   background: none; 
   border: none; 
   cursor: pointer; 
   opacity: 0.4; 
   transition: 0.2s; 
   font-size: 0.9rem;
   padding: 0;
   line-height: 1;
}

.post-delete-btn:hover { 
   opacity: 1; 
}

.post-edit-btn {
   background: none;
   border: none;
   color: #3b82f6;
   cursor: pointer;
   opacity: 0.6;
   transition: 0.2s;
   font-size: 0.9rem;
   padding: 0;
   line-height: 1;
}

.post-edit-btn:hover {
   opacity: 1;
}

.comment-delete-btn {
   background: none;
   border: none;
   color: #ef4444;
   cursor: pointer;
   opacity: 0.5;
   transition: 0.2s;
   padding: 0;
   font-size: 0.75rem;
   line-height: 1;
}

.comment-delete-btn:hover {
   opacity: 1;
}

.comment-edit-btn {
   background: none;
   border: none;
   color: var(--primary);
   cursor: pointer;
   opacity: 0.85;
   transition: 0.2s;
   padding: 0;
   font-size: 0.75rem;
   line-height: 1;
}

.comment-edit-btn:hover {
   opacity: 1;
}

.community-action-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 28px;
   height: 28px;
   border: none;
   border-radius: 999px;
   background: rgba(255,255,255,0.08);
   color: var(--text-main);
   cursor: pointer;
   transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
   box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
   padding: 0;
}

.community-action-btn:hover {
   transform: translateY(-1px);
   background: rgba(255,255,255,0.16);
}

.community-action-btn--edit {
   color: var(--primary);
}

.community-action-btn--delete {
   color: #ef4444;
}

.community-action-btn i {
   font-size: 0.8rem;
   line-height: 1;
}

.translate-content-btn {
    position: relative;
    z-index: 60 !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.translate-lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.post > div[style*="position: absolute"][style*="top: 15px"][style*="right: 15px"] {
    z-index: 55;
    pointer-events: auto;
}

.post-time { 
   font-size: 0.7rem; 
   color: var(--text-muted); 
   margin-left: 8px; 
   font-weight: 400; 
}

.hashtag-link { 
color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.hashtag-link:hover { text-decoration: underline; }

/* TOOL BTN & SHARE BTN PREMIUM ENTEGRASYON */
.tool-btn { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 42px;
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    transition: 0.2s;
    background: var(--input-bg);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.tool-btn i {
    flex: 0 0 auto;
    font-size: 0.92rem;
    line-height: 1;
}
.tool-btn span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.tool-btn.icon-only {
    width: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 999px;
}
.tool-btn.icon-only span {
    display: none;
}
.tool-btn.icon-count {
    min-width: 62px;
    padding: 0 10px;
    justify-content: center;
}
.tool-btn.icon-count span {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.tool-btn:hover { background: var(--premium-gradient); color: white; transform: translateY(-1px); }

.poll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}
.poll-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}
.poll-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}
.poll-btn-warning {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
}
.poll-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}
.poll-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

#shareBtn {
    background: var(--premium-gradient) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    border: none; color: white; padding: 10px 20px; border-radius: 12px; font-weight: 600; cursor: pointer;
}
#shareBtn:hover { filter: brightness(1.1); transform: scale(1.05); }


.post-text-clamp {
    max-height: calc(1.4rem * 4);
    overflow: hidden;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    padding: 0;
    margin-top: 10px;
}

.read-more-btn i {
    font-size: 0.85rem;
}

.btn-subscribe {
background: var(--text-main); color: var(--card-bg); border: 1px solid var(--text-main); padding: 8px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%; margin-top: 10px;}
.btn-subscribe.subscribed { 
background: transparent; color: var(--text-main); border: 1px solid var(--border); }

/* CLOCK WIDGET REMOVED */

.hand { position: absolute; bottom: 50%; left: 50%; transform-origin: bottom; border-radius: 4px; transform: translateX(-50%); }
.hour-hand { width: 5px; height: 30px; background: white; }
.min-hand { width: 3px; height: 40px; background: rgba(255,255,255,0.7); }
.sec-hand { width: 2px; height: 45px; background: #ff4d4d; }

.date-display { 
   margin-top: 5px; 
   font-size: 0.9rem; 
   color: white; 
   font-weight: 600; 
   letter-spacing: 0.5px; }

footer {
    background:
        radial-gradient(1200px 360px at 8% -20%, rgba(16,185,129,0.16), transparent 60%),
        radial-gradient(900px 300px at 92% -10%, rgba(59,130,246,0.14), transparent 58%),
        var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 32px 14px 14px;
    margin-top: 0;
    position: relative;
}

footer::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: var(--line-gradient);
}

.footer-container {
    max-width: 1360px;
    width: 100%;
   margin: 0 auto;
   display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 14px;
}

.footer-shell {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.footer-hero {
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 6px 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: none;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.footer-hero-main {
    display: grid;
    gap: 10px;
}

.footer-hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(2,132,199,0.3);
    background: rgba(255,255,255,0.6);
    color: #0f4c81;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo-img {
    width: 82px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(2,132,199,0.2);
    padding: 9px;
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.footer-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(2,132,199,0.22);
    background: rgba(255,255,255,0.62);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.2s ease, filter 0.2s ease;
}

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

.footer-cta-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    border: 1px solid rgba(2,132,199,0.5);
}

.footer-cta-secondary {
    background: rgba(255,255,255,0.78);
    color: var(--text-main);
    border: 1px solid rgba(2,132,199,0.26);
}

.footer-brand-title {
    margin-bottom: 0;
    font-size: 1.26rem;
    letter-spacing: 0.02em;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin: 0;
    line-height: 1.6;
    max-width: 640px;
}

.footer-link-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.36));
    padding: 14px 14px 12px;
}

.footer-extra-card {
    background: linear-gradient(180deg, rgba(14,165,233,0.16), rgba(16,185,129,0.08));
}

.footer-tips-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-tips-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--text-main);
    font-size: 0.84rem;
    line-height: 1.45;
}

.footer-tips-list li i {
    color: #059669;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0284c7;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-inline-link:hover {
    text-decoration: underline;
}

body.dark-mode .footer-link-card {
    background: linear-gradient(180deg, rgba(30,41,59,0.75), rgba(15,23,42,0.82));
}

body.dark-mode .footer-extra-card {
    background: linear-gradient(180deg, rgba(14,165,233,0.22), rgba(16,185,129,0.14));
}

.footer-bottom {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    gap: 12px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copy strong {
    color: var(--text-main);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
}

.footer-earth-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 800;
    padding: 2px 0 2px 0;
    margin: 0 0 8px 0;
    text-transform: none;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section-intro {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a i {
    color: var(--primary);
    font-size: 0.86rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

@media (max-width: 768px) {
    footer {
        padding: 24px 12px 96px;
    }

    .footer-shell {
        gap: 14px;
    }

    .footer-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 12px;
        gap: 14px;
    }

    .footer-hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        gap: 10px;
    }

    .footer-cta {
        justify-content: center;
        min-height: 46px;
        border-radius: 14px;
        padding: 12px 14px;
    }

    .footer-metrics {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: left;
    }

    .footer-brand {
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }

    .footer-brand-copy {
        align-items: flex-start;
        text-align: left;
        gap: 8px;
    }

    .footer-logo-img {
        width: 64px;
        padding: 7px;
        border-radius: 14px;
    }

    .footer-brand-title {
        font-size: 1.12rem;
    }

    .footer-tagline,
    .footer-note {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .footer-section {
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
        padding-top: 14px;
    }

    .footer-copy {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
        line-height: 1.5;
    }

    .footer-bottom-right {
        justify-content: flex-start;
        width: 100%;
        margin-top: 0;
        flex-wrap: nowrap;
        gap: 8px;
        flex-shrink: 0;
    }

    .lang-switcher {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 6px;
        width: 100%;
        padding: 4px;
    }

    .lang-switcher span {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 8px 10px;
    }

    .footer-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 20px 10px 100px;
    }

    .footer-hero {
        padding-bottom: 10px;
    }

    .footer-brand {
        gap: 10px;
    }

    .footer-logo-img {
        width: 58px;
    }

    .footer-cta {
        min-height: 44px;
        font-size: 0.9rem;
    }
}

.admin-actions { 
display: flex; gap: 5px; margin-top: 8px; }
.admin-btn { 
flex: 1; padding: 6px; font-size: 0.7rem; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; transition: 0.2s; background: transparent; color: var(--text-main); }
.admin-btn:hover { 
background: var(--input-bg); }

.lang-switcher {
     display: inline-flex;
     align-items: center;
     border: 1px solid var(--border);
     border-radius: 999px;
     padding: 3px;
     background: rgba(148,163,184,0.1);
}

.lang-switcher span {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.lang-switcher span.active {
    color: #fff;
    background: var(--primary);
}

.lang-switcher span.inactive {
    color: var(--text-muted);
    opacity: 0.95;
}

.lang-switcher span:hover {
    color: var(--text-main);
}

.settings-row { 
display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border: none; }

.settings-card .settings-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; margin-bottom: 32px; }
.settings-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(99,102,241,0.12); color: var(--primary); font-weight: 700; font-size: 0.82rem; margin-bottom: 14px; }
.settings-card .settings-hero h1 { font-size: clamp(2.2rem, 2.8vw, 3rem); margin: 0 0 12px; }
.settings-card .settings-hero p { margin: 0; color: var(--text-muted); max-width: 620px; line-height: 1.7; }
.settings-hero-info { display: grid; gap: 18px; }
.hero-box { display: flex; gap: 14px; padding: 18px; border-radius: 20px; border: 1px solid var(--border); background: var(--input-bg); }
.hero-box-icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(99,102,241,0.12); display: grid; place-items: center; color: var(--primary); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.settings-action-btn { min-width: 0; }
.settings-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.settings-section { padding: 24px; border-radius: 24px; border: 1px solid var(--border); background: var(--input-bg); box-shadow: var(--shadow); }
.settings-section-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 800; margin-bottom: 12px; color: var(--primary); }
.section-note { margin: 0 0 18px; color: var(--text-muted); line-height: 1.7; }
.danger-card { border-color: rgba(220, 38, 38, 0.2); background: rgba(254, 226, 226, 0.55); }
.help-row { padding: 18px 0; margin-top: 20px; border-top: 1px solid var(--border); }

.form-btn { min-width: 180px; padding: 12px 18px; border-radius: 14px; }
.danger-btn { background: #dc2626; color: white; }

@media (max-width: 980px) {
  .settings-card .settings-hero { grid-template-columns: 1fr; }
  .settings-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .settings-row { flex-direction: column; align-items: stretch; text-align: left; }
  .settings-row button, .settings-row .form-btn { width: 100%; }
}

.toggle-switch { 
position: relative; display: inline-block; width: 44px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.comment-area { 
margin-top: 15px; border-top: 1px solid var(--border); padding-top: 15px; }
/* SUGGESTION ITEM PREMIUM ENTEGRASYON */
.suggestion-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: 15px; transition: 0.2s; cursor: pointer;
}
.suggestion-item:hover { background: var(--input-bg); }

.comment-item { font-size: 0.92rem; padding: 14px; background: var(--input-bg); border-radius: 16px; margin-bottom: 14px; border: 1px solid rgba(0,0,0,0.06); }
.comment-meta { font-weight: 700; margin-right: 5px; color: var(--primary); }
.comment-del-btn { background:none; border:none; color:#ef4444; cursor:pointer; opacity:0.6; transition:opacity 0.2s; font-size:0.85rem; }
.comment-del-btn:hover { opacity:1; }
.comment-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.comment-author { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.comment-time { font-size:0.75rem; color:var(--text-muted); }
.comment-body { margin-top:6px; font-size:0.95rem; color:var(--text-main); line-height:1.65; }
.comment-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.comment-actions { display: flex; gap: 8px; align-items: center; }
.comment-actions button { background:none; border:none; color:var(--text-muted); cursor:pointer; opacity:0.8; transition:opacity 0.2s; font-size:0.9rem; }
.comment-actions button:hover { opacity:1; }
.comment-reply-info { display:none; align-items:center; justify-content:space-between; gap:10px; background: rgba(56, 189, 248, 0.08); color: var(--text-main); padding: 10px 12px; border-radius: 14px; margin-bottom: 10px; border: 1px solid rgba(56, 189, 248, 0.2); font-size: 0.92rem; }
.comment-reply-info button { background:none; border:none; color: var(--primary); cursor:pointer; font-weight:700; font-size:0.85rem; padding:0; }
.comment-reply { display: flex; align-items:flex-start; gap: 10px; margin-top: 10px; background: rgba(0,0,0,0.04); padding: 10px; border-radius: 14px; margin-left: 40px; }
.reply-btn { background:none; border:none; color:var(--primary); font-size:0.85rem; cursor:pointer; margin-top:8px; font-weight:700; padding:0; }

.profile-section-title { 
border-bottom: 2px solid var(--border); margin: 30px 0 15px; display: inline-block; padding-bottom: 5px; font-size: 1.1rem; }
.edit-profile-form { display: none; margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--border); text-align: left; animation: fadeIn 0.4s ease; }
.edit-profile-form.active { display: block; }

.form-label { 
display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.form-input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text-main); outline: none; margin-bottom: 15px; }
.form-btn { width: 100%; padding: 12px; border-radius: 10px; border: none; background: var(--primary); color: white; font-weight: 700; cursor: pointer; transition: 0.2s; }
.form-btn:hover { background: var(--primary-dark); }

#sendMessageBtn {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

#sendMessageBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.3);
}

#sendMessageBtn.is-loading {
    opacity: 0.9;
    cursor: wait;
}

.contact-page-shell {
    display: grid;
    gap: 20px;
}

.contact-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
}

.contact-hero-copy h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    color: var(--text-main);
}

.contact-hero-copy p {
    margin: 0 0 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.86rem;
}

.contact-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.contact-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.contact-hero-note {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.contact-hero-highlights {
    display: grid;
    gap: 12px;
}

.contact-highlight {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

.contact-highlight i {
    color: var(--primary);
    margin-bottom: 8px;
    display: inline-block;
}

.contact-highlight strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.contact-highlight span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 20px;
}

.contact-info-card, .contact-form-card {
    padding: 22px;
    border-radius: 22px;
}

.contact-info-card h3, .contact-form-card h3 {
    margin: 0 0 12px;
    color: var(--text-main);
}

.contact-info-card p, .contact-form-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

.contact-info-list i {
    color: var(--primary);
    margin-top: 2px;
}

.contact-info-list strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-main);
}

.contact-info-list span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-status {
    min-height: 24px;
    margin-top: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
}

.contact-status.pending {
    color: var(--primary);
}

.contact-status.success {
    color: #10b981;
}

.contact-status.error {
    color: #ef4444;
}

@media (max-width: 900px) {
    .contact-hero, .contact-grid {
        grid-template-columns: 1fr;
    }
}

.section-subtitle { 
font-size: 0.9rem; font-weight: 800; color: var(--primary); margin: 20px 0 10px; text-transform: uppercase; }

#postInput { background: #ffffff; }
    
.back-btn-container { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.back-btn { background: var(--input-bg); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-main); cursor: pointer; transition: 0.2s; }
.back-btn:hover { background: var(--border); color: var(--primary); }

@media (max-width: 1100px) { 
    .app-container { grid-template-columns: 1fr; }
}

/* Gündem Sayfası Özel Tasarımı */
.gundem-container { max-width: 100%; }

.gundem-creator { 
    background: var(--card-bg);padding: 20px; border-radius: 20px; box-shadow: var(--shadow); border: 2px solid transparent; transition: 0.3s; }
.gundem-creator:focus-within { border-color: var(--primary); }
.creator-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 1.1rem; }

#gundemInput { width: 100%; border: none; outline: none; background: transparent; font-size: 1rem; resize: none; min-height: 80px; color: var(--text-main); }

.gundem-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; border-top: 1px solid var(--border); padding-top: 15px; }

.category-pill-selector { display: flex; gap: 8px; }
.category-pill-selector input { display: none; }
.category-pill-selector label { padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; border: 1px solid var(--border); transition: 0.2s; background: var(--bg); }

.category-pill-selector input:checked + label { background: var(--primary); color: white; border-color: var(--primary); }

.gundem-post-btn { background: var(--primary); color: white; border: none; padding: 10px 25px; border-radius: 12px; font-weight: bold; cursor: pointer; }

.gundem-nav { display: flex; gap: 10px; margin: 25px 0; overflow-x: auto; padding-bottom: 5px; }
.gundem-tab { padding: 8px 20px; border-radius: 50px; border: none; background: var(--card-bg); color: var(--text-muted); cursor: pointer; white-space: nowrap; font-weight: 600; box-shadow: var(--shadow); }
.gundem-tab.active { background: var(--text-main); color: var(--bg); }

.g-card { background: var(--card-bg); padding: 20px; border-radius: 18px; margin-bottom: 15px; position: relative; border-left: 6px solid #ccc; animation: fadeIn 0.4s ease; }
.g-card.cat-haber { border-left-color: #ef4444; }
.g-card.cat-bilgi { border-left-color: #3b82f6; }
.g-card.cat-bildirim { border-left-color: #f59e0b; }

.g-badge { font-size: 0.7rem; font-weight: 900; padding: 3px 10px; border-radius: 5px; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.bg-haber { background: #fee2e2; color: #ef4444; }
.bg-bilgi { background: #dbeafe; color: #3b82f6; }
.bg-bildirim { background: #fef3c7; color: #f59e0b; }

.gundem-del-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    transition: opacity 0.2s;
}
.gundem-del-btn:hover {
    opacity: 0.7;}

@media (max-width: 768px) {
    .side-trigger {
        position: static;
        top: auto;
        transform: none;
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        margin: 0;
        padding-bottom: 0px;
    }

    .left-trigger {
        border-radius: 50%;
        box-shadow: none;
    }

    .right-trigger {
        border-radius: 50%;
        box-shadow: none;
    }

    aside, .right-panel {
        position: fixed;
        top: 0;
        width: 100%;
        max-width: none;
        height: 100vh;
        background: var(--card-bg);
        z-index: 5000;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 32px 16px 16px;
        overflow-y: auto;
        box-sizing: border-box; 
        display: block !important;
    }
    
    aside {
        left: 0;
        transform: translateX(-100%);
        background: var(--card-bg);
    }
    
    .right-panel {
        right: 0;
        left: auto;
        transform: translateX(100%);
        max-width: none;
        background: var(--card-bg);
    }
    
    aside.active, .right-panel.active {
        transform: translateX(0);
    }

    .right-panel form {
        flex-wrap: wrap;
        gap: 8px;
    }

    .right-panel form button {
        width: 100%;
        min-width: 0;
    }

    .side-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(3px);
        z-index: 4000;
    }
    .side-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 0px;
    }

    /* Keep side panels full-height under the header on mobile */
    aside, .right-panel, .side-overlay {
        top: 0;
        height: 100vh;
        padding-top: 64px; /* header yüksekliği kadar içerik iç boşluğu */
    }

    /* Footer: don't force column layout on mobile — revert to desktop grid
       so footer appears as before on smaller screens. */

    /* Hide mobile bottom nav when a side panel is open */
    body.side-open #mobileBottomNav {
        display: none !important;
    }
    /* Hide mobile bottom nav when chat is open */
    body.chat-open #mobileBottomNav {
        display: none !important;
    }

    /* Hide header chat button text on mobile, keep other chat texts visible */
    .header-msg-btn span {
        display: none !important;
    }
}

.sidebar-profile-card {
    transition: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 18px 16px;
    background: var(--card-bg);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 22px;
}

.sidebar-profile-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.sidebar-profile-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.sidebar-profile-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
    cursor: pointer;
}

.sidebar-profile-body {
    text-align: center;
    padding: 0 4px;
}

.sidebar-profile-name {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.sidebar-profile-username {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.sidebar-profile-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: white;
    margin: 14px 0 16px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    border-radius: 999px;
}

.sidebar-profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.sidebar-profile-button {
    flex: 1;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    padding: 12px;
}

.sidebar-profile-button:hover {
    background: var(--primary);
    color: white;
}

.sidebar-settings-button,
.sidebar-admin-button {
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    color: white;
}

.sidebar-settings-button:hover,
.sidebar-admin-button:hover {
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    color: white;
}

.sidebar-profile-divider {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin: 14px 0 10px;
}

.sidebar-profile-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 0;
}

.sidebar-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 14px;
    overflow: hidden;
}

.sidebar-profile-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 0 auto;
}

.sidebar-profile-label i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--primary);
}

.sidebar-profile-value {
    font-size: 0.82rem;
    color: var(--text-main);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-profile-view-btn {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-profile-view-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.load-more-btn { 
    width: 100%; 
    padding: 12px; 
    margin-top: 10px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
}

/* resim yükleme */
.post-image-wrapper {
    background-image: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Görsel yüklendiğinde animasyonu durdurmak için */
.post-image-wrapper img {
    background-color: #0f172a;
}

.trend-grid-top {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin: 20px 0;
        }
        .trend-list-scroll {
            max-height: 550px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--primary) transparent;
        }
        .trend-rank-item {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid var(--border);
            text-decoration: none;
            color: var(--text-main);
            transition: 0.2s;
        }
        .trend-rank-item:hover { background: rgba(255, 255, 255, 0.05); }
        .rank-number {
            font-weight: 800;
            font-size: 1.1rem;
            color: var(--primary);
            min-width: 35px;
        }
        .trend-info b { display: block; margin-bottom: 2px; }
        .trend-info small { color: var(--text-muted); }
        @media (max-width: 768px) { .trend-grid-top { grid-template-columns: 1fr; } }

/* ====== BİLDİRİM ANİMASYONLARI ====== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Bildirim Badge Animasyonu */
#notificationBadge {
    animation: badgePulse 2s infinite;
}

.notificationCountBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 54px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

#notificationCountBadge {
    background: var(--primary);
    color: #fff;
    position: relative;
    top: 0;
    right: 0;
}

/* Bildirim Dropdown Stilleri */
#notificationsDropdown {
    animation: slideIn 0.3s ease;
}

#friendRequestsList {
    scroll-behavior: smooth;
}

#friendRequestsList > div {
    animation: slideIn 0.3s ease;
}

/* MOBILE - Facebook-like adjustments */
@media (max-width: 768px) {
    /* Header smaller and more compact */
    header { height: 56px; padding: 0 12px; top: 10px; }
    .header-center {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    .header-logo-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        order: 1;
    }
    .header-nav-buttons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        min-width: 0;
        -webkit-overflow-scrolling: touch;
        order: 2;
    }
    .header-nav-buttons::-webkit-scrollbar {
        display: none;
    }
    .header-nav-buttons > .header-nav-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .header-left, .header-right {
        min-width: 0;
    }
    .logo-container {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    .logo { font-size: 1.1rem; }
    .header-friends-online-count { display: none !important; }
    #headerInviteBtn { display: none !important; }

    /* App container becomes single column and full width */
    .app-container { grid-template-columns: 1fr; padding: 80px 12px 110px 12px; gap: 12px; }

    /* Make cards full width and increase tap targets */
    .glass-card, .post { padding: 14px; border-radius: 12px; }
    .post { padding-bottom: 18px; }
    .post img.user-avatar, .profile-trigger { width:40px; height:40px; }

    /* Smaller top bar font */
    .top-bar { display: none; font-size: 0.6rem; }

    /* Make main content flush with container edges */
    .main-content, .page-content { padding: 0 5px; width: 100%; }

    /* Ensure content doesn't overflow horizontally */
    .ramadan-widget, .glass-card, .album-container, .profile-tabs {
        width: 100%;
        box-sizing: border-box;
    }
    img, video { max-width: 100%; height: auto; }

    /* Bigger toolbar buttons for touch */
    .tool-btn {
        min-height: 44px;
        padding: 0 12px;
        gap: 7px;
        font-size: 0.84rem;
    }

    /* Right panel hidden on mobile */
    /* (handled by transform/active rules above) */

    /* Floating compose button (like FB) */
    .fab-compose { position: fixed; right: 18px; bottom: 82px; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display:flex; align-items:center; justify-content:center; box-shadow: 0 8px 24px rgba(0,0,0,0.18); z-index: 10020; cursor: pointer; }

    /* Ensure no content is hidden behind bottom nav */
    body { padding-bottom: 92px; }

    /* Images and cards shouldn't exceed container width */
    img { max-width: 100%; height: auto; }
    .glass-card { max-width: 100%; box-sizing: border-box; }

    /* PROFILE PAGE ADJUSTMENTS */
    #page-profile .glass-card { padding: 20px 10px; }
    #page-profile img#profilePageAvatar { width: 100%; height: 100%; }
    #page-profile h2 { font-size: 1.3rem; }
    #page-profile .tab-btn { padding: 8px 12px; font-size: 0.8rem; }
    /* action buttons stack on mobile */
    .profile-actions { flex-direction: column; gap: 8px; }
    .profile-actions button { width: 100%; max-width: 240px; }
}

/* Small devices - fixed bottom navigation like Facebook */
@media (max-width: 480px) {
    header { top: 10px; }
    .top-bar { display: none; height: 0; }

}

/* Mobile bottom navigation */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    min-height: 56px;
    background:
        radial-gradient(1200px 360px at 8% -20%, rgba(16,185,129,0.16), transparent 60%),
        radial-gradient(900px 300px at 92% -10%, rgba(59,130,246,0.14), transparent 58%),
        var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    z-index: 10050;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
        transition: transform 0.22s ease, opacity 0.22s ease;
    box-shadow: var(--glass-shadow);
  }

    .mobile-bottom-nav.is-at-page-bottom {
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
    }

  #mobileChatBtn {
    background: transparent !important;
    color: var(--text-main) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  #mobileChatBtn i {
    color: var(--text-main) !important;
  }

  #mobileChatBtn:hover,
  #mobileChatBtn:focus-visible {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--text-main) !important;
  }

  #mobileChatBtn.has-unread {
    background: transparent !important;
    color: var(--text-main) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  #mobileChatBtn.has-unread i {
    color: var(--text-main) !important;
  }

  #mobileChatBtn.has-unread:hover,
  #mobileChatBtn.has-unread:focus-visible {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--text-main) !important;
  }

    .mobile-bottom-nav .mobile-nav-item {
        display: inline-flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-main);
        text-decoration: none;
        font-size: 0.78rem;
        min-width: 0;
        min-height: 56px;
        padding: 8px 12px;
        border-radius: 14px;
        border: 1px solid transparent;
        background: transparent;
        box-shadow: none;
        transition: transform 0.12s ease, color 0.18s ease;
    }
  .mobile-bottom-nav .mobile-nav-item:hover {
    background: transparent;
    border-color: transparent;
    transform: translateY(-1px);
  }
  .mobile-bottom-nav .mobile-nav-item.active,
  .mobile-bottom-nav .mobile-nav-item:focus-visible {
    color: var(--text-main);
    background: transparent;
    border-color: transparent;
  }
  .mobile-bottom-nav .mobile-nav-item span {
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1.05;
  }
    /* hide header controls on small screens to avoid duplicate mobile actions */
    #themeToggleBtn,
    #headerChatBtn { display: none !important; }
  .mobile-bottom-nav .mobile-nav-item i {
      font-size: 1.15rem;
  }

    #mobileProfileTrigger {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 2px;
        overflow: visible;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none !important;
        border-radius: 999px;
        background: conic-gradient(from 210deg, #6366f1, #8b5cf6, #06b6d4, #6366f1) !important;
        box-shadow: 0 6px 14px rgba(99, 102, 241, 0.22), 0 0 0 1px rgba(99, 102, 241, 0.2) !important;
        transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    }

    #mobileProfileTrigger:hover,
    #mobileProfileTrigger:focus-visible {
        transform: translateY(-1px);
        filter: saturate(1.08);
        box-shadow: 0 8px 16px rgba(99, 102, 241, 0.28), 0 0 0 1px rgba(99, 102, 241, 0.28) !important;
    }

    #mobileProfileAvatar {
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
        object-fit: cover;
        display: block;
        border: 2px solid rgba(255, 255, 255, 0.92);
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
    }

    body.dark-mode #mobileProfileTrigger {
        background: conic-gradient(from 210deg, #818cf8, #a78bfa, #22d3ee, #818cf8) !important;
        box-shadow: 0 8px 18px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(129, 140, 248, 0.35) !important;
    }

    body.dark-mode #mobileProfileAvatar {
        border-color: rgba(15, 23, 42, 0.92);
        box-shadow: 0 2px 8px rgba(2, 6, 23, 0.45);
    }

    #mobileProfileTrigger span {
        display: none !important;
    }

  .mobile-bottom-nav .mobile-nav-action-btn {
      min-width: 64px;
      min-height: 56px;
      padding: 8px 10px;
      transform: translateY(-4px);
      border: 2px solid var(--primary) !important;
      border-radius: 14px;
      background: rgba(99, 102, 241, 0.08) !important;
      box-shadow: 0 0 12px rgba(99, 102, 241, 0.15) !important;
      transition: all 0.2s ease;
  }
  .mobile-bottom-nav .mobile-nav-action-btn:hover {
      background: rgba(99, 102, 241, 0.16) !important;
      box-shadow: 0 0 20px rgba(99, 102, 241, 0.25) !important;
      transform: translateY(-6px);
  }
  .mobile-bottom-nav .mobile-nav-action-btn .mobile-nav-action-circle {
        width: auto;
        height: auto;
        border-radius: 0;
        background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
        box-shadow: none;
    font-size: 1.4rem;
  }
  .mobile-bottom-nav .mobile-nav-action-btn:hover .mobile-nav-action-circle {
        background: transparent;
        color: var(--primary);
  }
  .mobile-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .mobile-search-input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
  }
  .mobile-search-input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
  }
  .mobile-search-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
  }
    .mobile-bottom-nav .mobile-nav-action-circle {
        color: inherit;
        transition: transform 0.2s ease, background 0.2s ease;
    }
  .mobile-bottom-nav .mobile-nav-action-btn:hover .mobile-nav-action-circle {
    transform: none;
    background: transparent;
    box-shadow: none;
  }
  }
    .mobile-bottom-nav .mobile-nav-action-btn span {
        display: block;
        font-size: 0.76rem;
        font-weight: 700;
        margin-top: 4px;
    }
  .fab-compose { display: none; }
    /* Avoid content being hidden behind the bottom navigation */
    body { padding-bottom: 0px; }

    /* Make header chat button look like mobile bottom nav action on small screens */
    /* sendHeaderMessageBtn removed */

/* Small utility for bottom nav icon badges */
.nav-badge { background: #ef4444; color: #fff; border-radius: 999px; padding: 2px 6px; font-size: 0.7rem; font-weight:700; }

/* Mobile compose widget overlay */
#mobileComposeWidget {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  pointer-events: none;
}
#mobileComposeWidget.active {
  display: block;
  pointer-events: auto;
}
#mobileComposeWidget .compose-widget-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.6);
}
#mobileComposeWidget .compose-widget-panel {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(99,102,241,0.16);
  display: grid;
  gap: 14px;
}
#mobileComposeWidget .compose-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
#mobileComposeWidget .compose-widget-backbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(99,102,241,0.28);
    background: rgba(99,102,241,0.08);
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}
#mobileComposeWidget .compose-widget-backbtn:hover {
    background: rgba(99,102,241,0.16);
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-1px);
}
#mobileSearchWidget {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  pointer-events: none;
}
#mobileSearchWidget.active {
  display: block;
  pointer-events: auto;
}
#mobileSearchWidget .compose-widget-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.6);
}
#mobileSearchWidget .compose-widget-panel {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(99,102,241,0.16);
  display: grid;
  gap: 14px;
}
#mobileSearchWidget .compose-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
#mobileSearchWidget .compose-widget-title {
  display: grid;
  gap: 4px;
}
#mobileSearchWidget .compose-widget-title strong {
  font-size: 1rem;
}
#mobileSearchWidget .compose-widget-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
#mobileSearchWidget .compose-widget-close {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}
#mobileSearchWidget .mobile-search-content {
  display: grid;
  gap: 12px;
}
#mobileSearchWidget .compose-widget-submit {
  width: 100%;
}
#mobileComposeWidget .compose-widget-backbtn i { font-size: 1rem; }
#mobileComposeWidget .compose-widget-backbtn:hover { background: rgba(99,102,241,0.14); border-color: rgba(99,102,241,0.25); transform: translateY(-1px); }

/* form altındaki geri butonu çerçeve ve arka plan */
.compose-widget-back-under {
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(99,102,241,0.03));
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 12px;
    color: var(--text-main);
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}
.compose-widget-back-under i { font-size: 1rem; }
.compose-widget-back-under:hover { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.32); transform: translateY(-2px); }
#mobileComposeWidget .compose-widget-header strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}
#mobileComposeWidget .compose-widget-header p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
#mobileComposeWidget .compose-widget-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100800;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0;
    transition: background 0.12s ease, transform 0.12s ease;
}
#mobileComposeWidget .compose-widget-close:hover {
    background: var(--button-hover-bg);
    transform: translateY(-1px);
}
#mobileComposeWidget .compose-widget-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#mobileComposeWidget .compose-widget-tab {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--secondary-bg);
  border: 1px solid transparent;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 600;
}
#mobileComposeWidget .compose-widget-tab.active {
  background: var(--primary-transparent);
  color: var(--primary);
  border-color: var(--primary);
}
#mobileComposeWidget .compose-widget-content {
  display: grid;
  gap: 10px;
}
#mobileComposeWidget .compose-widget-chooser {
  display: grid;
  gap: 10px;
}
#mobileComposeWidget .compose-widget-chooser button {
    width: 100%;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(99,102,241,0.08);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
#mobileComposeWidget .compose-widget-chooser button:hover {
    background: rgba(99,102,241,0.14);
    border-color: rgba(99,102,241,0.25);
    transform: translateY(-1px);
}
#mobileComposeWidget .compose-widget-chooser button i {
    font-size: 1.1rem;
    color: inherit;
}

/* More specific hover rule to ensure background changes inside the panel */
#mobileComposeWidget .compose-widget-panel .compose-widget-chooser button {
    border: 1px solid rgba(99,102,241,0.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
    outline: none;
}

#mobileComposeWidget .compose-widget-panel .compose-widget-chooser button:hover {
    background: rgba(99,102,241,0.22);
    border-color: rgba(99,102,241,0.44);
    color: var(--text-main);
    box-shadow: 0 6px 18px rgba(99,102,241,0.06);
}

#mobileComposeWidget .compose-widget-panel .compose-widget-chooser button:focus {
    outline: 3px solid rgba(99,102,241,0.12);
    outline-offset: 3px;
}

#mobileComposeWidget .compose-widget-panel .compose-widget-chooser button:active {
    transform: translateY(0);
    opacity: 0.98;
}
#mobileComposeWidget .compose-widget-chooser .compose-widget-cancel {
    background: rgba(239,68,68,0.06);
    border-color: rgba(239,68,68,0.14);
    color: var(--danger);
}
#mobileComposeWidget .compose-widget-chooser .compose-widget-cancel i {
    color: var(--danger);
}
#mobileComposeWidget .mobile-compose-view textarea,
#mobileComposeWidget .mobile-compose-view input,
#mobileComposeWidget .mobile-compose-view select {
  width: 100%;
  background: var(--secondary-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-main);
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
}
#mobileComposeWidget .mobile-compose-view textarea {
  resize: vertical;
  min-height: 110px;
}
#mobileComposeWidget .mobile-compose-status {
  min-height: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
#mobileComposeWidget .compose-widget-submit {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), rgba(79,70,229,0.92));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(79,70,229,0.16);
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#mobileComposeWidget .compose-widget-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(79,70,229,0.22);
}
#mobileComposeWidget .compose-widget-submit:active {
    transform: translateY(-1px);
    opacity: 0.98;
}
#mobileComposeWidget .compose-widget-submit[disabled] {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* Framed button variant used for submit and back-under */
.framed-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    color: var(--text-main);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}
.framed-btn i { font-size: 1rem; }
.framed-btn:hover {
    background: var(--button-hover-bg);
    border-color: rgba(99,102,241,0.28);
    transform: translateY(-2px);
}
.compose-widget-back-under { margin-top: 10px; background: rgba(0,0,0,0.02); }
#mobileComposeWidget .compose-widget-panel button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: var(--secondary-bg);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
}

/* Yay toast */
.yay-toast {
    position: fixed;
    left: 50%;
    bottom: 110px;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 100700;
    min-width: 200px;
}
.yay-toast .yay-message { font-weight:700; }
.yay-toast .yay-btn {
    margin-left: auto;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.18);
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight:700;
}
.yay-toast .yay-btn[disabled] { opacity: 0.6; cursor: default; }

/* small confetti dots */
.yay-confetti {
    position: absolute;
    inset: -24px 0 auto 0;
    height: 24px;
    pointer-events: none;
}
.yay-confetti i { display:inline-block; animation: yay-fall 900ms ease-out; font-style: normal; }
@keyframes yay-fall {
    0% { transform: translateY(-8px) scale(0.9); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translateY(18px) scale(1); opacity: 0; }
}
#mobileComposeWidget .compose-widget-panel button:hover {
  background: var(--button-hover-bg);
}
#mobileComposeWidget .compose-widget-panel button i {
  font-size: 1.1rem;
}

/* Mobile share button - more prominent */

/* Notifications dropdown positioned safely on mobile */
@media (max-width: 480px) {
  .notifications-dropdown,
  .friends-dropdown,
  #notificationsDropdown,
  #friendsDropdown {
    position: fixed !important;
    top: 68px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
    z-index: 1000001 !important;
    max-height: calc(100vh - 120px) !important;
  }
}
/* Share Modal Styles */
.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.share-option {
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.share-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-option i {
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .share-modal-content {
    max-width: 90vw;
  }
  
  .share-option {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

/* Mini link button used in blog navigation and post cards */
.mini-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mini-link-btn.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--primary);
}

.mini-link-btn.active i {
  color: var(--primary);
}

.post-action-btn {
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.post-action-btn--danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Blog post action icons (edit/delete) */
.blog-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.blog-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.blog-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 0.15);
}

.blog-action-btn.blog-action-delete {
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
}

/* Yardım Merkezi Stilleri */
.category-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.2s ease, color 0.2s ease;
}

.category-btn.active {
    background: var(--primary);
    color: white;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    cursor: pointer;
    background: var(--card-bg);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 15px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.faq-item.active .faq-answer {
    display: block;
}

.search-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    margin-bottom: 14px;
}

.search-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(99,102,241,0.15);
}

.search-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-user-info {
    flex: 1;
}

.search-user-name {
    font-weight: 700;
    margin-bottom: 6px;
}

.search-user-handle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.search-user-action {
    margin-left: auto;
    align-self: center;
}

.search-user-action button {
    white-space: nowrap;
}


