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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 50%, #1a1a2e 0%, #16213e 25%, #0f0f0f 100%);
    color: #f0f0f0;
    min-height: 100vh;
    line-height: 1.6;
}

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand-text {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.header-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.header-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.header-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.header-btn.logout-btn {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.3);
    color: #ff453a;
    padding: 10px 12px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn.logout-btn:hover {
    background: rgba(255, 69, 58, 0.2);
    border-color: rgba(255, 69, 58, 0.5);
    transform: translateY(-1px);
}

/* Fix pour uniformiser la taille du bouton Messages */
.notification-container {
    position: relative;
}

.notification-container .header-btn {
    padding: 10px 20px;
    height: auto;
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-badge {
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr 360px; /* Augmenté les tailles : 280px->300px et 320px->360px */
    gap: 50px; /* Augmenté de 40px à 50px */
    margin-top: 40px;
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.nav-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
}

.nav-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 15px;
    text-decoration: none;
    color: #b0b0b0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0; /* Permet au contenu de se rétrécir si nécessaire */
}

.composer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px; /* Augmenté de 30px à 35px */
}

.composer-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    color: #f0f0f0;
    font-size: 16px;
    resize: none;
    min-height: 120px;
    font-family: inherit;
}

.composer-input::placeholder {
    color: #666;
}

.composer-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

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

.toolbar-left {
    display: flex;
    gap: 12px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.05);
}

.tool-btn.active {
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.5);
}

