/* Feed Page - Glass Morphism & Galaxy Theme */

/* Feed Page Specific Layout */
.feed-page {
    background: #000000;
}

.feed-page .main-layout {
    height: 100vh;
    overflow: hidden;
}

/* Ensure navigation is clickable */
.feed-page .navigation-sidebar {
    position: relative;
    z-index: 100;
}

/* Galaxy Background for Feed */
.feed-galaxy-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.feed-stars {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 160px, white, transparent),
        radial-gradient(1px 1px at 130px 40px, white, transparent),
        radial-gradient(1.5px 1.5px at 80px 120px, rgba(255, 255, 255, 0.8), transparent);
    background-size: 300px 300px;
    animation: driftStars 120s linear infinite;
    opacity: 0.4;
}

@keyframes driftStars {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(-100px, -100px) rotate(360deg);
    }
}

.feed-nebula {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: 
        radial-gradient(circle at 20% 40%, rgba(139, 92, 246, 0.08), transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.08), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%);
    animation: nebulaFloat 30s ease-in-out infinite;
    opacity: 0.5;
    filter: blur(60px);
}

@keyframes nebulaFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.feed-shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    top: 10%;
    right: 10%;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px white);
    animation: shootingStar 4s linear infinite;
    opacity: 0;
}

.feed-shooting-star::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, white, transparent);
    transform: translateX(-100px) translateY(-0.5px);
}

@keyframes shootingStar {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(-400px, 400px);
        opacity: 0;
    }
}

/* Content Area Override for Feed Page */
.content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

/* Feed Container */
.feed-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Feed Header */
.feed-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

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

.feed-title {
    font-size: 48px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feed-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Feed Content Layout */
.feed-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Feed Main Content */
.feed-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Feed Filter Tabs */
.feed-tabs {
    display: flex;
    gap: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.feed-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feed-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.feed-tab:hover::before {
    transform: translateX(100%);
}

.feed-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.feed-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: 600;
}

.tab-icon {
    font-size: 16px;
    display: none;
}

/* Feed Items Container */
.feed-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 400px;
    padding-bottom: 24px;
}

/* Feed Item Card */
.feed-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: feedItemSlide 0.5s ease-out;
}

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

.feed-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s;
}

.feed-item:hover::before {
    transform: translateX(100%);
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Feed Item Header */
.feed-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feed-user-info {
    flex: 1;
}

.feed-username {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2px;
}

.feed-timestamp {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.feed-type-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Feed Item Content */
.feed-item-content {
    margin-bottom: 16px;
}

.feed-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

/* Token Card in Feed */
.feed-token-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-token-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-token-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.feed-token-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.feed-token-symbol {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.feed-token-price {
    text-align: right;
}

.feed-price-value {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: block;
}

.feed-price-change {
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.feed-price-change.positive {
    color: #10b981;
}

.feed-price-change.negative {
    color: #ef4444;
}

/* Feed Item Actions */
.feed-item-actions {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.feed-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

/* Feed Loading State */
.feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.feed-pulse-loader {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulseDot 1.4s ease-in-out infinite;
}

.pulse-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.pulse-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulseDot {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.feed-loading p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* Load More Button */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Feed Sidebar */
.feed-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

/* Custom Scrollbar */
.content-area::-webkit-scrollbar,
.feed-sidebar::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track,
.feed-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb,
.feed-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover,
.feed-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Feed Widget Base */
.feed-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.widget-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.widget-refresh {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
}

.widget-refresh:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: rotate(180deg);
}

/* Trending List */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trending-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.trending-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.trending-info {
    flex: 1;
}

.trending-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.trending-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.trending-change {
    font-size: 14px;
    font-weight: 500;
}

.trending-change.positive {
    color: #10b981;
}

.trending-change.negative {
    color: #ef4444;
}

/* Market Stats */
.market-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    display: block;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

/* Top Movers */
.movers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.mover-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mover-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mover-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 2px 0;
}

.mover-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.mover-change {
    text-align: right;
}

.mover-percentage {
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.mover-percentage.positive {
    color: #10b981;
}

.mover-percentage.negative {
    color: #ef4444;
}

.mover-volume {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* News Item Specific Styles */
.news-item {
    padding: 0;
    overflow: visible;
}

.news-content {
    display: flex;
    gap: 20px;
    padding: 24px;
}

.news-image {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.news-text {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.news-source {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.news-divider {
    opacity: 0.3;
}

.news-actions {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.read-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
    transform: translateX(3px);
}

/* Error State */
.feed-error {
    text-align: center;
    padding: 60px 20px;
}

.feed-error p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.feed-error button {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feed-error button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feed-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .feed-container {
        padding: 16px;
        justify-content: flex-start;
        padding-top: 40px;
    }
    
    .feed-title {
        font-size: 32px;
    }
    
    .feed-subtitle {
        font-size: 16px;
    }
    
    .feed-tabs {
        flex-wrap: wrap;
    }
    
    .feed-tab {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .feed-item {
        padding: 20px;
    }
    
    .feed-widget {
        padding: 20px;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .news-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .news-image {
        width: 100%;
        height: 180px;
    }
}