/* ===== Ozgul Sosyal - Tema ===== */
:root {
    --mor: #7c3aed;
    --mor-koyu: #6d28d9;
    --mor-acik: #a78bfa;
    --mor-bg: #f5f3ff;

    --bg: #ffffff;
    --bg-2: #fafafa;
    --bg-3: #f3f4f6;
    --text: #111827;
    --text-2: #6b7280;
    --text-3: #9ca3af;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: .15s ease;
}

[data-tema="koyu"] {
    --bg: #0f0f13;
    --bg-2: #18181f;
    --bg-3: #232330;
    --text: #f3f4f6;
    --text-2: #9ca3af;
    --text-3: #6b7280;
    --border: #2d2d3a;
    --mor-bg: #1e1b2e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.5);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-2);
    color: var(--text);
    line-height: 1.5;
    transition: background .2s, color .2s;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--mor); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }

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

/* ===== Layout ===== */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}
.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Topbar ===== */
.topbar {
    background: rgba(255,255,255,.85);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}
[data-tema="koyu"] .topbar {
    background: rgba(15,15,19,.85);
}

.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 62px; gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px; font-weight: 800;
    background: linear-gradient(135deg, var(--mor), var(--mor-acik));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none !important;
    letter-spacing: -0.5px;
}

.topbar nav { display: flex; gap: 2px; align-items: center; }

.topbar nav a {
    padding: 8px 12px; border-radius: 10px; color: var(--text);
    font-weight: 500; font-size: 14px; text-decoration: none !important;
    transition: background var(--transition), color var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
}
.topbar nav a:hover { background: var(--bg-3); }
.topbar nav a.aktif {
    background: var(--mor);
    color: white;
    box-shadow: 0 2px 8px rgba(124,58,237,.3);
}

.theme-toggle {
    background: var(--bg-3); border: none; cursor: pointer;
    width: 38px; height: 38px; border-radius: 50%;
    font-size: 17px; color: var(--text);
    transition: background var(--transition), transform var(--transition);
    display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--border); transform: rotate(15deg); }

/* ===== Butonlar ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 18px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px; cursor: pointer;
    border: none; text-decoration: none !important;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--mor); color: white;
    box-shadow: 0 2px 8px rgba(124,58,237,.25);
}
.btn-primary:hover {
    background: var(--mor-koyu);
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--bg-3); border-color: var(--text-3); }
.btn-ghost { background: var(--bg-3); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===== Kart ===== */
.card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }

/* ===== Form ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; margin-bottom: 7px; font-weight: 600; font-size: 14px;
}
.form-control {
    width: 100%; padding: 12px 14px;
    background: var(--bg-2); color: var(--text);
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-control:focus {
    outline: none; border-color: var(--mor);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
textarea.form-control { resize: vertical; min-height: 90px; }

/* ===== Alert ===== */
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
}
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #d1fae5; color: #065f46; }
[data-tema="koyu"] .alert-error { background: #4c1d1d; color: #fca5a5; }
[data-tema="koyu"] .alert-success { background: #064e3b; color: #6ee7b7; }

/* ===== Landing ===== */
.landing-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
    color: white;
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(167,139,250,.3), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(244,114,182,.2), transparent 50%);
    pointer-events: none;
}
.landing-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 32px;
    position: relative; z-index: 1;
}
.landing-logo { font-size: 26px; font-weight: 800; color: white; }
.landing-hero-content {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 40px 24px;
    position: relative; z-index: 1;
}
.landing-hero-content h1 {
    font-size: clamp(32px, 6vw, 56px); font-weight: 800;
    margin-bottom: 16px; line-height: 1.1;
    letter-spacing: -1px;
}
.landing-hero-content p {
    font-size: clamp(16px, 2vw, 20px); opacity: .9;
    max-width: 600px; margin-bottom: 32px;
}
.landing-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.landing-cta .btn { padding: 14px 28px; font-size: 16px; }

.landing-header .btn-clear {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px);
}
.landing-header .btn-clear:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}
.landing-header .btn-light {
    background: #ffffff !important;
    color: #6d28d9 !important;
    border: none !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}
.landing-header .btn-light:hover {
    background: #f5f3ff !important;
    color: #5b21b6 !important;
}

