/**
 * Khafi - Modern Design
 * @author Ektml.com
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #07a2ac;
    --primary-dark: #058a93;
    --primary-light: #0ac4d1;
    --secondary: #6c5ce7;
    --accent: #fd79a8;
    
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-card: #1e2139;
    --bg-hover: #252a48;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a3bd;
    --text-muted: #6e7191;
    
    --border: #2d3250;
    --shadow: rgba(0, 0, 0, 0.3);
    
    --success: #00d4aa;
    --error: #ff6b9d;
    --warning: #ffa94d;
    --info: #4dabf7;
    
    --gradient-primary: linear-gradient(135deg, #07a2ac 0%, #0ac4d1 100%);
    --gradient-secondary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-accent: linear-gradient(135deg, #fd79a8 0%, #ffeaa7 100%);
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;
    
    --text-primary: #1a1d2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.page-transition-container {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
    filter: blur(4px);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.page-transition-container.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

body.is-leaving .page-transition-container {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(6px);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(7, 162, 172, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(108, 92, 231, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s;
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(7, 162, 172, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(108, 92, 231, 0.05) 0%, transparent 50%);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    background: rgba(30, 33, 57, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand .logo {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    transition: all 0.3s;
    position: relative;
}

.navbar-brand .logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s;
    border-radius: 2px;
}

.navbar-brand .logo:hover::after {
    width: 100%;
}

.navbar-center {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.navbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.user-menu-trigger {
    cursor: pointer;
    transition: all 0.3s;
}

.user-menu-trigger:hover {
    transform: scale(1.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.user-menu-trigger:hover .user-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 162, 172, 0.2);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

[data-theme="light"] .user-dropdown {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transform: rotate(-45deg);
}

.user-dropdown-header {
    padding: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.user-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.user-dropdown-menu {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 600;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-item.logout {
    color: var(--error);
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 157, 0.15);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.theme-switch:hover {
    border-color: var(--primary);
}

.theme-switch-slider {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-switch-slider i {
    font-size: 12px;
    color: white;
}

[data-theme="light"] .theme-switch-slider {
    transform: translateX(-28px);
    background: var(--gradient-secondary);
}

.theme-switch:active .theme-switch-slider {
    width: 28px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s;
    z-index: -1;
    border-radius: 12px;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link i {
    font-size: 18px;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(7, 162, 172, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(7, 162, 172, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-pro {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}

.btn-pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

[data-theme="light"] .btn-secondary {
    background: #ffffff;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.auth-container {
    width: 100%;
    max-width: 520px;
}

.auth-card {
    background: var(--bg-card);
    padding: 56px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

[data-theme="light"] .auth-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    position: relative;
}

.auth-card h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 3px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}

[data-theme="light"] .form-control {
    background: #ffffff;
}

[data-theme="light"] .form-control:focus {
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(7, 162, 172, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.8;
}

select.form-control {
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Home Page */
.home-page {
    display: grid;
    grid-template-columns: 300px 1fr 340px;
    gap: 32px;
    padding: 32px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    min-width: 0;
}

.sidebar, .sidebar-right {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar-right::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-right::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

.widget {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s;
}

[data-theme="light"] .widget {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.widget:hover {
    transform: none;
    box-shadow: 0 8px 30px var(--shadow);
    border-color: var(--primary);
}

.widget h3, .widget h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
}

.widget h3::after, .widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.widget p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.latest-users-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.latest-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: 12px;
    transition: all 0.3s;
}

.latest-user-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.latest-user-item .avatar {
    width: 40px;
    height: 40px;
    border-width: 2px;
}

.latest-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.latest-user-username {
    font-size: 12px;
    color: var(--text-muted);
}

.countries-list {
    list-style: none;
}

.countries-list li {
    margin-bottom: 10px;
}

