:root {
    --navbar-h: 80px;
    --tabs-h: 48px;
}

body.route-discover {
    overflow-x: hidden;
    background: rgb(var(--background));
}

body.route-discover footer {
    display: block;
}

/* Navbar styling for discover page */
body.route-discover .marketplace-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(var(--border));
}

body.route-discover .logo {
    color: white;
}

body.route-discover .logo-text {
    background: linear-gradient(135deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.route-discover .nav-links .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

body.route-discover .nav-links .nav-link:hover {
    color: white;
}

body.route-discover .nav-links .nav-link.active {
    color: #ffd700;
}

body.route-discover .header-actions {
    color: white;
}

body.route-discover .header-actions .language-switcher {
    color: rgba(255, 255, 255, 0.8);
}

body.route-discover .header-actions .btn {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

body.route-discover .header-actions .btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* User menu styling */
body.route-discover .user-menu .btn {
    color: rgba(255, 255, 255, 0.8);
}

body.route-discover .user-menu .btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Auth buttons styling */
body.route-discover .btn-ghost {
    color: rgba(255, 255, 255, 0.8);
    border-color: transparent;
}

body.route-discover .btn-ghost:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

body.route-discover .btn-primary {
    background: linear-gradient(135deg, rgb(120, 119, 198), rgb(255, 193, 7));
    color: white;
    border: none;
}

body.route-discover .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(120, 119, 198, 0.4);
}

/* Mobile menu button */
body.route-discover .mobile-menu-btn {
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    cursor: pointer;
}

body.route-discover .mobile-menu-btn:hover {
    color: white;
}

/* Icons in header */
body.route-discover .header-actions i[data-lucide] {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.route-discover .header-actions .btn:hover i[data-lucide] {
    color: white !important;
}

/* Mobile menu styling for discover page */
body.route-discover .mobile-menu {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
}

body.route-discover .mobile-menu .logo {
    color: white;
}

body.route-discover .mobile-menu .logo-text {
    background: linear-gradient(135deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.route-discover .mobile-menu-close {
    color: rgba(255, 255, 255, 0.8);
}

body.route-discover .mobile-menu-close:hover {
    color: white;
}

body.route-discover .mobile-nav-link {
    color: rgba(255, 255, 255, 0.8);
}

body.route-discover .mobile-nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

body.route-discover .mobile-nav-link.active {
    color: #ffd700;
    background-color: rgba(255, 193, 7, 0.1);
}

.discover-container {
    position: relative;
    height: calc(100dvh - var(--navbar-h) - var(--tabs-h));
    width: 100%;
    background: #000;
    overflow: hidden;
}

/* Tab Navigation */
.discover-tabs {
    position: fixed;
    top: calc(var(--navbar-h) + 1rem); /* Below header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.discover-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.discover-tab.active {
    background: white;
    color: #000;
}

.discover-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Reel Container */
.reels-container {
    position: relative;
    height: calc(100dvh - var(--navbar-h) - var(--tabs-h));
    width: 100%;
    overflow: hidden;
}

.reel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reel.active {
    opacity: 1;
    transform: translateY(0);
}

.reel.prev {
    opacity: 0.3;
    transform: translateY(-100%);
}

.reel.next {
    opacity: 0.3;
    transform: translateY(100%);
}

/* Reel Content */
.reel-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.reel-media img,
.reel-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.4) 85%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
}

.reel-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 100%
    );
    pointer-events: none;
}

/* Reel Info */
.reel-info {
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    right: 5rem;
    z-index: 20;
    color: white;
    max-width: calc(100% - 6rem);
}

.reel-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.reel-professional {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.reel-professional img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.reel-professional-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.reel-verified {
    color: #3b82f6;
    font-size: 0.875rem;
}

.reel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.reel-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.reel-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.reel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgb(120, 119, 198), rgb(255, 193, 7));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.reel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(120, 119, 198, 0.4);
    color: white;
    text-decoration: none;
}

/* Side Actions */
.reel-actions {
    position: fixed;
    right: 1rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
}

.action-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.25rem;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.action-button.liked {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.action-button.bookmarked {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.action-count {
    font-size: 0.625rem;
    font-weight: 500;
}

/* Navigation Controls */
.reel-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sound Indicator */
.sound-indicator {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 30;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sound-indicator:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.sound-indicator.muted {
    color: #ef4444;
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 4rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Quick Quote Modal */
.quote-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quote-modal.show {
    display: flex;
}

.quote-modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.quote-form button {
    background: linear-gradient(135deg, rgb(120, 119, 198), rgb(255, 193, 7));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(120, 119, 198, 0.4);
}

/* Profile Preview Modal */
.profile-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-modal.show {
    display: flex;
}

.profile-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.profile-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: #6b7280;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.profile-actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-modal {
    background: linear-gradient(135deg, rgb(120, 119, 198), rgb(255, 193, 7));
    color: white;
    border: none;
}

.btn-outline-modal {
    background: transparent;
    color: rgb(120, 119, 198);
    border: 1px solid rgb(120, 119, 198);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    z-index: 10;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Ensure navbar stays on top */
    body.route-discover .marketplace-header {
        z-index: 50;
        position: sticky;
    }
    
    .discover-tabs {
        top: calc(var(--navbar-h) + 0.5rem);
        padding: 0.125rem;
        z-index: 40;
        width: calc(100% - 2rem);
        max-width: 400px;
    }

    .discover-tab {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .reel-info {
        bottom: 1.5rem;
        left: 0.75rem;
        right: 4rem;
    }

    .reel-title {
        font-size: 1rem;
    }

    .reel-actions {
        right: 0.75rem;
        bottom: 6rem;
        gap: 0.75rem;
    }

    .action-button {
        width: 2.5rem;
        height: 2.5rem;
    }

    .reel-nav {
        display: none;
    }

    .sound-indicator {
        bottom: 1.5rem;
        right: 0.75rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .touch-overlay {
        top: calc(var(--navbar-h) + var(--tabs-h) + 0.5rem);
    }
}

/* Loading State */
.loading-reel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: white;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Touch Gestures */
.touch-overlay {
    position: absolute;
    top: calc(var(--navbar-h) + var(--tabs-h) + 1rem); /* Below tabs and header */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    touch-action: pan-y;
}

/* ===========================================
   SOCIAL FEED LAYOUT (NEW)
   =========================================== */

.discover-feed-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    min-height: 100vh;
}

.discover-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.25rem;
    align-items: start;
}

.main-feed {
    max-width: 640px;
    width: 100%;
}

.sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Feed Tabs */
.feed-tabs {
    display: flex;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 8px;
    padding: 0.25rem;
    margin-bottom: 1rem;
    gap: 0.25rem;
}

.feed-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: transparent;
    color: rgb(var(--muted-foreground));
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feed-tab.active {
    background: rgb(var(--primary));
    color: rgb(var(--primary-foreground));
}

.feed-tab:hover:not(.active) {
    background: rgb(var(--muted));
    color: rgb(var(--foreground));
}

/* Create Post Card */
.create-post-card {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.create-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.create-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--muted-foreground));
}

.quick-post-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgb(var(--border));
    border-radius: 24px;
    background: rgb(var(--background));
    color: rgb(var(--foreground));
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-post-input:hover {
    border-color: rgb(var(--primary));
}

.create-post-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
}

.create-post-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: rgb(var(--muted-foreground));
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-post-btn:hover {
    background: rgb(var(--muted));
    color: rgb(var(--foreground));
}

/* Feed Content */
.feed-content {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.feed-post {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.feed-post:hover {
    border-color: rgba(var(--primary), 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--muted-foreground));
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: rgb(var(--foreground));
}

.verified-badge {
    width: 16px;
    height: 16px;
    color: rgb(var(--primary));
}

.post-time {
    font-size: 0.875rem;
    color: rgb(var(--muted-foreground));
}

.post-menu-btn {
    background: transparent;
    border: none;
    color: rgb(var(--muted-foreground));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.post-menu-btn:hover {
    background: rgb(var(--muted));
    color: rgb(var(--foreground));
}

/* Post Content */
.post-content {
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: rgb(var(--foreground));
}

.hashtag {
    color: rgb(var(--primary));
    text-decoration: none;
    font-weight: 500;
}

.hashtag:hover {
    text-decoration: underline;
}

.mention {
    color: rgb(var(--primary));
    text-decoration: none;
    font-weight: 500;
}

.mention:hover {
    text-decoration: underline;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.25rem;
    color: rgb(var(--primary));
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-link:hover {
    text-decoration: underline;
}

/* Post Media */
.post-media {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.75rem;
    border: 1px solid rgb(var(--border));
}

.post-media.single img,
.post-media.single video {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.post-media.multiple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    max-height: 300px;
    border: 0;
}

.post-media.multiple img,
.post-media.multiple video {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    cursor: pointer;
}

.audio-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: rgb(var(--muted));
}

.audio-tile {
    min-height: 140px;
    padding: 0.75rem;
    background: rgb(var(--muted));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.audio-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgb(var(--card));
    color: rgb(var(--primary));
    border: 1px solid rgb(var(--border));
}

.audio-body {
    min-width: 0;
    flex: 1;
}

.audio-title {
    color: rgb(var(--foreground));
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-card audio,
.audio-tile audio {
    width: 100%;
    height: 34px;
}

.media-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(var(--border));
    margin-bottom: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: rgb(var(--muted-foreground));
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgb(var(--muted));
    color: rgb(var(--foreground));
}

.action-btn.reacted {
    color: #ef4444;
}

.action-btn.reacted .fill-current {
    fill: currentColor;
}

/* Post Engagement */
.post-engagement {
    padding-top: 0.5rem;
}

.engagement-stats {
    font-size: 0.875rem;
    color: rgb(var(--muted-foreground));
}

/* Empty Feed */
.empty-feed {
    text-align: center;
    padding: 4rem 2rem;
    color: rgb(var(--muted-foreground));
}

.empty-feed-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: rgb(var(--muted-foreground));
}

.empty-feed h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(var(--foreground));
}

/* Loading States */
.feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgb(var(--border));
    border-top: 2px solid rgb(var(--primary));
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.feed-error {
    text-align: center;
    padding: 4rem 2rem;
    color: rgb(var(--muted-foreground));
}

.error-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: #ef4444;
}