.preview-posts {
    margin-top: 48px; display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 900px; width: 100%;
}
.preview-post {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius); padding: 16px; text-align: left;
    backdrop-filter: blur(10px);
    transition: transform var(--transition);
}
.preview-post:hover { transform: translateY(-3px); }
.preview-post h4 { font-size: 14px; opacity: .75; margin-bottom: 6px; }
.preview-post p { font-size: 14px; opacity: .95; margin: 0; }

/* ===== Auth ===== */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: var(--bg-2);
}
.auth-box {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 18px; padding: 36px 32px;
    width: 100%; max-width: 420px;
    box-shadow: var(--shadow-lg);
}
.auth-box h1 { text-align: center; margin-bottom: 8px; font-size: 26px; }
.auth-box .alt {
    text-align: center; margin-top: 20px;
    font-size: 14px; color: var(--text-2);
}

/* ===== Post ===== */
.post {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow var(--transition);
    animation: postFadeIn .4s ease;
}
.post:hover { box-shadow: var(--shadow); }

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

.post-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
}
.post-head > div { min-width: 0; flex: 1; }

.post-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--bg-3);
}

.post-user {
    font-weight: 700; font-size: 15px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 6px;
}
.post-user a { color: var(--text); }

.post-meta {
    font-size: 12px; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.post-badge {
    align-self: flex-start; margin-top: 2px;
    font-size: 11px; padding: 4px 10px;
    background: var(--mor-bg); color: var(--mor);
    border-radius: 20px; font-weight: 600;
    white-space: nowrap;
}
[data-tema="koyu"] .post-badge { color: var(--mor-acik); }

.post-body { padding: 0 16px 12px; }
.post-body h3 { font-size: 17px; margin-bottom: 6px; line-height: 1.3; }
.post-body h3 + p { margin-top: 6px; }
.post-body p {
    color: var(--text);
    white-space: pre-wrap; word-break: break-word;
    font-size: 15px;
}

.post-media { position: relative; background: var(--bg-3); }
.post-media img, .post-media video {
    width: 100%; display: block;
    max-height: 700px; object-fit: cover;
}
.post-media.blurred img, .post-media.blurred video {
    filter: blur(30px) brightness(.6);
    pointer-events: none;
    user-select: none;
}
.post-media .lock-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; color: white; text-align: center;
    padding: 20px;
    background: rgba(0,0,0,.35);
}
.post-media .lock-overlay .icon { font-size: 46px; }
.post-media .lock-overlay p { font-size: 14px; opacity: .95; }

/* ===== Emoji Row ===== */
.emoji-row {
    display: flex; gap: 2px;
    padding: 10px 12px 8px;
    border-top: 1px solid var(--border);
    align-items: center;
    flex-wrap: wrap;
}
.emoji-btn {
    background: none; border: none; font-size: 22px; cursor: pointer;
    padding: 6px 8px; border-radius: 10px;
    transition: transform .15s ease, background var(--transition);
    line-height: 1;
}
.emoji-btn:hover {
    transform: scale(1.3) rotate(-5deg);
    background: var(--bg-3);
}
.emoji-btn:active { transform: scale(1.1); }
.emoji-btn.aktif {
    background: var(--mor-bg);
    transform: scale(1.15);
}
.emoji-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}
.emoji-row .reaction-count {
    margin-left: auto;
    padding-left: 10px;
    border-left: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
}

/* ===== Post Actions ===== */
.post-actions {
    display: flex; gap: 4px;
    padding: 6px 8px 8px;
    border-top: 1px solid var(--border);
}
.post-action {
    flex: 1; background: none; border: none; cursor: pointer;
    padding: 9px; border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background var(--transition), color var(--transition);
    font-family: inherit;
}
.post-action:hover { background: var(--bg-3); color: var(--text); }
.post-action.reacted { color: var(--mor); }

/* ===== Yorumlar ===== */
.comments {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    animation: slideDown .25s ease;
}
@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 1000px; }
}

.comment {
    display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px;
    animation: commentFadeIn .25s ease;
}
@keyframes commentFadeIn {
    from { opacity: 0; transform: translateX(-4px); }
    to   { opacity: 1; transform: translateX(0); }
}
.comment-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.comment-body { flex: 1; min-width: 0; }
.comment-author {
    font-weight: 700; font-size: 13px;
    display: flex; align-items: center; gap: 6px;
}
.comment-author .zaman { font-weight: 400; color: var(--text-2); font-size: 11px; }
.comment-text { color: var(--text); word-break: break-word; margin-top: 2px; }

.comment-form {
    display: flex; gap: 8px; margin-top: 12px;
    align-items: center;
}
.comment-form input { flex: 1; padding: 10px 14px; font-size: 14px; }
.comment-form .btn { padding: 9px 16px; font-size: 13px; }

/* ===== FAB ===== */
.fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--mor), var(--mor-acik));
    color: white; font-size: 28px; line-height: 1;
    border: none; cursor: pointer;
    box-shadow: 0 8px 24px rgba(124,58,237,.4);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none !important;
    z-index: 90;
    transition: transform var(--transition), box-shadow var(--transition);
}
.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(124,58,237,.5);
}

/* ===== Empty State ===== */
.empty {
    text-align: center; padding: 60px 20px;
    color: var(--text-2);
}
.empty .icon { font-size: 56px; margin-bottom: 14px; opacity: .8; }
.empty h3 { color: var(--text); margin-bottom: 8px; font-size: 18px; }

/* ===== Create Tabs ===== */
.create-tabs {
    display: flex; gap: 6px;
    overflow-x: auto; padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}
.create-tabs::-webkit-scrollbar { display: none; }
.create-tab {
    padding: 9px 16px; border-radius: 22px;
    background: var(--bg-3);
    color: var(--text); border: none; cursor: pointer;
    font-size: 13px; font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition);
    font-family: inherit;
}
.create-tab:hover { background: var(--border); }
.create-tab.aktif {
    background: var(--mor);
    color: white;
    box-shadow: 0 2px 8px rgba(124,58,237,.3);
}

/* ===== Story Bar ===== */
.story-bar {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 16px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    scrollbar-width: none;
    align-items: flex-start;
}
.story-bar::-webkit-scrollbar { display: none; }

.story-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    cursor: pointer;
    min-width: 76px;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.story-item:hover { transform: scale(1.05); }

.story-avatar-wrap {
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    line-height: 0;
    animation: gradientRotate 3s linear infinite;
    background-size: 200% 200%;
}
.story-mine .story-avatar-wrap {
    background: linear-gradient(135deg, var(--mor), var(--mor-acik));
    background-size: 200% 200%;
}
@keyframes gradientRotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.story-avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    border: 3px solid var(--bg);
    display: flex; align-items: center; justify-content: center;
    box-sizing: content-box;
}
.story-avatar-add {
    font-size: 30px; font-weight: 300;
    color: var(--mor);
    background: var(--mor-bg);
    border: 3px solid var(--bg);
}
.story-name {
    font-size: 12px; font-weight: 600;
    color: var(--text);
    max-width: 76px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: center;
}
.story-mine .story-name { color: var(--mor); }

/* ===== Story Viewer ===== */
.story-viewer {
    position: fixed; inset: 0;
    background: #000;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    animation: storyFadeIn .2s;
}
@keyframes storyFadeIn { from { opacity: 0 } to { opacity: 1 } }

.story-image {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.story-progress {
    position: absolute; top: 12px; left: 12px; right: 12px;
    height: 3px;
    background: rgba(255,255,255,.25);
    border-radius: 3px; z-index: 2;
    overflow: hidden;
}
.story-progress-bar {
    height: 100%; background: white; width: 0;
}

.story-header {
    position: absolute; top: 26px; left: 16px; right: 16px;
    display: flex; align-items: center; gap: 10px;
    color: white; z-index: 2;
}
.story-viewer-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid white;
}
.story-viewer-info { display: flex; flex-direction: column; font-size: 13px; }
.story-viewer-info strong { font-weight: 700; }
.story-viewer-info span { opacity: .8; font-size: 11px; }
.story-close {
    margin-left: auto; background: none; border: none;
    color: white; font-size: 26px; cursor: pointer;
    padding: 0 10px;
}

.story-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 42px; color: white; cursor: pointer;
    padding: 20px; user-select: none; opacity: .7; z-index: 2;
    transition: opacity var(--transition);
}
.story-nav:hover { opacity: 1; }
.story-prev { left: 0; }
.story-next { right: 0; }