.countries-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.countries-list a:hover {
    color: var(--primary-color);
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hashtag {
    background-color: var(--bg-darker);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.hashtag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Posts */
.create-post-box {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 2px dashed var(--border);
    transition: all 0.3s;
}

[data-theme="light"] .create-post-box {
    background: #ffffff;
}

.create-post-box:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.post-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .post-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
    border-color: var(--primary);
}

.post-card:hover::before {
    height: 100%;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.post-author {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
    transition: all 0.3s;
}

.avatar:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.post-author > div {
    flex: 1;
    min-width: 0;
}

.post-author h4 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.post-username {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.8;
    text-align: right;
}


.post-time {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-time::before {
    content: '•';
    color: var(--primary);
}

.post-country {
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: all 0.3s;
}

[data-theme="light"] .post-country {
    background: #f8f9fa;
}

.post-country:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.post-content {
    margin-bottom: 20px;
    line-height: 1.9;
}

.post-content p {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 16px;
    word-wrap: break-word;
}

.post-media {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-top: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.post-media:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.post-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-action {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

[data-theme="light"] .btn-action {
    background: #f8f9fa;
}

.btn-action:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.btn-action.liked {
    background: rgba(255, 107, 157, 0.15);
    color: var(--error);
    border-color: var(--error);
}

.btn-action i {
    font-size: 18px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: rgba(35, 134, 54, 0.15);
    border: 1px solid var(--success);
    color: #3fb950;
}

.alert-success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.alert-error {
    background-color: rgba(218, 54, 51, 0.15);
    border: 1px solid var(--error);
    color: #f85149;
}

.alert-error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--error);
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.alert-info {
    background-color: rgba(7, 162, 172, 0.15);
    border: 1px solid var(--primary);
    color: #07a2ac;
}

.alert-info::before {
    content: 'ℹ';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    margin-top: 100px;
    position: relative;
    transition: all 0.3s;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 800;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 14px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(-6px);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 20px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(7, 162, 172, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* Responsive */
@media (max-width: 992px) {
    .home-page {
        grid-template-columns: 1fr;
    }
    
    .sidebar, .sidebar-right {
        display: none;
    }
    
    .navbar-center {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        gap: 16px;
    }
    
    .navbar-center {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .user-dropdown {
        left: auto;
        right: 0;
    }
    
    .user-dropdown::before {
        left: auto;
        right: 20px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .home-page {
        grid-template-columns: 240px 1fr 280px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .home-page {
        grid-template-columns: 1fr;
    }
    
    .sidebar, .sidebar-right {
        display: none;
    }
    
    .navbar-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar .container {
        justify-content: space-between;
    }
    
    .navbar-center {
        display: none;
    }
    
    .navbar-left {
        gap: 0;
    }
    
    .navbar-left .user-menu-wrapper {
        display: none;
    }
    
    .navbar-brand .logo {
        font-size: 24px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .post-card {
        padding: 16px;
    }
    
    .home-page {
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .navbar-menu {
        gap: 2px;
    }
    
    .nav-link {
        padding: 6px 8px;
    }
    
    .post-author h4 {
        font-size: 14px;
    }
    
    .avatar {
        width: 40px;
        height: 40px;
    }
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f3f5;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e0;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}


/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

[data-theme="light"] .page-header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px dashed var(--border);
    transition: all 0.3s;
}

[data-theme="light"] .empty-state {
    background: #ffffff;
}

.empty-state i {
    font-size: 80px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: block;
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Countries List */
.countries-list {
    list-style: none;
}

.countries-list li {
    margin-bottom: 12px;
}

.countries-list a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 600;
}

.countries-list a:hover {
    background: var(--bg-hover);
    color: var(--primary);
    transform: translateX(-4px);
}

/* Hashtags */
.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hashtag {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s;
}

.hashtag:hover {
    color: var(--primary-light);
}

.hashtags .hashtag {
    background: var(--bg-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid var(--border);
}

[data-theme="light"] .hashtags .hashtag {
    background: #f0f7f8;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 15px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.auth-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Badge */
.badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-private {
    background: rgba(255, 107, 157, 0.15);
    color: var(--error);
    border: 1px solid var(--error);
}

.badge-public {
    background: rgba(0, 212, 170, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-featured {
    background: var(--gradient-secondary);
    color: white;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}
