/* Theme Variables - Dark Theme Only */
:root {
    /* Dark theme colors */
    --bg-primary: #000000;
    --bg-secondary: #15202b;
    --bg-sidebar: #15202b;
    --text-primary: #ffffff;
    --text-secondary: #8899a6;
    --border: #38444d;
    --accent: #ff9800;
    --card-bg: #192734;
    --hover: #1c2732;
    
    /* Common variables */
    --sidebar-width: 260px;
    --header-height: 60px;
    --transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    display: flex;
    flex: 1;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform var(--transition-speed);
    z-index: 1000;
    padding-top: 20px;
    transform: translateX(-100%);
}

.sidebar.active {
    transform: translateX(0);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.sidebar-close-btn {
    position: static;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color var(--transition-speed);
    z-index: 1001;
}

.sidebar-close-btn:hover {
    background-color: var(--hover);
    color: var(--accent);
    transform: scale(1.1);
}

.nav-menu {
    list-style: none;
    padding: 0 20px;
    margin-bottom: 30px;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
    background-color: var(--hover);
    color: var(--accent);
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social Links */
.social-links {
    padding: 0 20px;
    margin-bottom: 30px;
}

.social-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    color: var(--text-secondary);
    font-size: 20px;
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--hover);
}

.social-icon:hover {
    color: var(--accent);
    background-color: rgba(255, 152, 0, 0.1);
    transform: translateY(-2px);
}

.upscrolled-icon {
    background-color: var(--hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all var(--transition-speed);
}

.upscrolled-icon:hover {
    background-color: rgba(255, 152, 0, 0.1);
    transform: translateY(-2px);
}

.upscrolled-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(0.6);
    transition: filter var(--transition-speed);
}

.upscrolled-icon:hover .upscrolled-logo {
    filter: brightness(0) invert(1);
}

/* Theme Toggle */
.theme-toggle {
    padding: 0 20px;
    margin-bottom: 30px;
}

.theme-switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--hover);
    border-radius: 30px;
    padding: 5px;
}

.theme-switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 25px;
    transition: all var(--transition-speed);
}

.theme-switch-btn.active {
    background-color: var(--accent);
    color: white;
}

.theme-switch-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Header with Logo - FIXED */
.header {
    height: var(--header-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0px;
    z-index: 99;
    gap: 15px;
    flex-wrap: nowrap;
}

.header-title-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.header-logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 120px;
    flex-shrink: 0;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 3.5vw, 22px);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0;
    flex-shrink: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color var(--transition-speed);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background-color: var(--hover);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Page Content */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Categories Section */
.categories-section {
    padding: 20px 25px 10px;
    border-bottom: 1px solid var(--border);
}

.categories-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.categories-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.categories-container::-webkit-scrollbar {
    height: 5px;
}

.categories-container::-webkit-scrollbar-thumb {
    background-color: var(--text-secondary);
    border-radius: 10px;
}

.category {
    padding: 8px 16px;
    background-color: var(--hover);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.category:hover {
    background-color: var(--accent);
    color: white;
}

.category.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Posts Section */
.posts-section {
    padding: 25px;
    flex: 1;
}

/* Post Card */
.post-card {
    background: linear-gradient(#15202b, rgba(255, 152, 0, 0.05));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    width: 100%;
    position: relative;
    padding-top: 55px;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-card.featured {
    border: 2px solid #787878;
    background: linear-gradient(to bottom, var(--card-bg), rgba(255, 152, 0, 0.05));
}

/* Translate Feature Styles */
.translate-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.translate-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.language-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 200px;
    overflow: hidden;
    animation: popupFadeIn 0.2s ease;
    z-index: 2000;
}

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

.language-popup-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.language-popup-header h4 {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.popup-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
}

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

.language-list {
    max-height: 300px;
    overflow-y: auto;
}

.language-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-primary);
}

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

.language-option:hover {
    background: var(--hover);
}

.language-option.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

/* RTL Language Support */
[dir="rtl"] .post-card {
    text-align: right;
}

