/* ============================================
   SOHBETROOM - ANA TASARIM SİSTEMİ
   Premium Mor/Pembe Gradient + Glassmorphism
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS DEĞİŞKENLERİ ---- */
:root {
    /* Ana Renkler */
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #D946EF;
    --accent: #F472B6;
    --accent-light: #F9A8D4;

    /* Gradientler */
    --gradient-main: linear-gradient(135deg, #8B5CF6, #D946EF, #F472B6);
    --gradient-dark: linear-gradient(135deg, #0f0520, #1a0a2e, #2d1b4e);
    --gradient-card: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(217,70,239,0.08));
    --gradient-btn: linear-gradient(135deg, #8B5CF6, #D946EF);
    --gradient-btn-hover: linear-gradient(135deg, #7C3AED, #C026D3);
    --gradient-pink: linear-gradient(135deg, #F472B6, #EC4899, #DB2777);
    --gradient-warm: linear-gradient(135deg, #F59E0B, #EF4444, #EC4899);
    --gradient-cool: linear-gradient(135deg, #06B6D4, #8B5CF6, #D946EF);
    --gradient-hero: linear-gradient(180deg, rgba(15,5,32,0) 0%, rgba(26,10,46,0.8) 100%);

    /* Arkaplan */
    --bg-dark: #0f0520;
    --bg-medium: #1a0a2e;
    --bg-light: #2d1b4e;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.08);
    --bg-glass: rgba(255,255,255,0.06);
    --bg-glass-strong: rgba(255,255,255,0.1);
    --bg-input: rgba(255,255,255,0.08);

    /* Metin */
    --text-white: #ffffff;
    --text-primary: rgba(255,255,255,0.95);
    --text-secondary: rgba(255,255,255,0.65);
    --text-muted: rgba(255,255,255,0.4);
    --text-accent: #D946EF;

    /* Border */
    --border-glass: rgba(255,255,255,0.1);
    --border-glass-strong: rgba(255,255,255,0.18);
    --border-glow: rgba(139,92,246,0.3);

    /* Gölge */
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(139,92,246,0.3);
    --shadow-glow-pink: 0 0 30px rgba(217,70,239,0.3);
    --shadow-btn: 0 8px 25px rgba(139,92,246,0.35);

    /* Boyutlar */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Tipografi */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Navbar */
    --navbar-height: 70px;

    /* Geçişler */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---- RESET & TEMEL ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-dark);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    animation: floatOrb 20s ease-in-out infinite;
}

body::before {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, 50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, -30px) scale(1.05); }
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--secondary));
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(15, 5, 32, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(15, 5, 32, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.navbar-brand .logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: inherit;
}

.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--text-white);
    background: var(--bg-glass);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
}

.navbar-menu .icon {
    font-size: 1.15rem;
}

/* Navbar badge bildirimi */
.nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--gradient-pink);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg-dark);
    animation: badgePulse 2s ease-in-out infinite;
}

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

/* Navbar sağ taraf */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-glass-strong);
    cursor: pointer;
    transition: all var(--transition-base);
}

.navbar-avatar:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139,92,246,0.4);
}

/* Navbar dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover {
    background: var(--bg-glass);
    color: var(--text-white);
}

.nav-dropdown-menu .divider {
    height: 1px;
    background: var(--border-glass);
    margin: 6px 0;
}

.nav-dropdown-menu .danger {
    color: #F87171;
}

.nav-dropdown-menu .danger:hover {
    background: rgba(239,68,68,0.1);
}

/* Hamburger - Mobil */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-white);
    border-radius: 4px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- BUTONLAR ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(139,92,246,0.45);
    color: white;
}

.btn-secondary {
    background: var(--bg-glass-strong);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--border-glass-strong);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    box-shadow: 0 8px 25px rgba(239,68,68,0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(239,68,68,0.45);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 8px 25px rgba(16,185,129,0.35);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ---- KARTLAR ---- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass-strong);
}

.card-gradient {
    background: var(--gradient-card);
    border: 1px solid var(--border-glow);
}

/* ---- FORM ELEMANLARI ---- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    background: rgba(139,92,246,0.08);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

/* Select dropdown temaya uyumlu */
select.form-input,
select.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
select.form-input option,
select.form-select option {
    background: #1a0a2e;
    color: #e2e8f0;
}
[data-theme="light"] select.form-input option,
[data-theme="light"] select.form-select option {
    background: #ffffff;
    color: #1a0a2e;
}

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