.publish-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.publish-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Styles pour les options avancées du composer */
.composer-advanced {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.composer-title {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 18px;
    color: #f0f0f0;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.composer-title::placeholder {
    color: #666;
}

.composer-title:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* Styles pour le sélecteur de tags */
.tag-selector {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 32px;
    align-items: center;
}

.selected-tag {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    padding: 4px 12px;
    color: #667eea;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-tag button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.selected-tag button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tag-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 18px;
    color: #f0f0f0;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tag-input::placeholder {
    color: #666;
}

.tag-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.tag-suggestion {
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.tag-suggestion:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tag-suggestion:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tag-name {
    color: #f0f0f0;
    font-weight: 500;
}

.tag-type {
    color: #888;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
}

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

.thread-item {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px; /* Augmenté de 30px à 35px */
    transition: all 0.3s ease;
    text-decoration: none;
}

.thread-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.thread-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.user-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.user-details .meta {
    font-size: 14px;
    color: #888;
}

.thread-content {
    margin-bottom: 20px;
}

.thread-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.thread-text {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

.music-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 25px; /* Augmenté de 20px à 25px */
    display: flex;
    align-items: center;
    gap: 25px; /* Augmenté de 20px à 25px */
    margin-bottom: 20px;
}

.album-art {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.track-info {
    flex: 1;
}

.track-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.track-info p {
    font-size: 14px;
    color: #999;
}

.play-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.play-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.thread-engagement {
    display: flex;
    align-items: center;
    gap: 35px; /* Augmenté de 30px à 35px */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.engagement-btn {
    background: none;
    border: none;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.engagement-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.engagement-btn.liked {
    color: #ff6b6b;
}

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

.widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px; /* Augmenté de 25px à 30px */
}

.widget h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0; /* Augmenté de 12px à 15px */
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.trend-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.trend-cover {
    width: 50px; /* Augmenté de 45px à 50px */
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.trend-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.trend-info p {
    font-size: 12px;
    color: #888;
}

.wave-animation {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.wave-bar {
    width: 3px;
    height: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% { height: 12px; }
    50% { height: 24px; }
}

/* Responsive pour les écrans très larges */
@media (min-width: 1600px) {
    .app-container {
        max-width: 1280px; /* Keep consistent with base max-width to prevent header stretching */
        padding: 0 24px;
    }
    
    .main-layout {
        grid-template-columns: 320px 1fr 400px;
        gap: 60px;
    }
}

@media (max-width: 1200px) {
    .app-container {
        max-width: 1200px;
    }
    
    .main-layout {
        grid-template-columns: 280px 1fr 340px;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 0 20px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .main-layout {
        margin-top: 20px;
    }
    
    .thread-item,
    .composer {
        padding: 20px;
        border-radius: 16px;
    }
    
    .thread-image img {
        border-radius: 6px;
    }
    
    .image-preview img {
        max-width: 150px;
        max-height: 100px;
    }
}
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-dark: radial-gradient(circle at 20% 50%, #1a1a2e 0%, #16213e 25%, #0f0f0f 100%);
    --surface-bg: rgba(255, 255, 255, 0.02);
    --surface-border: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --surface-active: rgba(102, 126, 234, 0.15);
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --accent-success: #4ade80;
    --accent-warning: #facc15;
    --accent-error: #ff6b6b;
}
* {
    max-width: 100%;
}

/* Assurer la cohérence des polices */
body, input, textarea, select, button {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Améliorer l'accessibilité */
:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Éviter les problèmes de z-index */
.header { z-index: 100; }
.rythm-notification { z-index: 10000; }
.page-loader { z-index: 10000; }

/* Assurer que tous les liens sont cliquables */
a {
    cursor: pointer;
}

/* Transitions fluides pour tous les éléments interactifs */
.header-btn,
.nav-item,
.page-card,
.widget,
.see-all-link,
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Éviter les problèmes de mise en page */
.main-layout,
.friends-layout,
.discover-layout,
.messages-layout {
    min-height: 0;
    overflow: hidden;
}

/* Assurer que le contenu ne déborde pas */
.content-area,
.discover-content,
.profile-content {
    min-width: 0;
    overflow-x: hidden;
}

/* Tags dans les threads */
.thread-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.thread-tag {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: #6c63ff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

/* Bouton "Afficher plus" */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: none;
}

.btn-loader {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Styles pour les threads cliquables */
.thread-item:hover .thread-title {
    color: #6c63ff;
}

.thread-title {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Empêcher les interactions sur les boutons d'engagement depuis le clic sur l'article */
.thread-engagement {
    pointer-events: auto;
}

.thread-engagement button,
.thread-engagement form {
    pointer-events: auto;
}

/* S'assurer que le curseur pointer est visible sur tout le thread sauf les boutons */
.thread-item * {
    cursor: pointer;
}

.thread-engagement button,
.thread-engagement form button,
.thread-engagement input {
    cursor: pointer;
}

/* Styles pour les images dans les threads */
.thread-image {
    margin: 15px 0;
    text-align: center;
}

.thread-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.thread-image img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Styles pour la prévisualisation d'upload */
.image-preview {
    margin: 10px 0;
}

.image-preview img {
    border: 2px solid #e0e6ed;
    transition: border-color 0.2s ease;
}

.image-preview img:hover {
    border-color: #667eea;
}

.remove-image-btn {
    transition: all 0.2s ease;
}

.remove-image-btn:hover {
    background: #ff3742 !important;
    transform: scale(1.1);
}

/* Styles pour les boutons d'upload actifs */
.tool-btn.active {
    background-color: #4CAF50 !important;
    color: white !important;
    transform: scale(1.05);
}

/* Notification d'upload */
.upload-notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   UNIFIED BUTTON SYSTEM
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: inherit;
}

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

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Ghost Button (default) */
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.btn-success:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger-ghost {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.3);
    color: #ff453a;
}

.btn-danger-ghost:hover {
    background: rgba(255, 69, 58, 0.2);
    border-color: rgba(255, 69, 58, 0.5);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-block {
    width: 100%;
}

/* Button Icons */
.btn-icon {
    font-size: 16px;
}

/* Badge in buttons */
.btn .badge, .badge {
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Header navigation text toggle for responsive */
.header-btn .nav-text {
    display: inline;
}

.header-btn .nav-icon {
    margin-right: 4px;
}

/* Hide mobile nav elements (they were removed from template) */
.mobile-nav-overlay,
.mobile-menu-btn,
nav.mobile-nav {
    display: none !important;
}

/* ========================================
   IMPROVED RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large screens */
@media (min-width: 1600px) {
    .app-container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    .main-layout {
        grid-template-columns: 320px 1fr 400px;
        gap: 60px;
    }
}

/* Medium-large screens */
@media (max-width: 1400px) {
    .main-layout {
        grid-template-columns: 280px 1fr 340px;
        gap: 40px;
    }
    
    .header-actions .btn .btn-text {
        display: none;
    }
    
    .header-actions .btn {
        padding: 10px 14px;
    }
}

/* Medium screens - hide right sidebar */
@media (max-width: 1200px) {
    .app-container {
        max-width: 100%;
        padding: 0 24px;
    }
    
    .main-layout {
        grid-template-columns: 260px 1fr;
        gap: 30px;
    }
    
    .sidebar-right {
        display: none;
    }
}

/* Tablet - Compact header, hide sidebars */
@media (max-width: 1024px) {
    .main-layout,
    .friends-layout,
    .discover-layout,
    .messages-layout,
    .profile-container,
    .settings-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    .header {
        padding: 16px 0;
    }
    
    /* Show only icons in header on tablet */
    .header-btn .nav-text {
        display: none;
    }
    
    .header-btn {
        padding: 10px 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .app-container {
        padding: 0 16px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .brand-text {
        font-size: 20px;
    }
    
    .brand-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Content area adjustments */
    .content-area,
    .discover-content,
    .profile-content,
    .messages-layout,
    .settings-layout {
        padding: 0;
    }
    
    .thread-item,
    .composer,
    .widget,
    .friend-card,
    .request-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .composer-input {
        padding: 14px;
        font-size: 14px;
    }
    
    /* Friends page mobile */
    .friends-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .friends-header h1 {
        font-size: 24px;
    }
    
    .friends-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .add-friend-btn {
        width: 100%;
        justify-content: center;
    }
    
    .friends-tabs {
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .friends-tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 12px 16px;
    }
    
    .btn-sm {
        padding: 8px 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .app-container {
        padding: 0 12px;
    }
    
    .brand {
        gap: 8px;
    }
    
    .brand-text {
        font-size: 18px;
    }
    
    .brand-icon {
        width: 32px;
        height: 32px;
    }
    
    .thread-item,
    .composer {
        padding: 14px;
        border-radius: 12px;
    }
    
    .thread-header {
        gap: 10px;
    }
    
    .user-pic {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .thread-engagement {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .engagement-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Mobile nav adjustments */
    .mobile-nav {
        width: 100%;
        max-width: none;
    }
}

/* Fix for old header-btn class to match new system */
.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.header-btn.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}