/* Sports: high-contrast defaults */
#sport-section .chip-live { background: #fee2e2; color: #b91c1c; border: 0.2px solid #fecaca; }
#sport-section .score-badge { background: #ffffff; color: #0f172a; border: 0.2px solid rgba(0,0,0,0.12); }
/* Hide right sidebar on tablet and below */
@media (max-width: 1023px) {
    .right-sidebar { display: none; }
}

/* ===== DEZIPP - BEAUTIFUL BLUE DESIGN SYSTEM ===== */
/* Inspired by vibrant Dezipp palette: #962FBF, #D6249F, #F58529, #FEDA77, #FFFFFF */

/* Enhanced Icon System - Elegant and Consistent */
.fas, .far, .fab, .fal, .fad,
i[class*="fa-"],
i.fas, i.far, i.fab, i.fal, i.fad,
.header i,
button i,
i {
    color: #FFFFFF;
    fill: currentColor;
    stroke: currentColor;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Beautiful Icon Styling for Sidebar */
.sidebar-menu-item i {
    margin-right: var(--space-3, 0.75rem);
    width: 1.25rem;
    text-align: center;
    color: #429E9D;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 400;
    text-shadow: none;
    transition: all var(--transition-base, 200ms) ease;
}

/* Ensure FA glyphs render in sidebar */
.sidebar-menu-item i::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 400;
}

.microphone-icon {
    color: #FFFFFF;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(21, 101, 192, 0.3);
}