.form-error {
    color: #F87171;
    font-size: 0.82rem;
    margin-top: 6px;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 6px;
}

/* Input icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 48px;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

/* ---- AVATAR ---- */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-glass-strong);
    flex-shrink: 0;
}

.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 100px; height: 100px; }
.avatar-xxl { width: 130px; height: 130px; }

.avatar-gradient {
    padding: 3px;
    background: var(--gradient-main);
    border: none;
}

.avatar-gradient img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-dark);
}

.avatar-online {
    position: relative;
}

.avatar-online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22C55E;
    border-radius: 50%;
    border: 2.5px solid var(--bg-dark);
    box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

/* ── Cinsiyet Badge (avatar sol alt) ── */
.avatar-gender-wrap { position: relative; display: inline-block; }
.gender-badge {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--bg-dark);
    z-index: 2;
    pointer-events: none;
}
.gender-male {
    background: #3B82F6;
    color: #fff;
}
.gender-female {
    background: #EC4899;
    color: #fff;
}
/* Profil sayfasında daha büyük badge */
.prf-avatar-ring .gender-badge {
    width: 28px;
    height: 28px;
    font-size: 16px;
    bottom: 2px;
    left: 2px;
    border-width: 3px;
}
[data-theme="light"] .gender-badge {
    border-color: #f5f0ff;
}

.avatar-offline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #6B7280;
    border-radius: 50%;
    border: 2.5px solid var(--bg-dark);
}

/* ---- BADGE ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-primary { background: rgba(139,92,246,0.2); color: var(--primary-light); }
.badge-pink { background: rgba(244,114,182,0.2); color: var(--accent); }
.badge-success { background: rgba(34,197,94,0.2); color: #4ADE80; }
.badge-danger { background: rgba(239,68,68,0.2); color: #F87171; }
.badge-warning { background: rgba(245,158,11,0.2); color: #FBBF24; }

/* ---- ALERT / FLASH ---- */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease;
}

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

.alert-success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.25);
    color: #4ADE80;
}

.alert-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.25);
    color: #F87171;
}

.alert-info {
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    color: #60A5FA;
}

.alert-warning {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    color: #FBBF24;
}

/* ---- TABs ---- */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
    border: none;
    background: none;
    font-family: var(--font-body);
}

.tab:hover {
    color: var(--text-white);
}

.tab.active {
    background: var(--gradient-btn);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239,68,68,0.2);
    color: #F87171;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ---- SAYFA İÇERİĞİ ---- */
