/* QuantumNews.ai Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0ea5e9;
    --positive: #10b981;
    --negative: #ef4444;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}
.logo span { color: var(--primary); }
.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.subscribe-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}
.subscribe-btn:hover { background: var(--primary-dark); }

/* Main */
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.featured-article {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.featured-article img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    opacity: 0.7;
}
.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.featured-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.featured-excerpt {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
}
.featured-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* Sidebar Stories */
.sidebar-stories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-story {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.sidebar-story:last-child { border-bottom: none; }
.sidebar-story-img {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-story-content { flex: 1; }
.sidebar-story-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sidebar-story-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0.25rem 0;
}
.sidebar-story:hover .sidebar-story-title { color: var(--primary); }
.sidebar-story-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Section */
.section { margin-bottom: 3rem; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--text-primary);
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
}
.section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}
.section-link:hover { text-decoration: underline; }

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.news-card-content { padding: 1.25rem; }
.news-card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0.5rem 0;
}
.news-card:hover .news-card-title { color: var(--primary); }
.news-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.news-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Market Ticker */
.ticker-section {
    background: var(--bg-dark);
    padding: 1.5rem 0;
}
.ticker-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.ticker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.ticker-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.ticker-link {
    font-size: 0.8rem;
    color: var(--accent);
}
.ticker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.ticker-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}
.ticker-item:hover { background: rgba(255,255,255,0.1); }
.ticker-symbol {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}
.ticker-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}
.ticker-change { font-size: 0.8rem; font-weight: 600; }
.ticker-change.up { color: #34d399; }
.ticker-change.down { color: #f87171; }

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.article-item {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.article-item:last-child { border-bottom: none; padding-bottom: 0; }
.article-item-img {
    width: 200px;
    height: 130px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.article-item-content { flex: 1; }
.article-item-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0.5rem 0;
}
.article-item:hover .article-item-title { color: var(--primary); }
.article-item-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.article-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sidebar Widget */
.widget {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}
.widget-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.widget-item {
    display: flex;
    gap: 0.75rem;
}
.widget-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    width: 24px;
}
.widget-text {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}
.widget-item:hover .widget-text { color: var(--primary); }
.widget-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-value.green { color: var(--positive); }

/* Company Grid */
.company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.company-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}
.company-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37,99,235,0.1);
}
.company-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}
.company-name { font-size: 0.95rem; font-weight: 600; }
.company-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.company-stat {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}
.newsletter h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}
.newsletter p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}
.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}
.newsletter-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
}
.newsletter-btn {
    background: var(--bg-dark);
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.newsletter-btn:hover { background: #1e293b; }

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 3rem 0 1.5rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--primary); }
.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { color: white; }

/* Page Header */
.page-header {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.page-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--primary); }

/* Article Page */
.article-header {
    max-width: 800px;
    margin: 0 auto 2rem;
}
.article-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.article-hero {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.article-content {
    max-width: 800px;
    margin: 0 auto;
}
.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}
.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}
.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-textarea {
    min-height: 150px;
    resize: vertical;
}
.form-button {
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.form-button:hover { background: var(--primary-dark); }

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
th {
    background: var(--bg-light);
    font-weight: 600;
}
tr:hover { background: var(--bg-light); }

/* Cards */
.info-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}
.pricing-card.featured {
    border-color: var(--primary);
    position: relative;
}
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 20px;
}
.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}
.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}
.pricing-features {
    text-align: left;
    margin: 1.5rem 0;
}
.pricing-features li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    list-style: none;
}
.pricing-features li::before {
    content: '✓';
    color: var(--positive);
    margin-right: 0.5rem;
}
.pricing-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.pricing-btn:hover { background: var(--primary-dark); }

/* Responsive */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .featured-article img { height: 350px; }
    .sidebar-stories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar-story { border-bottom: none; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .ticker-grid { grid-template-columns: repeat(3, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .company-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* Startup Cards */
.startup-card {
    position: relative;
    border: 2px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.startup-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.startup-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trends Feed */
.trends-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.trend-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trend-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.trend-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.trend-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.trend-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.trend-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trend-date {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.trend-link {
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trend-link:hover {
    color: #60a5fa;
}

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Live Indicator (floating) */
.live-indicator {
    animation: slideInRight 0.5s ease;
}

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

@media (max-width: 768px) {
    .nav { display: none; }
    .header-inner { padding: 0.75rem 1rem; }
    .main { padding: 1rem; }
    .sidebar-stories { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .ticker-grid { grid-template-columns: repeat(2, 1fr); }
    .article-item { flex-direction: column; }
    .article-item-img { width: 100%; height: 200px; }
    .company-grid { grid-template-columns: 1fr; }
    .trends-feed { grid-template-columns: 1fr; }
    .newsletter { padding: 2rem 1.5rem; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .page-title { font-size: 2rem; }
    .article-title { font-size: 1.75rem; }
    .live-indicator { bottom: 10px; right: 10px; font-size: 10px; padding: 6px 10px; }
}
