:root {
    --primary-color: #4361ee;
    --primary-light: #4cc9f0;
    --secondary-color: #3f37c9;
    --success-color: #4ad66d;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Light Mode Colors */
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #f8f9fa;
    --border-color: #e9ecef;
}

.dark-mode {
    /* Dark Mode Colors */
    --bg-color: #15202b;
    --text-color: #f8f9fa;
    --card-bg: #192734;
    --border-color: #38444d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}



.retweeted {
    color: #00c851 !important;
}


.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav i {
    font-size: 1.2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.theme-toggle i {
    position: absolute;
    transition: var(--transition);
    opacity: 0;
}

.theme-toggle .fa-moon {
    opacity: 1;
}

.dark-mode .theme-toggle .fa-moon {
    opacity: 0;
}

.dark-mode .theme-toggle .fa-sun {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Profile Header */
.profile-header {
    position: relative;
    margin-bottom: 20px;
}

.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
}

.profile-info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -75px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
    overflow: hidden;
    background-color: var(--card-bg);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-details {
    padding: 20px;
    margin-top: 20px;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-username {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.profile-username a {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}


.profile-bio {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.profile-meta i {
    margin-left: 5px;
}

.profile-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.profile-meta a:hover {
    text-decoration: underline;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-stats a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-stats a:hover {
    color: var(--primary-color);
}

.profile-stats strong {
    font-size: 1.1rem;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* Posts */
.profile-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    gap: 15px;
    border: 1px solid var(--border-color);
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: break-word;

}

.post-header {
    margin-bottom: 10px;
}

.post-author {
    font-weight: 700;
    margin-left: 5px;
}

.post-username, .post-time {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.post-text {
    margin-bottom: 15px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;

}

.post-image {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 400px;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
}

.post-actions button {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-actions button:hover {
    color: var(--primary-color);
}

.empty-posts {
    text-align: center;
    padding: 50px;
    color: var(--gray-color);
}

/* Main Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .profile-info-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-actions {
        margin-top: 20px;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .profile-banner {
        height: 150px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .profile-banner {
        height: 120px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-stats {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 15px;
    }
}












/* Layout - Twitter Style */
.three-columns-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* وسط */
.main-column {
    min-width: 0;
}

/* يمين ويسار */
.sidebar-left,
.sidebar-right {
    position: sticky;
    top: 90px;
    align-self: start;
}

/* بطاقات */
.widget-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.widget-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.widget-card ul {
    list-style: none;
    padding: 0;
}

.widget-card li {
    margin-bottom: 10px;
}

.widget-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.widget-card a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .three-columns-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }
}





.profile-website {
    margin-top: 10px;
}

.profile-website a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.profile-website a:hover {
    text-decoration: underline;
}

.profile-website i {
    margin-left: 5px;
}


/* إحصائيات الملف الشخصي */
.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: var(--primary-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* وضع الظلام */
.dark-mode .profile-stats {
    border-color: var(--dark-border-color);
}

.dark-mode .stat-label {
    color: var(--dark-text-secondary);
}