/* ============================================================
   Avantajgame.net - Ana Stil Dosyasi
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #0b0b0d;
    --surface: #17171a;
    --surface-2: #1e1e22;
    --border: #26262a;
    --text: #eaeaea;
    --text-dim: #9a9aa2;
    --accent: #6c5ce7;
    --accent-2: #4f8cff;
    --danger: #ff5c5c;
    --success: #2ecc71;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

/* MASAUSTUNDE ORTALANMIS MOBIL UYGULAMA HISSI */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 64px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* ==================== UST BAR ==================== */
.top-bar {
    position: sticky;
    top: 0;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    background: rgba(23,23,26,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.menu-btn {
    background: none;
    border: none;
    width: 26px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.top-bar-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex: 1;
}

.top-bar-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.app-content {
    min-height: calc(100vh - 52px);
}

/* ==================== SOL YAN MENU ==================== */
.side-menu {
    position: fixed;
    top: 0; left: 0;
    width: 260px;
    height: 100%;
    background: var(--surface);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 300;
    padding-top: 52px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.side-menu.open { transform: translateX(0); }

.side-menu ul { list-style: none; }

.side-menu li a {
    display: block;
    padding: 16px 22px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.side-menu li a:active { background: var(--surface-2); }

.side-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 250;
    display: none;
}

.side-menu-overlay.open { display: block; }

/* ==================== SEKMELER ==================== */
.home-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 52px;
    background: var(--bg);
    z-index: 50;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
}

.tab-item.active {
    color: var(--text);
    border-bottom: 2px solid var(--accent-2);
}

/* ==================== GUEST CTA ==================== */
.guest-cta {
    text-align: center;
    padding: 36px 20px;
    border-bottom: 1px solid var(--border);
}

.guest-cta h2 { font-size: 19px; margin-bottom: 8px; }
.guest-cta p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }

.guest-cta-buttons { display: flex; gap: 10px; justify-content: center; }

/* ==================== BUTONLAR ==================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary.small, .btn-primary.small { padding: 6px 14px; font-size: 12px; }
.btn-secondary.danger { color: var(--danger); }

.full-width { width: 100%; }

/* ==================== FEED / POST KARTI ==================== */
.feed { padding-bottom: 10px; }

.empty-state {
    text-align: center;
    color: var(--text-dim);
    padding: 40px 20px;
    font-size: 14px;
}

.post-card {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.repost-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.post-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.post-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.post-display-name { font-weight: 700; }
.post-username, .post-time { color: var(--text-dim); }
.post-dot { color: var(--text-dim); }

.post-content {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.content-hashtag, .content-mention {
    color: var(--accent-2);
    font-weight: 600;
}

.quoted-post {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.quoted-author { font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; }

.post-actions {
    display: flex;
    gap: 18px;
    margin-top: 6px;
}

.post-action-form { display: inline; }

.post-action-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-action-btn.liked { color: var(--danger); }
.post-action-btn.danger { color: var(--danger); }

.comments-box {
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.comment-row { font-size: 13px; margin-bottom: 6px; }
.comment-author { font-weight: 700; margin-right: 6px; }

.comment-form { display: flex; gap: 8px; margin-top: 8px; }
.comment-form input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--text);
    font-size: 13px;
}
.comment-form button {
    background: var(--accent-2);
    border: none;
    color: #fff;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
}

/* ==================== FAB BUTONU ==================== */
.fab-button {
    position: fixed;
    bottom: 78px;
    right: calc(50% - 240px + 18px);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 28px;
    line-height: 54px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(108,92,231,0.45);
    z-index: 90;
}

@media (max-width: 480px) {
    .fab-button { right: 18px; }
}

/* ==================== ALT NAVIGASYON ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    background: rgba(23,23,26,0.95);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--border);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0;
    color: var(--text-dim);
    font-size: 10px;
    position: relative;
}

.nav-item.active { color: var(--accent-2); }
.nav-icon { font-size: 20px; }

.nav-badge {
    position: absolute;
    top: 2px;
    right: 22%;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
}

/* ==================== AUTH SAYFALARI ==================== */
.auth-body { padding-bottom: 0; }

.auth-wrapper {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 20px;
}

.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; text-align: center; }

.auth-errors {
    background: rgba(255,92,92,0.1);
    border: 1px solid rgba(255,92,92,0.4);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.auth-errors p { color: var(--danger); font-size: 13px; margin: 4px 0; }

.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 13px; color: var(--text-dim); margin-top: 10px; }

.auth-form input, .auth-form textarea, .auth-form select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.auth-form input:focus, .auth-form textarea:focus { border-color: var(--accent-2); }

.auth-submit-btn {
    margin-top: 18px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-dim); }
.auth-switch a { color: var(--accent-2); font-weight: 600; }

/* ==================== SAYFA BASLIGI ==================== */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 52px;
    background: var(--bg);
    z-index: 40;
}