/* ===== Toast ===== */
.toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.9);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px; font-weight: 500;
    z-index: 10000;
    animation: toastIn .3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .topbar-inner { padding: 0 12px; height: 56px; }
    .topbar nav a span.label { display: none; }
    .topbar nav a { padding: 8px 10px; }
    .logo { font-size: 20px; }
    .container, .container-wide { padding: 0 12px; }
    .card { padding: 16px; }
    .post-head { padding: 12px 14px; }
    .post-body { padding: 0 14px 12px; }
    .landing-header { padding: 16px 20px; }
    .story-avatar { width: 60px; height: 60px; }
    .story-item { min-width: 68px; }
    .fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
    .emoji-btn { font-size: 20px; padding: 5px 6px; }
}

/* ===== Post Medya Sabit Yükseklik ===== */
.post-media {
    background: var(--bg-3);
    max-height: 500px;
    overflow: hidden;
}

.post-media img,
.post-media video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    .post-media,
    .post-media img,
    .post-media video {
        height: 350px;
        max-height: 350px;
    }
}

/* ===== Bildirim Zili ===== */
.notif-wrap {
    position: relative;
    display: inline-flex;
}

.notif-bell {
    background: var(--bg-3); border: none; cursor: pointer;
    width: 38px; height: 38px; border-radius: 50%;
    font-size: 17px; color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    transition: background var(--transition);
}
.notif-bell:hover { background: var(--border); }

.notif-count {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 18px; height: 18px;
    background: #ef4444; color: white;
    font-size: 11px; font-weight: 700;
    border-radius: 10px;
    display: none;
    align-items: center; justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg);
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    animation: dropIn .2s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notif-item {
    display: flex; gap: 12px;
    padding: 12px 14px;
    text-decoration: none !important;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.notif-item:hover { background: var(--bg-2); }
.notif-item:last-child { border-bottom: none; }
.notif-item.notif-unread { background: var(--mor-bg); }
[data-tema="koyu"] .notif-item.notif-unread { background: rgba(124,58,237,.1); }

.notif-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.notif-content { flex: 1; min-width: 0; }
.notif-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
    word-break: break-word;
}
.notif-text strong { font-weight: 700; }
.notif-time {
    font-size: 11px;
    color: var(--text-2);
    margin-top: 3px;
}

@media (max-width: 640px) {
    .notif-dropdown { width: 280px; right: -60px; }
}

/* ===== Mesajlaşma ===== */
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: msgIn .2s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.other { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}
.chat-msg.mine .chat-bubble {
    background: var(--mor);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-msg.other .chat-bubble {
    background: var(--bg-3);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.chat-time {
    font-size: 11px;
    color: var(--text-2);
    margin-top: 4px;
    padding: 0 4px;
}

/* Ana sayfa (landing) hero CTA butonları */
.landing-cta .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: transform .15s, box-shadow .15s, background .15s;
}

.landing-cta .btn-light {
    background: #ffffff;
    color: #1a0b2e;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 24px rgba(255,255,255,.25);
}

.landing-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,255,255,.35);
}

.landing-cta .btn-clear {
    background: rgba(255,255,255,.12);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,.55);
    backdrop-filter: blur(8px);
}

.landing-cta .btn-clear:hover {
    background: rgba(255,255,255,.22);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ===== Mobil topbar düzeltme ===== */
@media (max-width: 640px) {
    .topbar-inner {
        padding: 0 10px;
        gap: 6px;
    }

    /* Navigasyonu yatay kaydırılabilir yap */
    .topbar nav {
        flex: 1;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-right: 4px;
    }
    .topbar nav::-webkit-scrollbar { display: none; }

    /* İkonlar küçülsün */
    .topbar nav a {
        padding: 8px 9px;
        font-size: 16px;
        flex-shrink: 0;
    }

    /* Tema butonu her zaman en sağda sabit kalsın */
    .theme-toggle {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-left: 4px;
    }

    /* Bildirim zili de sabit kalsın */
    .notif-wrap {
        flex-shrink: 0;
    }
    .notif-bell {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* Bildirim dropdown mobilde ekrana sığsın */
    .notif-dropdown {
        width: calc(100vw - 24px);
        right: -80px;
        max-width: 340px;
    }
}

/* Çok küçük ekranlar için ekstra */
@media (max-width: 380px) {
    .topbar nav a {
        padding: 7px 7px;
        font-size: 15px;
    }
    .theme-toggle,
    .notif-bell {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}