/* SupportSocial Default Theme - Main Styles */

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

:root {
    --primary-color: #1877f2;
    --primary-hover: #0f6ae5;
    --secondary-color: #e4e6eb;
    --secondary-text: #1c1e21;
    --success-color: #31a24c;
    --danger-color: #e53935;
    --warning-color: #f7b731;
    --info-color: #32c5ff;

    --bg-color: #f0f2f5;
    --surface-color: #ffffff;
    --muted-surface: #f7f8fa;
    --text-color: #111827;
    --text-light: #4b5563;
    --border-color: #e5e7eb;
    --shadow-color: rgba(17, 24, 39, 0.08);

    --card-radius: 12px;
    --transition-fast: 200ms ease;
}

/* Dark mode overrides */
:root[data-theme="dark"],
[data-theme="dark"] {
    --primary-color: #2d88ff;
    --primary-hover: #2374e1;
    --secondary-color: #3a3b3c;
    --secondary-text: #e4e6eb;
    --success-color: #42b72a;
    --danger-color: #f02849;
    --warning-color: #f7b731;
    --info-color: #32c5ff;

    --bg-color: #18191a;
    --surface-color: #242526;
    --muted-surface: #1f2021;
    --text-color: #e4e6eb;
    --text-light: #b0b3b8;
    --border-color: #3a3b3c;
    --shadow-color: rgba(0, 0, 0, 0.35);
}

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Navigation Bar */
.navbar {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.navbar .container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0.5rem 15px;
    gap: 1rem;
    max-width: 1400px;
}

.navbar-brand {
    justify-self: start;
}

.navbar-brand .logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* Search Bar */
.navbar-search {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--muted-surface);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    max-width: 600px;
    width: 100%;
}

.navbar-search svg {
    color: var(--text-light);
    flex-shrink: 0;
}

.navbar-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--text-color);
    font-size: 0.95rem;
}

.navbar-search input::placeholder {
    color: var(--text-light);
}

/* Navigation Menu */
.navbar-menu {
    list-style: none;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-self: end;
}

.navbar-menu li {
    display: flex;
    align-items: center;
    position: relative;
}

/* Nav Icon Buttons */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted-surface);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color var(--transition-fast);
    position: relative;
}

.nav-icon-btn:hover {
    background: var(--secondary-color);
}

.nav-icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.user-avatar:hover {
    transform: scale(1.05);
}

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

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-color);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1001;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.dropdown-email {
    font-size: 0.85rem;
    color: var(--text-light);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--muted-surface);
}

.dropdown-item.danger {
    color: var(--danger-color);
}

.dropdown-item.danger:hover {
    background: rgba(229, 57, 53, 0.1);
}

.dropdown-item svg {
    color: var(--text-light);
    flex-shrink: 0;
}

.dropdown-item.danger svg {
    color: var(--danger-color);
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--muted-surface);
    border-radius: 8px;
    padding: 0.25rem;
}

