/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111827;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.dark body {
    background-color: #000000;
    color: #ffffff;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.dark #network-canvas {
    opacity: 1;
}

/* --- Marquee Ticker --- */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 45s linear infinite;
}

.marquee-content>* {
    display: inline-block;
    margin-right: 2rem;
}

/* --- Article Styles & Glitch Effect --- */
.article-item {
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-3px);
}

.article-item:hover .glitch-img {
    animation: glitch 0.2s linear;
}

.article-item:hover .article-title {
    color: #499d23;
    text-decoration: underline;
}

.article-title {
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* styles.css - Add these new styles */
.translate-article-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.translate-article-btn:hover {
    color: #3a7d1c;
    text-decoration: underline;
}

.dark .translate-article-btn {
    color: #499d23;
}

.dark .translate-article-btn:hover {
    color: #5cb830;
}

/* Expanded article styles */
.article-item.expanded {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .article-item.expanded {
    background: rgba(17,17,17,0.8);
}

/* --- Mobile Menu --- */
@media (max-width: 767px) {
    #mobileMenu {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
}

/* --- Modal Styles --- */
.modal {
    transition: opacity 0.3s ease;
}

/* --- Status Bar --- */
#status-bar {
    font-family: 'Roboto Mono', monospace;
}

/* --- Social Icons --- */
.social-icon {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* --- Active Channel Filter --- */
nav .active {
    color: #499d23;
    font-weight: bold;
}

/* --- Scroll to Top Button --- */
#scrollTopBtn {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
    transform: scale(1.1);
}

/* Slogan animation */
#slogan {
    transition: all 0.5s ease;
    display: inline-block;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Login modal */
#loginModal {
    transition: opacity 0.3s ease;
}

/* Notification */
#notification {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Prose styles for modal content */
.prose {
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.75;
    /* Removed padding to allow for custom padding on expanded article */
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.dark .prose {
    color: #e5e7eb;
}

.dark .prose a {
    color: #499d23;
}

.dark .prose strong {
    color: #ffffff;
}

/* New animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glitch {
    animation: glitch 0.2s linear;
}

/* Channel labels */
.font-mono.text-xs.uppercase.text-brand {
    letter-spacing: 0.1em;
}

/* Login button */
#loginBtn {
    transition: all 0.3s ease;
}

#loginBtn:hover {
    transform: scale(1.1);
    background-color: #3a7d1c;
}

/* Article images */
.glitch-wrapper img {
    transition: transform 0.3s ease;
}

.glitch-wrapper:hover img {
    transform: scale(1.05);
}