[dir="rtl"] .post-header > div {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .translate-btn {
    right: auto;
    left: 15px;
}

[dir="rtl"] .language-popup {
    text-align: right;
}

[dir="rtl"] .post-categories {
    justify-content: flex-end;
}

[dir="rtl"] .post-takeaway {
    text-align: right;
}

[dir="rtl"] .post-source {
    text-align: right;
    border-left: none;
    border-right: 4px solid var(--accent);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.post-author {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.post-role {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 5px;
    font-weight: 600;
}

.post-date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Post Categories */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.featured-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-category {
    font-size: 12px;
    padding: 4px 10px;
    background-color: var(--hover);
    border-radius: 30px;
    color: var(--text-secondary);
}

/* Post Title */
.post-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent);
}

/* Post Content with Auto-Hide Read More */
.post-content {
    line-height: 1.6;
    margin-bottom: 15px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.post-content.short {
    max-height: calc(1.6em * 4);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.post-content:not(.short) {
    max-height: none !important;
    mask-image: none;
    -webkit-mask-image: none;
}

/* Takeaway Section */
.post-takeaway {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--hover);
    border-radius: 10px;
    border: 1px solid #575757;
}

.takeaway-label {
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.takeaway-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
}

/* Media Link Styles */
.post-media-link {
    display: none !important;
    margin: 20px 0;
    padding: 15px;
    background-color: var(--hover);
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-media-link:hover {
    background-color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-thumbnail-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-thumbnail-container:hover .media-thumbnail {
    transform: scale(1.05);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 152, 0, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.media-thumbnail-container:hover .video-play-icon {
    background-color: rgba(255, 152, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.view-media-btn {
    background-color: transparent;
    color: white;
    border: 1px solid #1c2732;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-media-btn:hover {
    background-color: var(--hover);
    color: var(--accent);
}

.view-media-btn i {
    font-size: 12px;
}

.media-info {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.media-type {
    font-size: 12px;
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.media-caption-preview {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Clickable Sources */
.post-source {
    margin: 15px 0;
    padding: 10px;
    background-color: var(--hover);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.source-label {
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 5px;
}

.source-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-all;
}

.source-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: all 0.2s ease;
}

.source-link:hover {
    color: white;
    border-bottom: 1px solid white;
}

/* Post Actions - Side by Side Buttons */
.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.read-more-btn, .view-media-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.read-more-btn {
    background-color: var(--accent);
    color: white;
}

.read-more-btn:hover {
    background-color: white;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.2);
}

.view-media-btn {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    margin-top: 0;
}

.view-media-btn:hover {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.read-more-btn i,
.view-media-btn i {
    font-size: 14px;
}

/* Media Modal Styles */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-primary);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2002;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2003;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background-color: var(--accent);
    transform: rotate(90deg);
}

.modal-media-container {
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.modal-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.modal-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-caption {
    padding: 15px 20px;
    background-color: var(--bg-primary);
    font-size: 16px;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
}

.modal-credit {
    padding: 10px 20px 20px;
    background-color: var(--bg-primary);
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

/* About Page */
.about-section {
    padding: 30px 25px;
    flex: 1;
}

.about-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.team-section {
    max-width: 1000px;
    margin: 0 auto;
}

.team-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-secondary);
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform var(--transition-speed);
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--accent);
}

.member-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
}

.member-role {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.member-bio {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Team Member Social Media */
.member-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.member-social-icon {
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--hover);
}

.member-social-icon:hover {
    color: var(--accent);
    background-color: rgba(255, 152, 0, 0.1);
    transform: translateY(-2px);
}

.upscrolled-icon-small {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(0.6);
    transition: filter 0.3s ease;
}

.member-social-icon:hover .upscrolled-icon-small {
    filter: brightness(0) invert(1);
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 0;
    line-height: 1.6;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-members {
        flex-direction: column;
        align-items: center;
    }
    
    .posts-section, .categories-section, .about-section {
        padding: 20px 15px;
    }
    
    .header-logo-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-logo {
        height: 35px;
        max-width: 100px;
    }
    
    .page-title {
        font-size: clamp(14px, 3vw, 18px);
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .media-thumbnail-container {
        height: 150px;
    }
    
    .modal-content {
        max-height: 80vh;
    }
    
    .modal-media-container {
        height: 60vh;
    }
    
    .modal-caption {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .modal-credit {
        padding: 8px 15px 15px;
        font-size: 13px;
    }
    
    .footer {
        padding: 12px;
        font-size: 12px;
    }
    
    /* Responsive Translate Button */
    .translate-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .language-popup {
        width: 180px;
        bottom: 10px;
        right: 10px;
    }
    
    /* Responsive Post Actions */
    .post-actions {
        flex-direction: column;
    }
    
    .read-more-btn, .view-media-btn {
        width: 100%;
    }
    
    /* Responsive social icons */
    .social-icon, .upscrolled-icon {
        width: 36px;
        height: 36px;
    }
    
    .upscrolled-logo {
        width: 20px;
        height: 20px;
    }
    
    .member-social {
        gap: 12px;
    }
    
    .member-social-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .upscrolled-icon-small {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0 10px;
        gap: 5px;
    }
    
    .header-logo {
        height: 28px;
        max-width: 80px;
    }
    
    .page-title {
        font-size: clamp(12px, 2.5vw, 16px);
    }
    
    .user-info .user-name {
        display: none;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-avatar {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .media-thumbnail-container {
        height: 120px;
    }
    
    .view-media-btn {
        padding: 9px 12px;
        font-size: 13px;
    }
    
    .modal-media-container {
        height: 50vh;
    }
    
    .footer {
        padding: 10px;
        font-size: 11px;
    }
    
    /* Mobile Translate Button */
    .translate-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }
    
    [dir="rtl"] .translate-btn {
        right: auto;
        left: 10px;
    }
    
    /* Mobile Language Popup */
    .language-popup {
        width: 160px;
        bottom: 5px;
        right: 5px;
    }
    
    .language-popup-header {
        padding: 12px;
    }
    
    .language-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Adjust post card padding for mobile */
    .post-card {
        padding-top: 50px;
        padding: 15px;
    }
    
    /* Mobile social icons */
    .social-icon, .upscrolled-icon {
        width: 32px;
        height: 32px;
    }
    
    .upscrolled-logo {
        width: 18px;
        height: 18px;
    }
}

/* Extra small screens - hide logo if needed */
@media (max-width: 400px) {
    .header-logo {
        max-width: 60px;
    }
    
    .page-title {
        font-size: 14px;
    }
}

/* Hide logo on very small screens */
@media (max-width: 350px) {
    .header-logo {
        display: block !important;
        max-width: 80px;
    }
    
    .header-logo-title {
        justify-content: center;
    }
}