.lang-switch a {
    color: var(--text-color);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.lang-switch a.active {
    background-color: var(--surface-color);
    color: var(--primary-color);
    box-shadow: 0 1px 2px var(--shadow-color);
}

.lang-switch a:hover:not(.active) {
    background-color: var(--surface-color);
    opacity: 0.8;
}

/* Auth Buttons in Navbar */
.navbar-menu .btn-primary,
.navbar-menu .btn-secondary {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-menu .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.navbar-menu .btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.navbar-menu > li > a:not(.btn-primary):not(.btn-secondary) {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.navbar-menu > li > a:hover:not(.btn-primary):not(.btn-secondary) {
    background-color: var(--muted-surface);
}

.navbar-menu .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.navbar-menu .btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--secondary-text);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-logout {
    background-color: transparent !important;
    color: var(--danger-color) !important;
    border: 1px solid var(--danger-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

.btn-logout:hover {
    background-color: var(--danger-color) !important;
    color: white !important;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 2rem;
    box-shadow: 0 -4px 12px var(--shadow-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: center;
}

.footer-brand .title {
    margin: 0;
    font-weight: 800;
    color: var(--text-color);
}

.footer-brand small {
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

.footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.footer-meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
}

/* Home Page */
.home-page {
    padding: 2rem 0 3rem;
}

.home-hero {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.12), rgba(24, 119, 242, 0.04));
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 24px var(--shadow-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.home-hero .eyebrow {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

.home-hero h1 {
    margin: 0;
    font-size: 2.2rem;
    color: var(--text-color);
}

.home-hero .subtitle {
    margin: 0.6rem 0 1.2rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-actions .btn-primary,
.home-actions .btn-secondary {
    min-width: 150px;
    text-align: center;
}

.home-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.2rem;
    box-shadow: 0 10px 20px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.feature-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    background: var(--muted-surface);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
}

.stat-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--muted-surface);
    color: var(--text-color);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle .dot {
    display: none;
}

.theme-toggle [data-theme-label] {
    display: none;
}

/* Auth Pages */
.auth-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 0 4rem;
}

.auth-hero {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 520px;
}

.auth-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.75rem;
    box-shadow: 0 20px 38px var(--shadow-color);
    max-width: 420px;
    width: 100%;
    margin-left: auto;
}

.auth-header {
    margin-bottom: 1rem;
}

.auth-header h1,
.auth-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.auth-header p {
    margin: 0.35rem 0 0;
    color: var(--text-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--muted-surface);
    color: var(--text-color);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.18);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    background: var(--muted-surface);
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-meta {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background: rgba(224, 36, 94, 0.1);
    color: #c81e5b;
    border-color: rgba(224, 36, 94, 0.25);
}

small.text-danger {
    color: var(--danger-color);
    font-size: 0.85rem;
}

/* Profile Page */
.profile-page {
    background-color: var(--surface-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 12px 24px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.profile-header {
    padding: 1rem;
}

.cover-image {
    width: 100%;
    height: 200px;
    background-color: var(--bg-color);
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

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

.profile-info {
    display: flex;
    gap: 2rem;
    padding: 2rem 1rem;
    align-items: flex-start;
}

.avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface-color);
    margin-top: -60px;
    box-shadow: 0 6px 18px var(--shadow-color);
}

.info h1 {
    margin: 0;
    font-size: 2rem;
}

.username {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.bio {
    margin: 1rem 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        grid-template-columns: 1fr;
        padding: 0.5rem 10px;
    }

    .navbar-search {
        display: none;
    }
    
    .navbar-brand {
        justify-self: center;
    }

    .navbar-brand .logo {
        font-size: 1.5rem;
    }

    .navbar-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--surface-color);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 8px var(--shadow-color);
        padding: 0.5rem;
        justify-content: space-around;
        gap: 0;
        z-index: 1000;
    }
    
    .navbar-menu .lang-switch {
        display: none;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .user-dropdown {
        bottom: calc(100% + 10px);
        top: auto;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .lang-switch a {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .auth-card {
        margin: 0 auto;
    }

    .auth-title {
        font-size: 2rem;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .avatar {
        margin: -60px auto 0;
    }
}

/* Utility Classes */
html[dir="rtl"] .navbar-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .profile-info {
    flex-direction: row-reverse;
}

/* Feed Layout - Facebook Style */
.feed-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.feed-container {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebars */
.sidebar {
    position: sticky;
    top: 70px;
    height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 0.75rem;
    padding: 0 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.sidebar-item:hover {
    background: var(--muted-surface);
}

.sidebar-item svg {
    color: var(--text-light);
    flex-shrink: 0;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border: 2px solid var(--surface-color);
    border-radius: 50%;
}

.sidebar-profile {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-contact span {
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-ad {
    background: var(--muted-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Theme Toggle Icons */
.theme-toggle svg {
    transition: opacity var(--transition-fast);
}

[data-theme="dark"] .icon-moon {
    display: none !important;
}

[data-theme="dark"] .icon-sun {
    display: block !important;
}

[data-theme="light"] .icon-moon {
    display: block !important;
}

[data-theme="light"] .icon-sun {
    display: none !important;
}

/* Create Post Box */
.create-post {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.create-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.create-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.create-post-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.create-post-input {
    flex: 1;
}

.create-post-input input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--muted-surface);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.create-post-input input:hover {
    background: var(--bg-color);
}

.create-post-input input:focus {
    outline: none;
    cursor: text;
}

.create-post-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
}

.create-post-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.create-post-btn:hover {
    background: var(--muted-surface);
}

.create-post-btn .icon {
    font-size: 1.5rem;
}

/* Post Card */
.post-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.post-header {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

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

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

.post-user-name {
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
}

.post-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-menu-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.post-menu-btn:hover {
    background: var(--muted-surface);
}

.post-content {
    padding: 0 1rem 1rem;
}

.post-text {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-stat {
    cursor: pointer;
    transition: text-decoration var(--transition-fast);
}

.post-stat:hover {
    text-decoration: underline;
}

.post-actions {
    display: flex;
    padding: 0.25rem 0.5rem;
}

.post-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.post-action-btn:hover {
    background: var(--muted-surface);
}

.post-action-btn.active {
    color: var(--primary-color);
}

.post-action-btn .icon {
    font-size: 1.25rem;
}

/* Comments Section */
.post-comments {
    padding: 0.5rem 1rem 1rem;
}

.comment {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-bubble {
    background: var(--muted-surface);
    padding: 0.5rem 0.75rem;
    border-radius: 18px;
    display: inline-block;
}

.comment-author {
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.85rem;
    margin: 0;
}

.comment-text {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0.15rem 0 0;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.comment-action {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: text-decoration var(--transition-fast);
}

.comment-action:hover {
    text-decoration: underline;
}

.add-comment {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.add-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.add-comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.add-comment-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--muted-surface);
    border-radius: 20px;
    padding: 0 0.75rem;
}

.add-comment-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.add-comment-input input:focus {
    outline: none;
}

.add-comment-input button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

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

.empty-state-text {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .feed-layout {
        grid-template-columns: 260px 1fr;
        gap: 1rem;
    }

    .sidebar-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .feed-layout {
        grid-template-columns: 1fr;
        padding: 0;
        margin: 0;
    }

    .sidebar-left {
        display: none;
    }

    .feed-container {
        margin: 0;
        max-width: 100%;
    }

    .create-post,
    .post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 768px) {
    .post-actions {
        gap: 0;
    }

    .post-action-btn {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .post-action-btn span {
        display: none;
    }

    .create-post-btn span {
        font-size: 0.85rem;
    }
}

/* RTL Support */
html[dir="rtl"] .create-post-header,
html[dir="rtl"] .post-header,
html[dir="rtl"] .comment {
    flex-direction: row-reverse;
}

html[dir="rtl"] .post-actions,
html[dir="rtl"] .create-post-actions {
    flex-direction: row-reverse;
}