.page-content {
    padding-top: calc(var(--navbar-height) + 24px);
    padding-bottom: 40px;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ---- GRID ---- */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- SIDEBAR LAYOUT ---- */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.layout-sidebar-left {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* ---- SKELETON LOADER ---- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255,255,255,0.08) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

/* ---- TOOLTIP ---- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(0,0,0,0.9);
    color: white;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
    z-index: 50;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ---- FOOTER ---- */
.footer {
    background: rgba(15, 5, 32, 0.6);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-glass);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-credit {
    text-align: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-credit p {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-credit a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--gradient-btn);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ---- LOADING SPINNER ---- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

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

/* ---- PAGINATION ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.pagination a {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.pagination a:hover {
    background: var(--bg-glass-strong);
    color: var(--text-white);
}

.pagination .active {
    background: var(--gradient-btn);
    color: white;
    border: none;
    box-shadow: var(--shadow-btn);
}

/* ---- UTILITY CLASSES ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.w-full { width: 100%; }
.hidden { display: none !important; }
.visible { display: block !important; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- ANIMASYONLAR ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Staggered children animation */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* ---- MOBIL BOTTOM NAV ---- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 5, 32, 0.95);
    backdrop-filter: blur(25px);
    border-top: 1px solid var(--border-glass);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 999;
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.7rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.mobile-nav-item .icon {
    font-size: 1.35rem;
}

.mobile-nav-item.active {
    color: var(--primary-light);
}

.mobile-nav-item.active .icon {
    text-shadow: 0 0 12px rgba(139,92,246,0.6);
}

.mobile-nav-item .mobile-badge {
    position: absolute;
    top: 0;
    right: 4px;
    min-width: 16px;
    height: 16px;
    background: var(--gradient-pink);
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---- LIKE ANİMASYON ---- */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.like-btn:hover {
    background: rgba(244,114,182,0.1);
    color: var(--accent);
}

.like-btn.liked {
    color: #F43F5E;
}

.like-btn.liked .like-icon {
    animation: likeAnimation 0.5s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ═══════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════ */
[data-theme="light"] {
    --bg-dark: #f7f3ff;
    --bg-medium: #ede9fe;
    --bg-light: #ddd6fe;
    --bg-card: rgba(255,255,255,0.9);
    --bg-card-hover: rgba(255,255,255,0.95);
    --bg-glass: rgba(255,255,255,0.7);
    --bg-glass-strong: rgba(255,255,255,0.85);
    --bg-input: rgba(255,255,255,0.8);

    --text-white: #1a0a2e;
    --text-primary: #1a0a2e;
    --text-secondary: rgba(26, 10, 46, 0.85);
    --text-muted: rgba(26, 10, 46, 0.6);

    --border: rgba(139,92,246,0.2);
    --border-glass: rgba(139,92,246,0.15);
    --border-glass-strong: rgba(139,92,246,0.25);

    --shadow-sm: 0 4px 15px rgba(139,92,246,0.08);
    --shadow-md: 0 8px 30px rgba(139,92,246,0.1);
    --shadow-lg: 0 20px 60px rgba(139,92,246,0.12);
    --shadow-glow: 0 0 30px rgba(139,92,246,0.1);
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f7f3ff, #ede9fe, #e0e7ff);
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
    opacity: 0.05;
}

[data-theme="light"] .navbar {
    background: rgba(247,243,255,0.92);
    border-bottom-color: rgba(139,92,246,0.12);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(247,243,255,0.98);
}

[data-theme="light"] .nav-dropdown-menu {
    background: rgba(255,255,255,0.98);
}

[data-theme="light"] .card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(139,92,246,0.15);
    box-shadow: 0 4px 20px rgba(139,92,246,0.08);
    color: var(--text-primary);
}

[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card h5,
[data-theme="light"] .card h6 {
    color: var(--text-white);
}

[data-theme="light"] .card p,
[data-theme="light"] .card span,
[data-theme="light"] .card div {
    color: var(--text-secondary);
}

[data-theme="light"] .card::before {
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.1), transparent);
}

[data-theme="light"] .footer {
    background: rgba(237,233,254,0.95);
}

[data-theme="light"] .mobile-nav {
    background: rgba(247,243,255,0.95);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f7f3ff;
}

[data-theme="light"] .avatar {
    border-color: rgba(139,92,246,0.2);
}

[data-theme="light"] .avatar-online::after {
    border-color: #f7f3ff;
}

[data-theme="light"] .nav-badge {
    border-color: #f7f3ff;
}

[data-theme="light"] .nav-theme-btn {
    background: rgba(139,92,246,0.08);
    border-color: rgba(139,92,246,0.15);
    color: var(--text-secondary);
}

[data-theme="light"] .nav-theme-btn:hover {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.25);
}

/* Light theme için genel text renkleri */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #1a0a2e !important;
}

[data-theme="light"] p,
[data-theme="light"] span:not(.badge):not(.nav-badge),
[data-theme="light"] div:not(.btn):not(.badge) {
    color: rgba(26, 10, 46, 0.85);
}

[data-theme="light"] a {
    color: #8B5CF6;
}

[data-theme="light"] a:hover {
    color: #7C3AED;
}

[data-theme="light"] .room-card-v2,
[data-theme="light"] .room-card {
    background: rgba(255,255,255,0.9);
    color: var(--text-primary);
}

[data-theme="light"] .room-card-v2 h3,
[data-theme="light"] .room-card h3 {
    color: #1a0a2e !important;
}

[data-theme="light"] .room-card-v2 p,
[data-theme="light"] .room-card p {
    color: rgba(26, 10, 46, 0.75) !important;
}

[data-theme="light"] .btn-outline {
    color: #8B5CF6;
    border-color: #8B5CF6;
}

[data-theme="light"] .btn-outline:hover {
    background: #8B5CF6;
    color: white;
}

/* ═══════════════════════════════════
   THEME TOGGLE BUTTON
   ═══════════════════════════════════ */
/* Navbar tema butonu */
.nav-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.1rem;
}

.nav-theme-btn:hover {
    background: var(--bg-glass-strong);
    color: var(--primary-light);
    border-color: var(--border-glass-strong);
}

/* Dropdown tema butonu */
.dropdown-theme-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-body);
    text-align: left;
}

