/* ===== News Feed Styles - 8bitedge UI (Updated) ===== */

@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Main Wrapper */
.news-feed-wrapper {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d35 100%);
    min-height: 100vh;
    padding: 20px 0 0 0;
    margin: 0;
    overflow-x: hidden;
}

.news-feed-container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px 40px 20px;
    overflow-x: hidden;
}

/* Page Title */
.news-feed-title {
    color: #00d9ff;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Hero Section - Retro Gaming Style */
.news-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 4px solid #00ff41;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 60px rgba(0, 255, 65, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
}

.hero-gradient {
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 65, 0.03) 0px,
        transparent 2px,
        transparent 4px,
        rgba(0, 255, 65, 0.03) 6px
    );
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 65, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 0, 255, 0.02) 0px,
            transparent 2px,
            transparent 4px,
            rgba(255, 0, 255, 0.02) 6px
        );
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-headline {
    font-family: 'Electrolize', 'Courier New', monospace;
    font-size: 2rem;
    color: #00ff41;
    text-shadow: 
        2px 2px 0px #ff00ff,
        4px 4px 0px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 255, 65, 0.5);
    margin: 0;
    letter-spacing: 2px;
}

.hero-subtext {
    font-family: 'Electrolize', 'Courier New', monospace;
    font-size: 1rem;
    color: #00d9ff;
    text-shadow: 
        1px 1px 0px #ff00ff,
        0 0 8px rgba(0, 217, 255, 0.6);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtext::before {
    content: '> ';
    color: #ff00ff;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Pixel corner decorations */
.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ff00ff;
}

.hero-content::before {
    top: -1rem;
    left: -1rem;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.hero-content::after {
    bottom: -1rem;
    right: -1rem;
    border-left: none;
    border-top: none;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Featured Card */
.news-card.featured {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .news-card.featured {
        grid-column: span 2;
    }
    
    .news-card.featured .news-card-content {
        padding: 30px;
    }
    
    .news-card.featured .news-card-title {
        font-size: 1.75rem;
    }
}

/* News Card */
.news-card {
    background: #0f0f1e;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #00d9ff;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 217, 255, 0.6);
    border-color: #00d9ff;
    background: #1a1a2e;
}

.news-card:hover .news-card-image {
    transform: scale(1.08);
}

.news-card:hover .news-card-overlay {
    opacity: 0.4;
}

.news-card:hover .news-card-tag {
    background: #00d9ff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
}

.news-card:hover .read-more {
    color: #00d9ff;
    transform: translateX(4px);
}

.news-card:hover .arrow-icon {
    transform: translateX(4px);
}

.news-card:hover .news-card-title {
    color: #00d9ff;
}

/* Card Image */
.news-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.8) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

/* Card Tag */
.news-card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 217, 255, 0.9);
    color: #1a1a2e;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    border: 2px solid #00d9ff;
    transition: all 0.3s ease;
    font-family: 'Electrolize', sans-serif;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Card Content */
.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-card-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Electrolize', sans-serif;
}

.news-card-date::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #00d9ff;
    border-radius: 0;
    display: inline-block;
}

/* Card Link */
.news-card-link {
    text-decoration: none;
    color: inherit;
}

/* Card Title */
.news-card-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px 0;
    transition: color 0.3s ease;
    flex-grow: 1;
    font-family: 'Electrolize', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Footer */
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 2px solid #1a1a2e;
}

.read-more {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Electrolize', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-feed-title {
        font-size: 2rem;
    }
    
    .news-hero-section {
        min-height: 140px;
        padding: 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .hero-headline {
        font-size: 1.25rem;
    }
    
    .hero-subtext {
        font-size: 0.875rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card-image-wrapper {
        height: 200px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 29, 53, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #00d9ff;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff41;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.news-card-image[loading="lazy"] {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        90deg,
        rgba(26, 29, 53, 0.6) 0%,
        rgba(0, 217, 255, 0.1) 50%,
        rgba(26, 29, 53, 0.6) 100%
    );
    background-size: 1000px 100%;
}