/* ===== BASE LAYOUT & SCROLLING ===== */

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    background: linear-gradient(135deg, 
        var(--accent-white, #FFFFFF) 0%, 
        var(--primary-lightest, #B3E5FC) 15%,
        #E1F5FE 25%, 
        var(--accent-white, #FFFFFF) 35%, 
        var(--primary-lightest, #B3E5FC) 50%, 
        #E1F5FE 65%,
        var(--accent-white, #FFFFFF) 75%, 
        var(--primary-lightest, #B3E5FC) 85%,
        #E1F5FE 100%
    );
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    color: var(--primary-darkest, #1565C0);
    box-sizing: border-box;
    position: static;
    scroll-behavior: smooth;
}

/* Elegant scrollbar hiding */
*:not(body) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*:not(body)::-webkit-scrollbar {
    display: none;
}

/* Beautiful backdrop effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(100, 181, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(25, 118, 210, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(179, 229, 252, 0.2) 0%, transparent 70%),
        radial-gradient(circle at 60% 80%, rgba(225, 245, 254, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 90% 10%, rgba(144, 202, 249, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 10% 60%, rgba(179, 229, 252, 0.15) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
}

/* ===== UNIVERSAL MOOD SYSTEM - BEAUTIFUL & CONSISTENT ===== */

/* Mood Buttons Container - Clean Design */
.mood-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1, 0.25rem);
    margin-top: var(--space-3, 0.75rem);
    justify-content: center;
    align-items: center;
    padding: var(--space-3, 0.75rem);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(179, 229, 252, 0.92),
        rgba(225, 245, 254, 0.95),
        rgba(179, 229, 252, 0.9)
    );
    border-radius: var(--radius-md, 0.75rem);
    backdrop-filter: blur(20px);
    border: var(--border-medium, 2px) solid rgba(100, 181, 246, 0.25);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 
        var(--shadow-sm, 0 1px 2px 0 rgba(21, 101, 192, 0.05)),
        0 8px 32px rgba(144, 202, 249, 0.15);
    transition: all var(--transition-base, 200ms) ease;
}

/* Universal Mood Row - Full Width Immersive Design */
.universal-mood-row {
    display: grid;
    grid-template-columns: repeat(17, 1fr);
    gap: 1px;
    margin-top: var(--space-3, 0.75rem);
    width: 100%;
    height: 48px;
    border-radius: var(--radius-xl, 1.5rem);
    overflow: hidden;
    border: 0.2px solid #962FBF;
    box-sizing: border-box;
    background: linear-gradient(135deg, 
        rgba(150, 47, 191, 0.95) 0%, 
        rgba(214, 36, 159, 0.9) 50%, 
        rgba(245, 133, 41, 0.95) 100%);
    flex-wrap: unset;
    justify-content: unset;
    align-items: unset;
    padding: 0;
    box-shadow: 
        0 8px 25px rgba(150, 47, 191, 0.25),
        0 3px 12px rgba(214, 36, 159, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.universal-mood-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.full-width-mood-row {
    width: 100%;
    max-width: none;
    border-radius: var(--radius-xl, 1.5rem);
    margin: 0.5rem 0;
    transform: scale(1.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.full-width-mood-row:hover {
    transform: scale(1.02);
    box-shadow: 
        0 12px 35px rgba(21, 101, 192, 0.3),
        0 6px 15px rgba(100, 181, 246, 0.2);
}

/* Beautiful Mood Buttons */
.universal-mood-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.58rem;
    font-weight: 400;
    color: var(--accent-white, #FFFFFF);
    text-shadow: 
        0 2px 4px rgba(21, 101, 192, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all var(--transition-base, 200ms) cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 2px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-family: var(--font-primary, 'Inter'), sans-serif;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
}

.universal-mood-btn:last-child {
    border-right: none;
}

.universal-mood-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.universal-mood-btn:hover {
    transform: scale(1.08) translateY(-2px);
    z-index: 15;
    box-shadow: 
        0 8px 20px rgba(21, 101, 192, 0.4),
        0 4px 12px rgba(100, 181, 246, 0.3);
    filter: brightness(1.15) saturate(1.1);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin: 0 1px;
}

.universal-mood-btn:hover::before {
    opacity: 1;
}

.universal-mood-btn.selected {
    transform: scale(1.12) translateY(-3px);
    z-index: 25;
    box-shadow: 
        0 12px 30px rgba(21, 101, 192, 0.5),
        0 6px 15px rgba(100, 181, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.25) saturate(1.2);
    border: var(--border-medium, 2px) solid var(--accent-white, #FFFFFF);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin: 0 2px;
    font-weight: 400;
}

.universal-mood-btn.selected::before {
    opacity: 1;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.05) 100%);
}

.mood-buttons-row:hover {
    border-color: rgba(100, 181, 246, 0.4);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(21, 101, 192, 0.1));
    transform: translateY(-1px);
}

/* Individual Mood Button Styling */
.mood-button {
    flex: 1 1 calc((100% - 4rem) / 17);
    min-width: calc((100% - 4rem) / 17);
    max-width: calc((100% - 4rem) / 17);
    height: 32px;
    border-radius: var(--radius-sm, 0.25rem);
    cursor: pointer;
    transition: all var(--transition-base, 200ms) ease;
    border: var(--border-thin, 1px) solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(21, 101, 192, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 400;
    white-space: nowrap;
    padding: 0 2px;
    margin: 1px;
    text-shadow: 0 1px 2px rgba(21, 101, 192, 0.2);
    font-family: var(--font-primary, 'Inter'), sans-serif;
}

.mood-button:hover, .universal-mood-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(21, 101, 192, 0.1));
    border-color: rgba(255, 255, 255, 0.6);
    filter: brightness(1.1);
}

.mood-button.selected, .universal-mood-btn.selected {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 2px rgba(100, 181, 246, 0.4), 
        0 4px 12px rgba(21, 101, 192, 0.2);
    border-color: rgba(100, 181, 246, 0.6);
    z-index: 10;
    filter: brightness(1.15);
}

/* Elegant Pulse Animation */
@keyframes selectedPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 2px rgba(100, 181, 246, 0.3),
            0 8px 25px rgba(100, 181, 246, 0.2),
            0 3px 10px rgba(21, 101, 192, 0.1);
    }
    50% {
        box-shadow: 
            0 0 0 4px rgba(100, 181, 246, 0.4),
            0 12px 35px rgba(100, 181, 246, 0.3),
            0 5px 15px rgba(21, 101, 192, 0.15);
    }
}

/* Rounded corners for mood buttons */
.mood-button:first-child {
    border-top-left-radius: var(--radius-md, 0.75rem);
    border-bottom-left-radius: var(--radius-md, 0.75rem);
}

.mood-button:last-child {
    border-top-right-radius: var(--radius-md, 0.75rem);
    border-bottom-right-radius: var(--radius-md, 0.75rem);
}

/* Individual Mood Button Colors Based on New Color Chart (1-17) */
.mood-button:nth-child(1) { background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%); color: #333; } /* Happy - Yellow */
.mood-button:nth-child(2) { background: linear-gradient(135deg, #FF69B4 0%, #E91E63 100%); color: #fff; } /* Love - Pink */
.mood-button:nth-child(3) { background: linear-gradient(135deg, #ADFF2F 0%, #8BC34A 100%); color: #333; } /* Amused - Lime */
.mood-button:nth-child(4) { background: linear-gradient(135deg, #FFA500 0%, #FF9800 100%); color: #fff; } /* Excitement - Orange */
.mood-button:nth-child(5) { background: linear-gradient(135deg, #962FBF, #D6249F); color: #fff; } /* Optimistic - Purple */
.mood-button:nth-child(6) { background: linear-gradient(135deg, #40E0D0 0%, #00BCD4 100%); color: #333; } /* Interested - Teal */
.mood-button:nth-child(7) { background: linear-gradient(135deg, #F58529, #FEDA77); color: #fff; } /* Surprise - Orange */
.mood-button:nth-child(8) { background: linear-gradient(135deg, #32CD32 0%, #4CAF50 100%); color: #fff; } /* Relief - Green */
.mood-button:nth-child(9) { background: linear-gradient(135deg, #962FBF, #D6249F); color: #fff; } /* Neutral - Purple */
.mood-button:nth-child(10) { background: linear-gradient(135deg, #483D8B 0%, #673AB7 100%); color: #fff; } /* Disappointed - Indigo */
.mood-button:nth-child(11) { background: linear-gradient(135deg, #FF7F50 0%, #FF5722 100%); color: #fff; } /* Embarrassed - Coral */
.mood-button:nth-child(12) { background: linear-gradient(135deg, #8A2BE2 0%, #9C27B0 100%); color: #fff; } /* Anxious - Purple */
.mood-button:nth-child(13) { background: linear-gradient(135deg, #32CD32 0%, #4CAF50 100%); color: #fff; } /* Disgust - Green */
.mood-button:nth-child(14) { background: linear-gradient(135deg, #ADFF2F 0%, #8BC34A 100%); color: #333; } /* Envy - Lime */
.mood-button:nth-child(15) { background: linear-gradient(135deg, #C71585 0%, #E91E63 100%); color: #fff; } /* Fear - Magenta */
.mood-button:nth-child(16) { background: linear-gradient(135deg, #483D8B 0%, #673AB7 100%); color: #fff; } /* Sadness - Indigo */
.mood-button:nth-child(17) { background: linear-gradient(135deg, #8B0000 0%, #D32F2F 100%); color: #fff; } /* Angry - Dark Red */

/* Enhanced hover and selected states for colored mood buttons */
.mood-button:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.15) saturate(1.1);
    z-index: 10;
}

/* Color-specific shadows on hover */
.mood-button:nth-child(1):hover { box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4); } /* Happy - Yellow glow */
.mood-button:nth-child(2):hover { box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4); } /* Love - Pink glow */
.mood-button:nth-child(3):hover { box-shadow: 0 8px 25px rgba(173, 255, 47, 0.4); } /* Amused - Lime glow */
.mood-button:nth-child(4):hover { box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4); } /* Excitement - Orange glow */
.mood-button:nth-child(5):hover { box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4); } /* Optimistic - Sky Blue glow */
.mood-button:nth-child(6):hover { box-shadow: 0 8px 25px rgba(64, 224, 208, 0.4); } /* Interested - Teal glow */
.mood-button:nth-child(7):hover { box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4); } /* Surprise - Dodger Blue glow */
.mood-button:nth-child(8):hover { box-shadow: 0 8px 25px rgba(50, 205, 50, 0.4); } /* Relief - Green glow */
.mood-button:nth-child(9):hover { box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4); } /* Neutral - Royal Blue glow */
.mood-button:nth-child(10):hover { box-shadow: 0 8px 25px rgba(72, 61, 139, 0.4); } /* Disappointed - Indigo glow */
.mood-button:nth-child(11):hover { box-shadow: 0 8px 25px rgba(255, 127, 80, 0.4); } /* Embarrassed - Coral glow */
.mood-button:nth-child(12):hover { box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4); } /* Anxious - Purple glow */
.mood-button:nth-child(13):hover { box-shadow: 0 8px 25px rgba(50, 205, 50, 0.4); } /* Disgust - Green glow */
.mood-button:nth-child(14):hover { box-shadow: 0 8px 25px rgba(173, 255, 47, 0.4); } /* Envy - Lime glow */
.mood-button:nth-child(15):hover { box-shadow: 0 8px 25px rgba(199, 21, 133, 0.4); } /* Fear - Magenta glow */
.mood-button:nth-child(16):hover { box-shadow: 0 8px 25px rgba(72, 61, 139, 0.4); } /* Sadness - Indigo glow */
.mood-button:nth-child(17):hover { box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4); } /* Angry - Dark Red glow */

.mood-button.selected {
    transform: translateY(-4px) scale(1.08);
    filter: brightness(1.2) saturate(1.2);
    border: var(--border-medium, 2px) solid rgba(255, 255, 255, 0.8);
    z-index: 15;
}

/* Color-specific shadows when selected */
.mood-button:nth-child(1).selected { box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(2).selected { box-shadow: 0 12px 35px rgba(255, 105, 180, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(3).selected { box-shadow: 0 12px 35px rgba(173, 255, 47, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(4).selected { box-shadow: 0 12px 35px rgba(255, 165, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(5).selected { box-shadow: 0 12px 35px rgba(135, 206, 235, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(6).selected { box-shadow: 0 12px 35px rgba(64, 224, 208, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(7).selected { box-shadow: 0 12px 35px rgba(30, 144, 255, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(8).selected { box-shadow: 0 12px 35px rgba(50, 205, 50, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(9).selected { box-shadow: 0 12px 35px rgba(65, 105, 225, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(10).selected { box-shadow: 0 12px 35px rgba(72, 61, 139, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(11).selected { box-shadow: 0 12px 35px rgba(255, 127, 80, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(12).selected { box-shadow: 0 12px 35px rgba(138, 43, 226, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(13).selected { box-shadow: 0 12px 35px rgba(50, 205, 50, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(14).selected { box-shadow: 0 12px 35px rgba(173, 255, 47, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(15).selected { box-shadow: 0 12px 35px rgba(199, 21, 133, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(16).selected { box-shadow: 0 12px 35px rgba(72, 61, 139, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.mood-button:nth-child(17).selected { box-shadow: 0 12px 35px rgba(139, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.3); }



/* Post Header - Simplified (Main styles in components.css) */

/* Post Typography - Simplified */

/* Post Actions - Handled by components.css */

.post-reaction-heart {
    color: var(--text-light);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(101, 181, 246, 0.2));
}

.post-reaction-heart.reacted {
    color: var(--primary-color);
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(101, 181, 246, 0.4));
}

.post-reaction-heart:hover {
    color: var(--primary-color);
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(101, 181, 246, 0.3));
}

/* Comments */
.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.comments-section.show {
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    margin-bottom: 0.75rem;
}

.comment-header {
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-content {
    padding: 12px;
    border-radius: 0 0 8px 8px;
    background: white;
}

.collective-comments-gradient-bar {
    width: 100%;
    height: 4px;
    margin-top: 8px;
    border-radius: 2px;
}

/* Enhanced Collective Comments Gradient Bar - Override Tailwind */
.collective-comments-gradient-bar-enhanced {
    width: 100%;
    height: 70px; /* Increased to match inline style - even taller */
    background: #f8f9fa; /* Nice white-grey background */
    border-radius: 0 0 16px 16px; /* Match post card radius */
    margin-top: 0;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1), /* Softer shadow */
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border-top: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    border-top: 3px solid rgba(255, 255, 255, 0.5); /* Thicker border for taller bar */
}

.collective-comments-gradient-bar-enhanced::before {
    display: none;
}

.collective-comments-gradient-bar-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; /* Increased from 2px for taller bar */
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    border-radius: 4px; /* Increased border radius */
}

@keyframes shimmer {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* News Articles */
.news-article-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    border: var(--border-thin, 1px) solid rgba(100, 181, 246, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.news-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #429E9D;
    opacity: 0;
    transition: opacity var(--transition-base, 200ms) ease;
}

.news-article-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(100, 181, 246, 0.4);
    box-shadow: 
        0 12px 40px rgba(21, 101, 192, 0.15),
        0 4px 15px rgba(100, 181, 246, 0.2),
        0 20px 60px rgba(144, 202, 249, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%,
        rgba(225, 245, 254, 0.95) 25%, 
        rgba(179, 229, 252, 0.92) 50%,
        rgba(225, 245, 254, 0.95) 75%,
        rgba(255, 255, 255, 0.98) 100%
    );
}

.news-article-card:hover::before {
    opacity: 1;
}

.news-article-header {
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 16px;
}

.news-article-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-article-image:hover {
    transform: scale(1.05);
}

.news-article-content {
    flex: 1;
    min-width: 0;
}

.news-article-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #1a1a1a;
    background: linear-gradient(135deg, #1a1a1a, #333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-article-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-article-title a:hover {
    background: linear-gradient(135deg, 
        var(--primary-light, #90CAF9), 
        var(--primary-medium, #64B5F6)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-article-snippet {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 400;
}

.news-article-meta {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 500;
}

.news-article-bottom-third {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5rem;
    background: transparent;
    transition: background-color 0.3s ease;
    pointer-events: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

.news-mood-text {
    position: absolute;
    bottom: 0.25rem;
    left: 0.75rem;
    right: 0.75rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-mood-text.fade-out {
    opacity: 0.5;
}

.news-reactions-toggle-btn {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
}

.news-reactions-toggle-btn:hover {
    background-color: var(--primary-lightest, #B3E5FC);
    color: var(--primary-medium, #64B5F6);
}

.news-reaction-area {
    padding: 0.5rem 0.75rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.news-mood-btn {
    transition: all 0.3s ease;
    font-size: 0.52rem; /* Reduced to match universal mood buttons */
    padding: 0.25rem 1px; /* Reduced horizontal padding */
    flex: 1 1 calc((100% - 2.55rem) / 17); /* Match universal mood button sizing */
    min-width: calc((100% - 2.55rem) / 17);
    max-width: calc((100% - 2.55rem) / 17);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.news-mood-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.5);
}

.news-mood-btn.selected {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.7);
    border: var(--border-medium, 2px) solid var(--primary-light, #90CAF9);
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: var(--border-thin, 1px) solid #e5e7eb;
}

/* Content sections */
.content-section {
    width: 100%;
    padding-left: 2.5rem; /* Ensures equal distance from left menu as insights */
}

.hidden {
    display: none;
}

/* ===== MODERN LAYOUT SYSTEM ===== */

/* Main Grid Container - Clean and Responsive */
.main-grid-container {
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    grid-template-areas: "left-sidebar main-content right-stats";
    gap: 32px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex-grow: 1;
    padding: var(--space-4, 1rem);
    position: static;
    overflow: visible;
}

/* Main Content Area - Elegant Spacing */
.main-content-area {
    grid-area: main-content;
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 1rem);
    width: 100%;
}

/* Content Grid - Perfect 70/30 Split with Symmetric Gaps */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 1rem);
    align-items: start;
    width: 100%;
}

/* Beautiful Post Creation Form */
.full-width-post-creation {
    width: 100%;
    margin-bottom: var(--space-8, 2rem);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(179, 229, 252, 0.95) 25%,
        rgba(225, 245, 254, 0.97) 35%,
        rgba(179, 229, 252, 0.93) 50%, 
        rgba(225, 245, 254, 0.95) 65%,
        rgba(179, 229, 252, 0.92) 75%,
        rgba(255, 255, 255, 0.96) 100%
    );
    backdrop-filter: blur(25px);
    border: var(--border-medium, 2px) solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 8px 32px rgba(100, 181, 246, 0.2),
        0 4px 16px rgba(21, 101, 192, 0.12),
        0 16px 64px rgba(144, 202, 249, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-2xl, 2rem);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow, 500ms) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic mood-based styling - Full card highlight */
.full-width-post-creation[data-selected-mood] {
    transform: scale(1.02);
    border: var(--border-medium, 2px) solid var(--primary-light, #90CAF9);
    box-shadow: 
        0 12px 40px rgba(100, 181, 246, 0.25),
        0 8px 20px rgba(25, 118, 210, 0.2),
        0 0 0 4px rgba(100, 181, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(179, 229, 252, 0.8) 0%, 
        rgba(255, 255, 255, 0.95) 30%, 
        rgba(179, 229, 252, 0.9) 70%, 
        rgba(255, 255, 255, 0.92) 100%
    );
}

.full-width-post-creation .post-creation-header h2 {
    transition: all var(--transition-base, 200ms) ease;
    font-weight: 400;
    font-size: var(--text-3xl, 1.875rem);
    color: var(--primary-darkest, #1565C0);
}

/* Elegant gradient accent - Enhanced for full card highlight */
.full-width-post-creation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-medium, #64B5F6) 0%, 
        var(--primary-light, #90CAF9) 25%, 
        var(--primary-medium, #64B5F6) 50%, 
        var(--primary-light, #90CAF9) 75%, 
        var(--primary-medium, #64B5F6) 100%
    );
    opacity: 0.9;
    border-radius: var(--radius-2xl, 2rem) var(--radius-2xl, 2rem) 0 0;
    transition: all var(--transition-base, 200ms) ease;
}

/* Full card highlight chamfer effect */
.full-width-post-creation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(100, 181, 246, 0.08) 0%, 
        rgba(25, 118, 210, 0.05) 50%, 
        rgba(100, 181, 246, 0.08) 100%
    );
    border-radius: var(--radius-2xl, 2rem);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base, 200ms) ease;
    pointer-events: none;
}

/* Enhanced hover effect fills entire card */
.full-width-post-creation:hover::after,
.full-width-post-creation[data-selected-mood]::after {
    opacity: 1;
}

/* Additional highlight for selected mood state */
.full-width-post-creation[data-selected-mood]::before {
    height: 6px;
    opacity: 1;
    background: linear-gradient(90deg, 
        var(--primary-light, #90CAF9) 0%, 
        var(--primary-medium, #64B5F6) 25%, 
        var(--primary-light, #90CAF9) 50%, 
        var(--primary-medium, #64B5F6) 75%, 
        var(--primary-light, #90CAF9) 100%
    );
}

.full-width-post-creation:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(100, 181, 246, 0.2),
        0 8px 20px rgba(21, 101, 192, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.full-width-mood-row {
    width: 100%;
    max-width: none;
    border-radius: var(--radius-xl, 1.5rem);
    margin: 0.5rem 0;
    transform: scale(1.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Posts Content Area */
.posts-content-area {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* ===== BEAUTIFUL SIDEBAR SYSTEM ===== */

/* Right Sidebar - Stunning Cloud Blue Design - Ultra-Compact for 100% Zoom */
/* Legacy insights container (deprecated) */
.insights-right-top-area { display: none; }
.insights-right-top-area::-webkit-scrollbar { display: none; }

/* Left Sidebar - Gorgeous Cloud Blue Gradient */
.left-sidebar-combined {
    grid-area: left-sidebar;
    position: sticky;
    top: var(--header-offset, 6rem);
    width: 280px;
    height: calc(100vh - 6rem);
    max-height: calc(100vh - 6rem);
    padding: var(--space-4, 1rem);
    background: #ffffff;
    border-radius: 0;
    border: 0.2px solid #000000;
    border-top: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 5;
    
    /* Beautiful scrollbar hiding */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.left-sidebar-combined::-webkit-scrollbar {
    display: none;
}

/* Enhanced Insights Styling - Ultra-Compact for Perfect Fit */
.insights-section-card {
    margin: 0 0 0.5rem 0; /* Much smaller margin */
    background: linear-gradient(135deg, 
        rgba(150, 47, 191, 0.15) 0%,
        rgba(214, 36, 159, 0.12) 25%,
        rgba(245, 133, 41, 0.18) 50%,
        rgba(254, 218, 119, 0.2) 75%,
        rgba(150, 47, 191, 0.1) 100%
    );
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl, 1.5rem);
    border: var(--border-medium, 2px) solid rgba(150, 47, 191, 0.35);
    overflow: hidden;
    transition: all var(--transition-base, 200ms) ease;
    font-family: var(--font-primary, 'Inter'), sans-serif;
    box-shadow: 
        0 4px 20px rgba(100, 181, 246, 0.2),
        0 8px 32px rgba(144, 202, 249, 0.15);
}

.insights-section-card:hover {
    background: linear-gradient(135deg, 
        rgba(150, 47, 191, 0.22) 0%,
        rgba(214, 36, 159, 0.18) 25%,
        rgba(245, 133, 41, 0.25) 50%,
        rgba(254, 218, 119, 0.28) 75%,
        rgba(150, 47, 191, 0.15) 100%
    );
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(150, 47, 191, 0.3),
        0 12px 40px rgba(214, 36, 159, 0.2);
    border-color: rgba(150, 47, 191, 0.6);
}

.insights-section-header {
    padding: 0.125rem 0.25rem 0.125rem; /* Minimal header padding */
    border-bottom: 1px solid rgba(100, 181, 246, 0.2);
}

.insights-title {
    color: var(--primary-light, #90CAF9);
    font-size: 0.9rem; /* Smaller title to save space */
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2, 0.5rem);
    font-family: var(--font-primary, 'Inter'), sans-serif;
    width: 100%;
    margin: 0; /* Remove any margin */
    line-height: 1;
}

/* Live Indicator Styling - Hidden for more space */
.live-indicator {
    display: none; /* Hide LOCAL DATA indicator */
}

.pulse-dot {
    color: var(--primary-light, #90CAF9);
    font-size: 0.5rem;
    /* animation: livePulse 2s infinite; - Removed pulse animation */
}

.live-text {
    color: var(--primary-light, #90CAF9);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Data Source Indicators - No Animations */
.live-text.live-active {
    color: #90CAF9;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(100, 181, 246, 0.5);
}

.live-text.real-data {
    color: #64B5F6;
    font-weight: 400;
}

.live-text.fallback-data {
    color: #B3E5FC;
    opacity: 0.7;
    font-style: normal;
}

/* Trending Moods Display */
.trending-moods-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.trending-mood-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    /* transition: transform 0.2s ease; - Removed zoom animation */
}

/* .trending-mood-item:hover {
    transform: scale(1.05);
} - Removed hover zoom effect */

.trending-mood-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: var(--border-medium, 2px) solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trending-mood-name {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-color, #DEF2F1);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trending-mood-item.loading-placeholder .trending-mood-circle {
    background: var(--primary-medium, #64B5F6);
    /* animation: pulse 1.5s infinite; - Removed pulse animation */
}

.trending-mood-item.loading-placeholder .trending-mood-name {
    color: var(--primary-medium, #64B5F6);
    /* animation: pulse 1.5s infinite; - Removed pulse animation */
}

/* Enhanced Live Pulse Section */
.insights-section-card {
    background: linear-gradient(135deg, #962FBF 0%, #D6249F 100%);
    border: var(--border-thin, 1px) solid #FEDA77;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.1);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.4; 
        transform: scale(1.2);
    }
}

/* Loading Placeholder - No Animation */
.loading-placeholder {
    display: inline-block;
    /* animation: loadingDots 1.5s infinite; - Removed loading dots animation */
    color: var(--primary-medium, #64B5F6);
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Enhanced Stat Content */
.stat-content {
    flex: 1;
    font-family: var(--font-primary, 'Inter'), sans-serif;
    display: flex;
    flex-direction: column;
    gap: var(--space-1, 0.25rem);
}

.stat-number {
    color: var(--primary-light, #90CAF9);
    font-size: var(--text-xl, 1.25rem);
    font-weight: 400;
    line-height: 1.2;
    font-family: var(--font-primary, 'Inter'), sans-serif;
    transition: all var(--transition-base, 200ms) ease;
}

.stat-number.updating {
    transform: scale(1.05);
    color: var(--primary-medium, #64B5F6);
}

.stat-label {
    color: var(--accent-white, #FFFFFF);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 400;
    font-family: var(--font-primary, 'Inter'), sans-serif;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
    margin-top: var(--space-1, 0.25rem);
}

.trend-icon {
    font-size: 0.7rem;
    transition: all var(--transition-base, 200ms) ease;
}

.trend-icon.up {
    color: var(--success, #059669);
}

.trend-icon.down {
    color: var(--error, #DC2626);
    transform: rotate(180deg);
}

.trend-value {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 400;
    transition: all var(--transition-base, 200ms) ease;
}

.trend-value.up {
    color: var(--success, #059669);
}

.trend-value.down {
    color: var(--error, #DC2626);
}

/* Last Updated Indicator */
.last-updated {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-3, 0.75rem);
    background: rgba(100, 181, 246, 0.1);
    border: 0.2px solid rgba(100, 181, 246, 0.2);
    border-radius: var(--radius-md, 0.75rem);
    font-size: var(--text-xs, 0.75rem);
    color: var(--primary-lightest, #B3E5FC);
    margin-top: var(--space-2, 0.5rem);
}

.last-updated i {
    color: var(--primary-light, #90CAF9);
    font-size: 0.8rem;
}

/* Update Animation Classes */
.insight-stat-card.updating {
    border-color: var(--primary-light, #90CAF9);
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.3);
    /* animation: cardUpdatePulse 1s ease-in-out; - Removed card pulse animation */
}

/* @keyframes cardUpdatePulse - Removed pulse and scale animation
@keyframes cardUpdatePulse {
    0%, 100% { 
        background: rgba(58, 175, 169, 0.1);
        transform: scale(1);
    }
    50% { 
        background: rgba(58, 175, 169, 0.2);
        transform: scale(1.02);
    }
} */

/* .insight-stat-card.updating .stat-icon {
    - Removed icon pulse animation for static design
} */

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mood-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.mood-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.mood-fill.happy {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

/* AI Insights */
/* Trending Section */
.trending-pages-nav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.trending-page-btn {
    flex: 1;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trending-page-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.trending-page-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.trending-page {
    display: block;
}

.trending-page.hidden {
    display: none;
}

.insight-circle.trending {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-graphic {
    flex-shrink: 0;
}

.insight-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.insight-text {
    flex: 1;
}

.insight-title-small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
}

.insight-value {
    color: white;
    font-weight: 400;
    font-size: 0.875rem;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: var(--border-thin, 1px) solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.875rem 0.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-action-btn i {
    font-size: 1rem;
}

.quick-action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Layout - Mobile First */
@media (max-width: 1023px) {
    .main-grid-container {
        grid-template-columns: 1fr;
        grid-template-areas: "main-content";
    padding: 1rem;
    padding-left: 1rem; /* remove 280px offset on mobile */
    padding-right: 1rem;
    }
    
    .left-sidebar-combined {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "posts";
    }
    
    .insights-right-top-area {
        display: none;
    }
    
    .main-content-area {
    max-width: 600px;
    margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .content-section { padding-left: 0; padding-right: 0; }
    .main-grid-container {
    padding: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    }
    
    /* Mobile universal mood row adjustments */
    .universal-mood-row {
        height: 36px;
        border-width: 0.2px;
        border-radius: var(--radius-lg, 1rem);
        gap: 0.5px;
    }
    
    .universal-mood-btn {
        font-size: 0.48rem;
        padding: 0 1px;
        letter-spacing: 0;
    }
    
    .universal-mood-btn:hover {
        transform: scale(1.05) translateY(-1px);
        margin: 0 0.5px;
    }
    
    .universal-mood-btn.selected {
        transform: scale(1.08) translateY(-2px);
        margin: 0 1px;
        border-width: 0.2px;
    }
    
    /* Header adjustments for mobile */
    .post-creation-header h2 {
        font-size: 1.4rem;
    }
    
    .header-media-btn {
        width: 32px;
        height: 32px;
    }
    
    .header-media-btn i {
        font-size: 0.8rem;
    }
    
    .microphone-icon-container {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet universal mood button adjustments */
    .universal-mood-row {
        height: 44px;
        gap: 0.8px;
    }
    
    .universal-mood-btn {
        font-size: 0.54rem;
        padding: 0 1.5px;
    }
    
    .universal-mood-btn:hover {
        transform: scale(1.06) translateY(-1.5px);
        margin: 0 1px;
    }
    
    .universal-mood-btn.selected {
        transform: scale(1.1) translateY(-2.5px);
        margin: 0 1.5px;
    }
}

/* Desktop specific - Show two column layout with 50/50 split */
@media (min-width: 1024px) {
    .main-grid-container {
        grid-template-columns: 280px 1fr;
        grid-template-areas: "left-sidebar main-content";
    }
    
    .left-sidebar-combined {
        display: block;
    }
    
    .content-grid {
    grid-template-columns: minmax(0, 1fr) 360px; /* center | right */
    grid-template-areas: "posts right-sidebar";
    gap: 24px;
    }
}

/* Sticky Elements */
.sticky-sidebar {
    position: sticky;
    top: var(--header-offset, 6rem);
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    z-index: 5;
}

/* Typography Scale */
.text-3xl { font-size: 2rem; font-weight: 400; }
.text-2xl { font-size: 1.6rem; font-weight: 400; }
.text-xl { font-size: 1.3rem; font-weight: 500; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Spacing Utilities */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-5 { padding: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }

.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

/* Content Sections */
.content-section {
    width: 100%;
}

/* Ensure center content has a hard max width like other tabs */
.main-content-area .posts-content-area {
    display: block;
    width: 100%;
    max-width: var(--feed-max, 860px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Ensure all content sections inside main content are capped and centered */
#main-content .content-section,
#main-content .content-section.packed-layout {
    max-width: min(100%, var(--feed-max, 860px));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Match section content max-width to feed center constraints where applicable */
#pages-section,
#global-feed-section,
#sport-section,
#resources-section,
#best-of-section,
#recent-section {
    width: 100%;
}

.content-section.hidden {
    display: none;
}

/* Universal shrink/cap for inner wrappers */
.content-section,
.section-card,
.section-content,
.tabs, .tab-row,
.pockets-nav-container, .pockets-feed-content, .pocket-tab-content, .pocket-posts-container,
.friends-premium-layout, .friends-main-container,
.messages-premium-layout, .messages-main-container {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Popular / Notifications: constrain inner rows */
#popular-section, #notifications-section { min-width: 0; max-width: 100%; }
#popular-section *, #notifications-section * { min-width: 0; max-width: 100%; }

/* Media and long-content safety */
img, video, canvas, svg { max-width: 100%; height: auto; }
pre, code { white-space: pre-wrap; overflow-x: auto; }
table { width: 100%; display: block; overflow-x: auto; }

/* Enhanced Post Creation Header */
.post-creation-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(72, 209, 204, 0.1);
    position: relative;
}

.post-creation-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-light, #90CAF9), 
        var(--primary-medium, #2B7A78)
    );
    border-radius: 2px;
    transition: width var(--transition-base, 200ms) ease;
}

.post-creation-header:hover::after {
    width: 120px;
}

.post-creation-header h2 {
    font-size: 1.75rem;
    font-weight: 400;
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.post-creation-header h2::before {
    content: '✨';
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
}

.section-header {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

/* Navigation */
.nav-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Profile Elements */
.profile-picture-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: var(--border-extra, 4px) solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-info-grid .info-value,
.contact-input {
    font-size: 0.9rem;
}

.profile-info-grid .info-label {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Enhanced Form Elements */
.modern-textarea, .contact-input, input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 16px 20px;
    border: 0.2px solid rgba(100, 181, 246, 0.15);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
    min-height: 10px;
    font-size: 1rem;
    font-weight: 400;
    color: #2d3748;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.85) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    position: relative;
}

.modern-textarea:focus, .contact-input:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light, #90CAF9);
    box-shadow: 
        0 0 0 4px rgba(100, 181, 246, 0.15),
        0 8px 20px rgba(100, 181, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(179, 229, 252, 0.95) 100%);
    transform: translateY(-1px);
}

.modern-textarea::placeholder, .contact-input::placeholder, input::placeholder, textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-style: normal;
    transition: opacity 0.3s ease;
}

.modern-textarea:focus::placeholder, 
.contact-input:focus::placeholder, 
input:focus::placeholder, 
textarea:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* Enhanced Submit Button - Beautiful Blue Design (animations toned down) */
#submit-post {
    background: linear-gradient(135deg, 
        var(--primary-medium, #64B5F6) 0%, 
        var(--primary-dark, #1976D2) 25%, 
        var(--primary-darkest, #1565C0) 50%, 
        var(--primary-dark, #1976D2) 75%, 
        var(--primary-medium, #64B5F6) 100%
    );
    background-size: 200% 200%;
    color: var(--accent-white, #FFFFFF);
    border: none;
    border-radius: var(--radius-xl, 1.5rem);
    padding: var(--space-4, 1rem) var(--space-8, 2rem);
    font-size: var(--text-lg, 1.125rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(100, 181, 246, 0.4),
        0 4px 10px rgba(21, 101, 192, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    margin-top: var(--space-6, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3, 0.75rem);
    animation: gradientShift 3s ease-in-out infinite;
}

/* Remove rocket emoji and sweep shimmer for a calmer primary action */
#submit-post::before { content: none; animation: none; }
#submit-post::after { content: none; }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#submit-post:hover {
    background-size: 250% 250%;
    box-shadow: 
        0 12px 35px rgba(100, 181, 246, 0.5),
        0 6px 15px rgba(21, 101, 192, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    transform: translateY(-2px);
}

#submit-post:hover::after { left: auto; }


/* Rocket animation removed */
/* Modern Buttons - Enhanced Styling */
.btn, .btn-primary, .submit-btn, button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 0.2px solid transparent;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary, .submit-btn, button[type="submit"] {
    background: linear-gradient(135deg, 
        var(--primary-light, #90CAF9) 0%, 
        var(--primary-medium, #64B5F6) 100%
    );
    color: var(--accent-white, #FFFFFF);
    border-color: var(--primary-light, #90CAF9);
    box-shadow: 
        0 6px 20px rgba(100, 181, 246, 0.3),
        0 2px 8px rgba(21, 101, 192, 0.1);
}

.btn-primary::before, .submit-btn::before, button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.6s ease;
}

.btn-primary:hover, .submit-btn:hover, button[type="submit"]:hover {
    background: linear-gradient(135deg, 
        var(--primary-medium, #64B5F6) 0%, 
        var(--primary-dark, #1976D2) 100%
    );
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(100, 181, 246, 0.4),
        0 4px 15px rgba(21, 101, 192, 0.15);
    letter-spacing: 1px;
}

.btn-primary:hover::before, .submit-btn:hover::before, button[type="submit"]:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    color: #4a5568;
    border-color: rgba(72, 209, 204, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, 
        rgba(100, 181, 246, 0.15) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    border-color: var(--primary-light, #90CAF9);
    color: var(--text-primary, #2d3748);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.2);
}

.modern-form {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%,
        rgba(225, 245, 254, 0.92) 20%,
        rgba(179, 229, 252, 0.88) 40%,
        rgba(225, 245, 254, 0.92) 60%,
        rgba(179, 229, 252, 0.85) 80%,
        rgba(255, 255, 255, 0.95) 100%
    );
    backdrop-filter: blur(25px);
    border: 0.2px solid rgba(100, 181, 246, 0.2);
    border-radius: var(--radius-xl, 1.5rem);
    padding: var(--space-6, 1.5rem);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(100, 181, 246, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.modern-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-light, #90CAF9), 
        var(--primary-medium, #64B5F6), 
        var(--primary-light, #90CAF9)
    );
    opacity: 0.8;
}

/* ===== ELEGANT SIDEBAR NAVIGATION ===== */

.sidebar-section-title {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: var(--space-8, 2rem) var(--space-4, 1rem) var(--space-4, 1rem) var(--space-4, 1rem);
    padding-bottom: var(--space-3, 0.75rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-primary, 'Inter'), sans-serif;
    text-shadow: none;
    opacity: 0.7;
    position: relative;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    border-radius: var(--radius-md, 0.75rem);
    text-decoration: none;
    color: var(--accent-white, #FFFFFF);
    background: linear-gradient(135deg, rgba(150, 47, 191, 0.3), rgba(214, 36, 159, 0.25), rgba(245, 133, 41, 0.2));
    border: 0.2px solid rgba(254, 218, 119, 0.3);
    transition: all var(--transition-base, 200ms) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-weight: 400;
    font-size: var(--text-sm, 0.875rem);
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
    min-height: 42px;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(150, 47, 191, 0.4);
    font-family: var(--font-primary, 'Inter'), sans-serif;
    /* Make interactions feel like a forward zoom instead of horizontal shift */
    transform-origin: center;
}

.sidebar-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow, 500ms) ease;
}

.sidebar-menu-item:hover {
    background: linear-gradient(135deg, rgba(150, 47, 191, 0.5), rgba(214, 36, 159, 0.45), rgba(245, 133, 41, 0.4));
    color: var(--accent-white, #FFFFFF);
    /* Forward zoom (no lateral movement) */
    transform: scale(1.04);
    border-color: rgba(254, 218, 119, 0.6);
    box-shadow: 0 4px 12px rgba(150, 47, 191, 0.4), 0 2px 8px rgba(254, 218, 119, 0.3);
}

.sidebar-menu-item:hover::before {
    left: 100%;
}

.sidebar-menu-item.active {
    background: #000000;
    color: #FFFFFF;
    border-color: #429E9D;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 2px #429E9D;
    font-weight: 400;
    /* Selected state: slightly stronger forward zoom */
    transform: scale(1.06);
}

.sidebar-menu-item.active::before {
    display: none;
}

.sidebar-menu-item i {
    width: 20px;
    margin-right: var(--space-3, 0.75rem);
    text-align: center;
    font-size: var(--text-base, 1rem);
    font-weight: 400;
    transition: transform var(--transition-base, 200ms) ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #429E9D;
    text-shadow: none;
}

.sidebar-menu-item:hover i,
.sidebar-menu-item.active i {
    transform: scale(1.1);
    color: #000000;
    text-shadow: none;
}

/* Sidebar Navigation Spacing */
.sidebar-nav-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 0.75rem);
    margin-bottom: var(--space-8, 2rem);
}

.left-sidebar-combined nav {
    margin-bottom: var(--space-5, 1.25rem);
}

.left-sidebar-combined nav:last-of-type {
    margin-bottom: var(--space-8, 2rem);
}

.left-sidebar-combined nav:first-of-type {
    margin-bottom: var(--space-10, 2.5rem);
}

/* Dynamic Icon Size for Better Fit */
@media (max-height: 700px) {
    .sidebar-nav-section {
        gap: 8px; /* Reduce gap on smaller screens */
        margin-bottom: 24px; /* Reduce section spacing */
    }
    .sidebar-menu-item {
        padding: 8px 12px;
        font-size: 0.75rem;
        min-height: 36px;
    }
    .sidebar-menu-item i {
        font-size: 0.85rem;
        width: 16px;
        margin-right: 8px;
    }
    .sidebar-section-title {
        font-size: 0.7rem;
        margin: 24px 14px 12px 14px; /* Still more than original */
    }
    /* Reduce nav spacing on small screens */
    .left-sidebar-combined nav:first-of-type {
        margin-bottom: 28px;
    }
}

/* Enhanced responsive sidebar layout */
@media (max-height: 800px) {
    .left-sidebar-combined .profile-card {
        padding: 0.5rem;
    }
    .sidebar-section-title {
        margin: 1rem 0.5rem 0.5rem 0.5rem;
        font-size: 0.8rem;
    }
    .sidebar-menu-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-height: 600px) {
    .left-sidebar-combined .profile-card {
        padding: 0.5rem;
    }
    .sidebar-section-title {
        margin: 0.75rem 0.5rem 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    .sidebar-menu-item {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        min-height: 28px;
    }
    .sidebar-menu-item i {
        font-size: 0.8rem;
        width: 14px;
        margin-right: 6px;
    }
}

/* Sidebar Scrollbar Styling */
.left-sidebar-combined::-webkit-scrollbar {
    width: 4px;
}

.left-sidebar-combined::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.left-sidebar-combined::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.left-sidebar-combined::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Header Media Buttons - Compact Version */
.header-media-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0.2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#add-photo-btn.header-media-btn {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.15) 0%, 
        rgba(147, 51, 234, 0.2) 100%);
    color: #7c3aed;
    border-color: rgba(168, 85, 247, 0.3);
}

#add-video-btn.header-media-btn {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(220, 38, 38, 0.2) 100%);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

#add-poll-btn.header-media-btn {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.15) 0%, 
        rgba(22, 163, 74, 0.2) 100%);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

.header-media-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#add-photo-btn.header-media-btn:hover {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.25) 0%, 
        rgba(147, 51, 234, 0.3) 100%);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

#add-video-btn.header-media-btn:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.25) 0%, 
        rgba(220, 38, 38, 0.3) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#add-poll-btn.header-media-btn:hover {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.25) 0%, 
        rgba(22, 163, 74, 0.3) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.header-media-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.header-media-btn:hover i {
    transform: scale(1.1);
}
#add-photo-btn, #add-video-btn, #add-poll-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    cursor: pointer;
    text-decoration: none;
}

#add-photo-btn {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.1) 0%, 
        rgba(147, 51, 234, 0.15) 100%);
    color: #7c3aed;
    border-color: rgba(168, 85, 247, 0.2);
}

#add-video-btn {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(220, 38, 38, 0.15) 100%);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

#add-poll-btn {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.1) 0%, 
        rgba(22, 163, 74, 0.15) 100%);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.2);
}

#add-photo-btn::before, #add-video-btn::before, #add-poll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#add-photo-btn:hover, #add-video-btn:hover, #add-poll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#add-photo-btn:hover {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.2) 0%, 
        rgba(147, 51, 234, 0.25) 100%);
    border-color: rgba(168, 85, 247, 0.4);
    color: #6b21a8;
}

#add-video-btn:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.2) 0%, 
        rgba(220, 38, 38, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    color: #b91c1c;
}

#add-poll-btn:hover {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.2) 0%, 
        rgba(22, 163, 74, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.4);
    color: #15803d;
}

#add-photo-btn:hover::before, 
#add-video-btn:hover::before, 
#add-poll-btn:hover::before {
    left: 100%;
}

#add-photo-btn i, #add-video-btn i, #add-poll-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

#add-photo-btn:hover i, 
#add-video-btn:hover i, 
#add-poll-btn:hover i {
    transform: scale(1.1);
}

/* Media Upload Container */
.media-upload-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 16px;
    border: 0.2px solid rgba(72, 209, 204, 0.1);
}
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.125rem; }

/* Optimized sidebar navigation spacing */
.left-sidebar-combined nav.space-y-1 > :not([hidden]) ~ :not([hidden]) { 
    margin-top: 0.125rem; 
}

.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 0.2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.cursor-pointer { cursor: pointer; }
.font-semibold { font-weight: 400; }
.font-bold { font-weight: 400; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

/* Image Handling */
.image-preview-container {
    max-width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.image-preview {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Notification Bubble */
.notification-bubble {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-light, #90CAF9);
    animation: pulse 2s infinite;
}

/* Navigation Active States */
.sidebar-menu-item.active,
.nav-link.active {
    background: #000000;
    color: #FFFFFF;
    font-weight: 400;
    border-radius: 8px;
    border: 0.2px solid #429E9D;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-menu-item.active i,
.nav-link.active i {
    color: #000000;
    filter: none;
}

/* Button Active States for Header */
#messages-tab-btn.active,
#friends-tab-btn.active {
    background: #E8E1D0;
    color: #000;
    font-weight: 400;
    border-radius: 9999px;
    border: 0.2px solid #000;
    box-shadow: none;
    transform: translateY(-1px);
}

/* Post Footer */
.post-mood-footer {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0 0 0.75rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all var(--transition-base, 200ms) ease;
    background: linear-gradient(45deg, 
        rgba(58, 175, 169, 0.1), 
        rgba(58, 175, 169, 0.3)
    );
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--primary-light, #90CAF9);
}

/* Message Box Styles */
.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(150, 47, 191, 0.25);
    backdrop-filter: blur(15px);
    border: 0.2px solid rgba(150, 47, 191, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, 
        rgba(150, 47, 191, 0.95) 0%, 
        rgba(214, 36, 159, 0.9) 50%, 
        rgba(245, 133, 41, 0.95) 100%);
}

.message-box.show {
    opacity: 1;
    transform: translateY(0);
}

.message-box.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* Custom Tooltip */
.custom-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 200px;
    text-align: center;
}

.custom-tooltip.show {
    opacity: 1;
}

/* Enhanced Microphone Icon Container */
.microphone-icon-container {
    width: 48px;
    height: 48px;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, 
        rgba(72, 209, 204, 0.1) 0%, 
        rgba(64, 224, 208, 0.15) 50%, 
        rgba(32, 178, 170, 0.1) 100%);
    border: 0.2px solid rgba(72, 209, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.microphone-icon-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(72, 209, 204, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.microphone-icon-container:hover {
    background: linear-gradient(135deg, 
        rgba(72, 209, 204, 0.2) 0%, 
        rgba(64, 224, 208, 0.25) 50%, 
        rgba(32, 178, 170, 0.2) 100%);
    transform: scale(1.05);
    border-color: rgba(72, 209, 204, 0.4);
    box-shadow: 0 4px 16px rgba(72, 209, 204, 0.3);
}

.microphone-icon-container:hover::before {
    width: 100%;
    height: 100%;
}

.microphone-icon {
    font-size: 1.25rem;
    transition: all var(--transition-base, 200ms) ease;
    color: var(--primary-light, #90CAF9);
    z-index: 1;
    position: relative;
}

.microphone-icon.recording {
    color: #EF4444;
    animation: recording-pulse 1.5s infinite;
}

@keyframes recording-pulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5));
    }
    50% { 
        transform: scale(1.1); 
        filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.8));
    }
}

/* Thread navigation highlight for focusing a post card when jumping to thread */
.thread-focus {
    animation: threadFlash 1.8s ease-out;
}
@keyframes threadFlash {
    0% { box-shadow: 0 0 0 0 rgba(66, 158, 157, 0.60); }
    30% { box-shadow: 0 0 0 6px rgba(66, 158, 157, 0.25); }
    100% { box-shadow: 0 0 0 0 rgba(66, 158, 157, 0.0); }
}

/* ===== Accessibility: Focus styles and reduced motion ===== */
/* Keyboard focus outline for interactive elements */
:where(a, button, [role="button"], input, textarea, select, summary, .sidebar-menu-item, .nav-link, .trending-page-btn, .quick-action-btn):focus-visible {
    outline: 3px solid var(--primary-light, #90CAF9);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.35);
}

/* Skip link removed per request */

/* Visually hidden utility (preserve for screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    html, body, * {
        animation-duration: 0.001ms;
        animation-iteration-count: 1;
        transition-duration: 0.001ms;
        scroll-behavior: auto;
    }
    /* Disable specific non-essential animations */
    .live-text, .trending-mood-item, .news-article-card, .universal-mood-btn, .mood-button,
    #submit-post, .btn, .btn-primary, .quick-action-btn, .post-creation-header h2::before {
        animation: none;
    }
}