.dropdown-theme-btn:hover {
    background: var(--bg-glass);
    color: var(--text-white);
}

/* Dark mode: show moon, hide sun */
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: flex; align-items: center; gap: 10px; }

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: flex; align-items: center; gap: 10px; }

/* Default (no attr or dark) */
.theme-icon-light { display: none; }
.theme-icon-dark { display: flex; align-items: center; gap: 10px; }

/* ═══════════════════════════════════
   NAVBAR LIVE SEARCH
   ═══════════════════════════════════ */
.nav-search-wrap {
    position: relative;
}

.nav-search-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.nav-search-toggle:hover {
    background: rgba(139,92,246,0.15);
    color: var(--primary-light);
}

.nav-search-box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: rgba(26,10,46,0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: none;
    overflow: hidden;
}

[data-theme="light"] .nav-search-box {
    background: rgba(255,255,255,0.98);
}

.nav-search-wrap.active .nav-search-box {
    display: block;
    animation: fadeInDown 0.25s ease;
}

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

.nav-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-glass);
}

.nav-search-input-wrap svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.nav-search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.nav-search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.nav-search-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}

.nav-search-close:hover { color: var(--text-white); }

.nav-search-results {
    max-height: 320px;
    overflow-y: auto;
}

.nsr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nsr-item:last-child { border-bottom: none; }

.nsr-item:hover {
    background: var(--bg-glass);
}

.nsr-item img,
.nav-search-results img,
#navSearchResults img,
#mobileSearchResults img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.nsr-info { min-width: 0; flex: 1; }
.nsr-name {
    display: block;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nsr-handle {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nsr-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════
   SHARE MODAL
   ═══════════════════════════════════ */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-modal {
    background: rgba(26,10,46,0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: scaleIn 0.25s ease;
}

[data-theme="light"] .share-modal {
    background: rgba(255,255,255,0.98);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-glass);
}

.share-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-white);
}

.share-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.share-modal-body {
    padding: 20px 24px 24px;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-glass);
}

.share-platform:hover {
    transform: translateY(-3px);
}