.page-header h1 { font-size: 17px; }
.back-link { font-size: 20px; }

/* ==================== GONDERI OLUSTURMA ==================== */
.create-post-form { padding: 16px; }

.create-post-form textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
}

.form-hint { font-size: 12px; color: var(--text-dim); margin: 8px 0 16px; }

/* ==================== KESFET / TREND ==================== */
.trend-list { padding: 6px 0; }

.trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.trend-rank { color: var(--text-dim); font-weight: 700; width: 30px; }
.trend-info { display: flex; flex-direction: column; }
.trend-tag { font-weight: 700; }
.trend-count { font-size: 12px; color: var(--text-dim); }
.hashtag-usage { padding: 10px 16px; color: var(--text-dim); font-size: 13px; }

/* ==================== PROFIL ==================== */
.profile-cover {
    height: 130px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    position: relative;
}

.profile-cover img { width: 100%; height: 100%; object-fit: cover; }

.profile-header { padding: 0 16px 16px; position: relative; }

.profile-avatar-wrap { margin-top: -36px; margin-bottom: 8px; }

.profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
    background: var(--surface-2);
}

.profile-edit-btn, .profile-follow-form {
    float: right;
    margin-top: 12px;
}

.profile-display-name { font-size: 19px; margin-top: 6px; clear: both; }
.profile-username { color: var(--text-dim); font-size: 13px; }
.profile-bio { margin-top: 10px; font-size: 14px; }

.profile-stats { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.profile-stats strong { color: var(--text); }

/* ==================== BILDIRIMLER ==================== */
.notification-list { padding-bottom: 10px; }

.notification-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.notification-row.unread { background: rgba(108,92,231,0.06); }

.notification-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.notification-text { flex: 1; font-size: 13px; }
.notification-time { font-size: 11px; color: var(--text-dim); }
.notification-icon { font-size: 16px; }

/* ==================== MESAJLAR ==================== */
.conversation-list { padding-bottom: 10px; }

.conversation-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.conversation-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.conversation-info { flex: 1; display: flex; flex-direction: column; }
.conversation-name { font-weight: 700; font-size: 14px; }
.conversation-preview { font-size: 12px; color: var(--text-dim); }
.conversation-time { font-size: 11px; color: var(--text-dim); }

.thread-box { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 50vh; }

.thread-message { max-width: 75%; display: flex; flex-direction: column; }
.thread-message.mine { align-self: flex-end; align-items: flex-end; }
.thread-message.theirs { align-self: flex-start; align-items: flex-start; }

.thread-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    background: var(--surface-2);
}

.thread-message.mine .thread-bubble {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
}

.thread-time { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

.thread-form {
    position: sticky;
    bottom: 64px;
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.thread-form input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text);
}

.thread-form button {
    background: var(--accent-2);
    border: none;
    color: #fff;
    border-radius: 20px;
    padding: 10px 18px;
}

/* ==================== ADMIN ==================== */
.admin-stats { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }

.admin-stat-card {
    flex: 1 1 40%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.admin-stat-number { display: block; font-size: 22px; font-weight: 800; color: var(--accent-2); }
.admin-stat-label { font-size: 12px; color: var(--text-dim); }

.admin-links { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }

.admin-link-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
}

.admin-table-wrap { overflow-x: auto; padding: 0 8px 16px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.admin-table select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px; }
.admin-post-content { white-space: normal; max-width: 220px; }
.admin-inline-actions { display: flex; gap: 6px; }

.status-badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.status-active { background: rgba(46,204,113,0.15); color: var(--success); }
.status-banned { background: rgba(255,92,92,0.15); color: var(--danger); }
.status-suspended { background: rgba(255,193,7,0.15); color: #ffc107; }

/* ==================== YAKINDA SAYFASI ==================== */
.coming-soon {
    text-align: center;
    padding: 80px 24px;
}

.coming-soon-icon { font-size: 46px; margin-bottom: 14px; }
.coming-soon h1 { font-size: 20px; margin-bottom: 8px; }
.coming-soon p { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }