:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #121216;
    --bg-glass: rgba(18, 18, 22, 0.7);
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a93;
    --accent-color: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ambient Background Glow */
.ambient-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 40%);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    animation: drift 30s infinite alternate linear;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

/* Header */
.ts-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 24px;
    width: auto;
    filter: invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.brand-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Feed Container */
.ts-feed {
    max-width: 800px;
    margin: 6rem auto 4rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Content Cards */
.article-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.article-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #1a1a20;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.article-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-weight: 500;
}

.article-headline {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-opinion {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-subtle);
    font-style: italic;
    color: #a0a0ab;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1rem;
}

.article-opinion::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 0;
    width: 3px;
    background: var(--text-secondary);
    border-radius: 2px;
}

/* Resume Scroll Button */
.resume-scroll-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 200;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.resume-scroll-container.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.resume-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: var(--transition-smooth);
}

.resume-btn:hover {
    background: #1a1a20;
    border-color: rgba(255,255,255,0.2);
    color: var(--accent-color);
}

.resume-btn svg {
    transition: var(--transition-smooth);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ts-feed {
        margin-top: 5rem;
        padding: 0 1rem;
        gap: 2rem;
    }
    .article-content {
        padding: 1.5rem;
    }
    .article-headline {
        font-size: 1.4rem;
    }
    .ts-header {
        padding: 1rem;
    }
}