.sp-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.share-platform span:last-child {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sp-twitter { background: rgba(29,155,240,0.08); }
.sp-twitter .sp-icon { background: #1DA1F2; }
.sp-twitter:hover { background: rgba(29,155,240,0.15); border-color: #1DA1F2; }

.sp-facebook { background: rgba(24,119,242,0.08); }
.sp-facebook .sp-icon { background: #1877F2; }
.sp-facebook:hover { background: rgba(24,119,242,0.15); border-color: #1877F2; }

.sp-whatsapp { background: rgba(37,211,102,0.08); }
.sp-whatsapp .sp-icon { background: #25D366; }
.sp-whatsapp:hover { background: rgba(37,211,102,0.15); border-color: #25D366; }

.sp-telegram { background: rgba(0,136,204,0.08); }
.sp-telegram .sp-icon { background: #0088CC; }
.sp-telegram:hover { background: rgba(0,136,204,0.15); border-color: #0088CC; }

.share-link-row {
    display: flex;
    gap: 8px;
}

.share-link-row input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--gradient-btn);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.share-copy-btn:hover {
    transform: translateY(-1px);
}

/* ═══════════════════════════════════
   BOOKMARK BUTTON
   ═══════════════════════════════════ */
.bookmark-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.bookmark-btn:hover {
    color: #FBBF24;
    background: rgba(245,158,11,0.1);
}

.bookmark-btn.bookmarked {
    color: #FBBF24;
}

.bookmark-btn.bookmarked svg {
    fill: #FBBF24;
}

/* ═══════════════════════════════════
   LEVEL / POINT SYSTEM BADGES
   ═══════════════════════════════════ */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    vertical-align: middle;
    line-height: 1;
}

.level-badge-lg {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
}

.level-bronze {
    background: rgba(205,127,50,0.15);
    color: #CD7F32;
    border: 1px solid rgba(205,127,50,0.3);
}

.level-silver {
    background: rgba(192,192,192,0.15);
    color: #C0C0C0;
    border: 1px solid rgba(192,192,192,0.3);
}

.level-gold {
    background: rgba(255,215,0,0.15);
    color: #FFD700;
    border: 1px solid rgba(255,215,0,0.3);
}

.level-diamond {
    background: rgba(185,242,255,0.15);
    color: #00D4FF;
    border: 1px solid rgba(185,242,255,0.3);
    animation: diamondGlow 2s ease-in-out infinite;
}

@keyframes diamondGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(0,212,255,0.2); }
    50% { box-shadow: 0 0 12px rgba(0,212,255,0.4); }
}

/* Level progress bar */
.level-progress {
    margin-top: 8px;
}

.level-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.level-text {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ═══════════════════════════════════
   GRADIENT TEXT HELPER
   ═══════════════════════════════════ */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light theme */
[data-theme="light"] {
    --bg-dark: #f7f3ff;
    --bg-medium: #ede9fe;
    --bg-light: #ddd6fe;
    --bg-card: rgba(255,255,255,0.85);
    --bg-card-hover: rgba(255,255,255,0.95);
    --bg-glass: rgba(139,92,246,0.06);
    --bg-glass-strong: rgba(139,92,246,0.1);
    --bg-input: rgba(139,92,246,0.06);

    --text-white: #1a1a1a;
    --text-primary: rgba(0,0,0,0.9);
    --text-secondary: rgba(0,0,0,0.65);
    --text-muted: rgba(0,0,0,0.4);

    --border-glass: rgba(139,92,246,0.15);
    --border-glass-strong: rgba(139,92,246,0.25);
}

/* ═══════════════════════════════════
   PWA & MOBILE ENHANCEMENTS
   ═══════════════════════════════════ */

/* PWA Install Button */
#installBtn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 998;
    animation: slideInRight 0.5s ease;
}

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

/* Update Notification */
.update-notification {
    position: fixed;
    top: calc(var(--navbar-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    animation: slideDown 0.4s ease;
}

.update-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(26, 10, 46, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.update-content span {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pull to Refresh Indicator */
.pull-to-refresh-indicator {
    position: fixed;
    top: var(--navbar-height);
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 999;
    transition: transform var(--transition-base);
}

.pull-to-refresh-indicator.active {
    transform: translateX(-50%) translateY(0);
}

.pull-to-refresh-indicator .spinner {
    width: 24px;
    height: 24px;
    margin: 0;
}

.pull-to-refresh-indicator span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Swipeable Items */
.swipeable-item {
    position: relative;
    transition: transform var(--transition-base);
}

.swipeable-item.swiped-left {
    transform: translateX(-80px);
}

.swipeable-item .swipe-actions {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Keyboard Open State */
body.keyboard-open {
    height: 100vh;
    overflow: hidden;
}

body.keyboard-open .mobile-nav {
    display: none;
}

body.keyboard-open .page-content {
    padding-bottom: 20px;
}

/* Low Battery Mode */
body.low-battery-mode {
    animation: none !important;
}

body.low-battery-mode *::before,
body.low-battery-mode *::after {
    animation: none !important;
}

body.low-battery-mode .card:hover {
    transform: none;
}

/* Touch Feedback */
.touch-feedback {
    position: relative;
    overflow: hidden;
}

.touch-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.touch-feedback:active::after {
    width: 200px;
    height: 200px;
}

/* Safe Area Insets (iOS) */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .mobile-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

/* Prevent iOS Zoom on Input Focus */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Disable Text Selection on UI Elements */
.btn,
.navbar-menu a,
.mobile-nav-item,
.tab {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth Scrolling for iOS */
.modal,
.page-content {
    -webkit-overflow-scrolling: touch;
}

/* Hide Scrollbar on Mobile */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 3px;
        height: 3px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(139,92,246,0.3);
        border-radius: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 5, 32, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(26, 10, 46, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 400px;
    animation: toastSlideIn 0.4s ease;
    pointer-events: auto;
}

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

.toast.toast-success { border-color: rgba(34,197,94,0.4); }
.toast.toast-error { border-color: rgba(239,68,68,0.4); }
.toast.toast-warning { border-color: rgba(245,158,11,0.4); }
.toast.toast-info { border-color: rgba(59,130,246,0.4); }

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: #4ADE80; }
.toast-error .toast-icon { color: #F87171; }
.toast-warning .toast-icon { color: #FBBF24; }
.toast-info .toast-icon { color: #60A5FA; }

.toast-message {
    color: var(--text-white);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Network Status Indicator */
.network-status {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 998;
    transform: translateY(-100%);
    transition: transform var(--transition-base);
}

.network-status.show {
    transform: translateY(0);
}

.network-status.offline {
    background: rgba(239,68,68,0.95);
    color: white;
}

.network-status.online {
    background: rgba(34,197,94,0.95);
    color: white;
}

/* Share Button */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: var(--bg-glass-strong);
    color: var(--text-white);
    border-color: var(--border-glass-strong);
}

/* Lazy Loading Images */
img[data-src] {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

img[data-src].loaded {
    filter: blur(0);
}

/* Orientation Lock Message */
.orientation-message {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    text-align: center;
}

.orientation-message .icon {
    font-size: 4rem;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

.orientation-message h2 {
    font-size: 1.5rem;
    color: var(--text-white);
}

.orientation-message p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Landscape mode için */
@media (orientation: landscape) and (max-height: 500px) {
    .orientation-message {
        display: flex;
    }
}

/* ═══════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .layout-sidebar {
        grid-template-columns: 1fr;
    }

    .layout-sidebar-left {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    /* Navbar mobile */
    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 5, 32, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-menu a {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile bottom nav göster */
    .mobile-nav {
        display: block;
    }

    /* Page content padding */
    .page-content {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    /* Grid responsive */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Modal */
    .modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .modal-overlay {
        padding: 0;
    }

    /* Typography */
    .page-title {
        font-size: 1.6rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* Cards */
    .card {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    /* Container */
    .container,
    .container-sm,
    .container-lg {
        padding: 0 16px;
    }

    /* Toast */
    .toast-container {
        bottom: calc(60px + env(safe-area-inset-bottom) + 20px);
        left: 16px;
        right: 16px;
        transform: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    /* Install button */
    #installBtn {
        bottom: calc(60px + env(safe-area-inset-bottom) + 16px);
        right: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }

    .navbar-brand .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .card {
        padding: 16px;
    }
}

/* Desktop Large */
@media (min-width: 1400px) {
    .container-lg {
        max-width: 1600px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-nav,
    .footer,
    .btn,
    #installBtn,
    .toast-container,
    .update-notification {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .page-content {
        padding-top: 0;
    }

    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-glass: rgba(255,255,255,0.3);
        --border-glass-strong: rgba(255,255,255,0.5);
    }

    .card {
        border-width: 2px;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: light) {
    body:not([data-theme]) {
        --bg-dark: #f7f3ff;
        --bg-medium: #ede9fe;
        --text-primary: rgba(0,0,0,0.9);
        --text-secondary: rgba(0,0,0,0.65);
    }
}


/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

/* ============================================
   USER LIST STYLES
   ============================================ */
.user-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.user-list-item:last-child {
    border-bottom: none;
}

.user-list-item:hover {
    background: var(--bg-secondary);
}

.user-list-info {
    flex: 1;
    min-width: 0;
}

.user-list-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.user-list-name:hover {
    color: var(--primary);
}

.user-list-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.user-list-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ============================================
   SPINNER
   ============================================ */
.spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ============================================
   RESPONSIVE MODAL
   ============================================ */
@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 85vh;
    }
    
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .logo-icon-svg {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 8px 0;
}

.footer-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.footer-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-studio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--bg-secondary);
}

.footer-studio:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.studio-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.studio-text {
    font-size: 0.85rem;
}

.studio-text strong {
    font-weight: 600;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 32px 0 80px;
        margin-top: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-credits {
        flex-direction: column;
        gap: 4px;
    }
    
    .footer-divider {
        display: none;
    }
}

/* Nickname hint */
.edit-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 6px;
}

.edit-field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============================================
   CANLI AKTİVİTE AKIŞI
   ============================================ */
.live-activity-feed {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(139,92,246,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    font-weight: 600;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.activity-list {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.3) transparent;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s ease;
    animation: activitySlideIn 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
}

@keyframes activitySlideIn {
    to { opacity: 1; transform: translateX(0); }
}

.activity-item:hover {
    background: rgba(139,92,246,0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    position: relative;
    flex-shrink: 0;
}

.activity-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139,92,246,0.3);
}

.activity-type-icon {
    position: absolute;
    bottom: -2px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark, #0f0520);
}

.activity-type-post {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: #fff;
}

.activity-type-follow {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    color: #fff;
}

.activity-type-comment {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: #fff;
}

.activity-type-register {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: #fff;
}

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

.activity-text {
    font-size: 0.88rem;
    color: var(--text-secondary, #ccc);
    line-height: 1.5;
}

.activity-text strong {
    color: var(--text-white, #fff);
    font-weight: 600;
}

.activity-preview {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    margin-top: 4px;
}
