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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #6366f1;
    --accent-hover: #5b21b6;
    --border: #333333;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, sans-serif;
    background: #C6E3FA;
    color: #333;
    font-size: 13px;
    min-height: 100vh;
}

/* Auth Styles - Classic 2008 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #C6E3FA;
    padding: 20px;
}

.auth-box {
    background: #F5F5F5;
    border: 2px solid #99CCFF;
    border-radius: 8px;
    padding: 30px;
    width: 320px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    margin-bottom: 25px;
}

.logo {
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: bold;
    color: #0066CC;
    text-shadow: 1px 1px 0 #fff;
    margin-bottom: 5px;
}

.logo-image {
    width: 120px;
    height: auto;
    margin-bottom: 8px;
}

.tagline {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.auth-form h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    font-weight: normal;
}

.auth-form input {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 12px;
    border: 1px solid #99CCFF;
    border-radius: 4px;
    font-size: 12px;
}

.auth-btn {
    width: 100%;
    padding: 8px;
    background: #0066CC;
    color: white;
    border: 1px solid #0052A3;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.auth-btn:hover {
    background: #0052A3;
}

.auth-switch {
    margin-top: 12px;
    font-size: 11px;
    color: #666;
}

.auth-switch a {
    color: #0066CC;
    text-decoration: none;
    font-weight: bold;
}

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

/* Main App - 2008 Twitter Style */
.main-app {
    background: #C6E3FA;
    min-height: 100vh;
}

.header {
    background: #0066CC;
    border-bottom: 2px solid #0052A3;
    padding: 8px 0;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.header .logo {
    font-family: Georgia, serif;
    font-size: 24px;
    color: white;
    text-shadow: none;
}

.header-logo-image {
    width: 80px;
    height: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background: #003366;
    color: white;
    border: 1px solid #002244;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
}

.logout-btn:hover {
    background: #002244;
}

.main-layout {
    max-width: 800px;
    margin: 15px auto;
    display: grid;
    grid-template-columns: 180px 1fr 220px;
    gap: 15px;
    padding: 0 15px;
}

.sidebar {
    background: #F5F5F5;
    border: 1px solid #99CCFF;
    border-radius: 6px;
    padding: 12px;
}

.profile-section {
    text-align: center;
    margin-bottom: 15px;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: #E0E0E0;
    border: 1px solid #CCC;
    border-radius: 3px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-weight: bold;
    font-size: 13px;
}

.stat-label {
    font-size: 10px;
    color: #666;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-link {
    color: #0066CC;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.nav-link:hover {
    background: #E6F2FF;
    text-decoration: none;
}

.nav-link.active {
    background: #E6F2FF;
    font-weight: bold;
    color: #003366;
}

.sidebar a {
    text-decoration: none;
    color: #0066CC;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Main Content - 2008 Style */
.main-content {
    background: white;
    border: 1px solid #99CCFF;
    border-radius: 6px;
}

.post-composer {
    padding: 12px;
    border-bottom: 1px solid #E6F2FF;
}

#postInput {
    width: 100%;
    min-height: 50px;
    border: 1px solid #99CCFF;
    border-radius: 3px;
    padding: 6px;
    font-family: 'Lucida Grande', Arial, sans-serif;
    font-size: 13px;
    resize: vertical;
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

#charCount {
    font-size: 11px;
    color: #666;
}

.post-btn {
    background: #0066CC;
    color: white;
    border: 1px solid #0052A3;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
}

.post-btn:hover {
    background: #0052A3;
}

.posts-container {
    padding: 0;
}

.post-card {
    background: white;
    border-bottom: 1px solid #E6F2FF;
    padding: 12px;
    cursor: default;
    transition: background-color 0.2s;
}

.post-card:last-child {
    border-bottom: none;
}

.post-card:hover {
    background: #F8F8F8;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.post-username {
    font-weight: bold;
    color: #0066CC;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.post-username:hover {
    color: #003366;
}

.post-time {
    font-size: 10px;
    color: #999;
    margin-left: 8px;
}

.post-content {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.empty-state {
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 30px;
}

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

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box input,
.trending {
    background: #F5F5F5;
    border: 1px solid #99CCFF;
    border-radius: 6px;
    padding: 8px;
}

.search-box input {
    width: 100%;
    border: none;
    font-size: 11px;
}

.search-box input:focus {
    outline: none;
}

.trending h4 {
    font-size: 13px;
    margin-bottom: 8px;
    color: #333;
}

.trend {
    margin-bottom: 3px;
}

.trend-text {
    color: #0066CC;
    font-size: 11px;
    cursor: pointer;
}

/* Modal Styles */
.modal-overlay,
.modal,
.modal-header,
.close-btn,
.post-form,
.form-group,
#postContent,
.char-counter,
.image-upload-area,
.upload-placeholder,
.upload-icon,
.image-preview,
.remove-image-btn,
.form-actions,
.cancel-btn {
    display: none;
}

/* Language Modal Styles */
.language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.language-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #F5F5F5;
    border: 2px solid #99CCFF;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.language-content h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.language-select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #99CCFF;
    border-radius: 4px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.language-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .main-layout {
    grid-template-columns: 220px 1fr 180px;
}

[dir="rtl"] .post-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .composer-footer {
    flex-direction: row-reverse;
}

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

[dir="rtl"] .nav-links {
    align-items: flex-end;
}

[dir="rtl"] .nav-link {
    text-align: right;
}

/* Settings Page */
.settings-container {
    padding: 20px;
    background: white;
    border-radius: 6px;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    color: #0066CC;
    margin-bottom: 10px;
    font-size: 14px;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #E6F2FF;
}

.settings-option:last-child {
    border-bottom: none;
}

/* Responsive Language Modal */
@media (max-width: 768px) {
    .language-content {
        width: 90%;
        margin: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sidebar,
    .right-sidebar {
        display: none;
    }
}