.retry-btn {
    padding: 0.75rem 1.5rem;
    background: rgb(var(--primary));
    color: rgb(var(--primary-foreground));
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    opacity: 0.9;
}

/* Load More */
.load-more-container {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgb(var(--card));
    color: rgb(var(--foreground));
    border: 1px solid rgb(var(--border));
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.load-more-btn:hover {
    background: rgb(var(--muted));
}

.scroll-trigger {
    height: 1px;
    width: 100%;
}

/* Create Post Modal */
.create-post-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.create-post-modal.show {
    display: flex;
}

.create-post-modal-content {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgb(var(--border));
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(var(--foreground));
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: rgb(var(--muted-foreground));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgb(var(--muted));
    color: rgb(var(--foreground));
}

.modal-body {
    padding: 0;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgb(var(--card));
    color: rgb(var(--foreground));
    border: 1px solid rgb(var(--border));
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
}

/* Trending Topics Widget */
.trending-topics-widget {
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: 12px;
    overflow: hidden;
}

.trending-topics-widget .widget-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgb(var(--border));
}

.trending-topics-widget .widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(var(--foreground));
    margin: 0;
    display: flex;
    align-items: center;
}

.trending-topics-widget .widget-content {
    padding: 0;
}

.trending-items {
    padding: 0.5rem;
}

.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.trending-item:hover {
    background-color: rgb(var(--muted) / 0.5);
}

.trending-item .hashtag {
    font-weight: 500;
    color: rgb(var(--foreground));
}

.trending-item .post-count {
    font-size: 0.75rem;
    color: rgb(var(--muted-foreground));
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .discover-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        order: 1;
    }

    .main-feed {
        order: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .discover-feed-container {
        padding: 1rem 0.5rem;
    }
    
    .sidebar {
        gap: 1rem;
    }
    
    .feed-tabs {
        margin: 0 0.5rem 1rem;
    }
    
    .feed-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .create-post-card {
        margin: 0 0.5rem 1rem;
        padding: 1rem;
    }
    
    .feed-post {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .create-post-modal-content {
        margin: 0 0.5rem;
    }
    
    .toast-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}
