/* ── Short2News — Premium Dark Theme ── */
/* Design: Dark=#0A0A0F, Primary=#0d0df2, Surface=#14141F, Card=#1E1E2E, Font=Inter */

:root {
    --bg: #0A0A0F;
    --surface: #14141F;
    --card: #1E1E2E;
    --card-hover: #262640;
    --primary: #0d0df2;
    --primary-glow: rgba(13, 13, 242, 0.3);
    --accent: #6366f1;
    --text: #E8E8F0;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --border: #2A2A3E;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --gradient: linear-gradient(135deg, #0d0df2, #6366f1, #8b5cf6);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(13, 13, 242, 0.15);
}

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

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.4rem; }
.logo-icon { font-size: 1.6rem; }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--text);
    margin: 5px 0; transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius); font-weight: 600;
    font-size: 0.95rem; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--primary-glow); }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── Gradient Text ── */
.gradient-text {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(13, 13, 242, 0.1); color: var(--accent);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Hero ── */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; overflow: hidden;
}
.hero-bg-effects { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -50px; left: -100px; }
.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 50px;
    background: rgba(13, 13, 242, 0.1); border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.85rem; font-weight: 500; color: var(--accent); margin-bottom: 20px;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900;
    line-height: 1.1; margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.7;
    margin-bottom: 32px; max-width: 500px;
}
.hero-cta { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 20px; align-items: center; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-glow {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: var(--primary); filter: blur(100px); opacity: 0.3;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero-phone {
    max-height: 550px; width: auto; position: relative; z-index: 1;
    border-radius: 24px; filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); }
}

/* ── Features ── */
.features { padding: 100px 0; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--primary); transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Breaking News ── */
.breaking-section { padding: 20px 0; }
.breaking-banner {
    display: flex; align-items: center; gap: 16px;
    background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius); padding: 12px 20px; overflow: hidden;
}
.breaking-badge {
    background: #ef4444; color: white; padding: 4px 12px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 700; white-space: nowrap;
    animation: pulse-breaking 2s infinite;
}
@keyframes pulse-breaking { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.breaking-scroll { display: flex; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.breaking-scroll::-webkit-scrollbar { display: none; }
.breaking-item { white-space: nowrap; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.breaking-item:hover { color: #ef4444; }

/* ── News Grid ── */
.news-section { padding: 80px 0; }
.news-categories {
    display: flex; gap: 10px; margin-bottom: 36px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.news-categories::-webkit-scrollbar { display: none; }
.cat-btn {
    padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 500;
    background: var(--card); color: var(--text-muted); border: 1px solid var(--border);
    white-space: nowrap; transition: all 0.2s; cursor: pointer;
}
.cat-btn:hover, .cat-btn.active {
    background: rgba(13, 13, 242, 0.15); color: var(--accent);
    border-color: var(--primary);
}
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.news-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all 0.3s; display: block;
}
.news-card:hover {
    border-color: var(--primary); transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.news-img {
    height: 200px; background-size: cover; background-position: center;
    position: relative;
}
.news-img-placeholder {
    background: var(--surface); display: flex; align-items: center;
    justify-content: center; font-size: 3rem;
}
.badge-breaking {
    position: absolute; top: 12px; left: 12px;
    background: #ef4444; color: white; padding: 4px 10px;
    border-radius: 6px; font-size: 0.7rem; font-weight: 700;
}
.news-body { padding: 20px; }
.news-cat {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.news-title {
    font-size: 1.05rem; font-weight: 700; line-height: 1.4;
    margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.news-summary {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
    margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.75rem; color: var(--text-dim);
}
.news-source { font-weight: 600; color: var(--text-muted); }
.news-empty {
    text-align: center; padding: 80px 20px;
    background: var(--card); border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.news-empty h3 { font-size: 1.3rem; margin-bottom: 8px; }
.news-empty p { color: var(--text-muted); }

/* ── Movies ── */
.movies-section { padding: 80px 0; background: var(--surface); }
.movies-scroll {
    display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 10px;
}
.movies-scroll::-webkit-scrollbar { display: none; }
.movie-card {
    flex-shrink: 0; width: 180px; border-radius: var(--radius); overflow: hidden;
    background: var(--card); border: 1px solid var(--border);
    transition: all 0.3s;
}
.movie-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.movie-poster { width: 100%; height: 260px; object-fit: cover; }
.movie-info { padding: 12px; }
.movie-info h4 {
    font-size: 0.85rem; font-weight: 600; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.movie-rating { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; display: block; }

/* ── Download ── */
.download-section { padding: 100px 0; }
.download-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.download-buttons { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.store-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 28px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--border);
    transition: all 0.3s;
}
.store-btn:hover { border-color: var(--primary); background: var(--card-hover); }
.store-btn-disabled { opacity: 0.5; pointer-events: none; }
.store-icon { font-size: 1.4rem; }
.store-btn small { display: block; font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; }
.store-btn strong { font-size: 1rem; }
.download-visual { position: relative; display: flex; justify-content: center; }
.download-phone {
    max-height: 450px; width: auto; border-radius: 24px;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
}

/* ── Article Page ── */
.article-page { padding: 100px 0 60px; max-width: 800px; margin: 0 auto; }
.breadcrumb {
    display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-dim);
    margin-bottom: 28px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text-dim); }
.article-cat {
    display: inline-block; padding: 4px 14px; border-radius: 50px;
    background: rgba(13, 13, 242, 0.1); color: var(--accent);
    font-size: 0.8rem; font-weight: 600; margin-bottom: 12px;
}
.article-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800;
    line-height: 1.2; margin-bottom: 16px;
}
.article-meta {
    display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-dim);
    margin-bottom: 28px; flex-wrap: wrap; align-items: center;
}
.meta-source { font-weight: 600; color: var(--text-muted); }
.meta-dot { color: var(--border); }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.article-hero-img img { width: 100%; height: auto; }
.ai-summary-box {
    background: rgba(13, 13, 242, 0.06); border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius); padding: 24px; margin-bottom: 32px;
}
.ai-header {
    font-weight: 700; font-size: 0.9rem; color: var(--accent); margin-bottom: 12px;
}
.ai-summary-box p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.ai-key-points { margin-top: 16px; padding-left: 20px; }
.ai-key-points li {
    color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px;
    line-height: 1.5;
}
.article-lead {
    font-size: 1.1rem; line-height: 1.8; color: var(--text);
    margin-bottom: 20px; font-weight: 500;
}
.article-content {
    font-size: 1rem; line-height: 1.8; color: var(--text-muted);
    margin-bottom: 32px;
}
.movie-meta-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin: 32px 0;
}
.movie-meta-box h3 { margin-bottom: 16px; font-size: 1.1rem; }
.movie-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.meta-item .label {
    display: block; font-size: 0.75rem; color: var(--text-dim);
    text-transform: uppercase; margin-bottom: 2px;
}
.meta-item .value { font-weight: 600; font-size: 0.95rem; }
.article-cta {
    text-align: center; padding: 24px; background: var(--card);
    border-radius: var(--radius); border: 1px solid var(--border);
    margin: 32px 0;
}
.cta-link { color: var(--accent); font-weight: 600; }
.cta-link:hover { text-decoration: underline; }

/* ── Related Articles ── */
.related-section { margin-top: 48px; }
.related-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.related-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.related-card {
    display: flex; gap: 14px; padding: 14px; background: var(--card);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: all 0.2s;
}
.related-card:hover { border-color: var(--primary); }
.related-img {
    width: 100px; height: 70px; border-radius: var(--radius-sm);
    background-size: cover; background-position: center; flex-shrink: 0;
}
.related-body h4 {
    font-size: 0.85rem; font-weight: 600; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-time { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; display: block; }

/* ── Category Page ── */
.category-page { padding: 100px 0 60px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.page-btn {
    padding: 10px 24px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--border);
    font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--accent); }
.page-info { color: var(--text-dim); font-size: 0.9rem; }

/* ── 404 Page ── */
.error-page { padding: 200px 0 100px; text-align: center; }
.error-code {
    font-size: 8rem; font-weight: 900; line-height: 1;
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.error-page h1 { font-size: 2rem; margin: 16px 0; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* ── Footer ── */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px; margin-bottom: 40px; }
.footer-desc { color: var(--text-dim); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a {
    display: block; font-size: 0.85rem; color: var(--text-dim);
    margin-bottom: 8px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; justify-content: space-between; padding-top: 24px;
    border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-phone { max-height: 350px; }
    .hero { min-height: auto; padding: 100px 0 60px; }

    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: rgba(10, 10, 15, 0.98);
        padding: 20px; gap: 16px; border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }

    .news-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .download-inner { grid-template-columns: 1fr; text-align: center; }
    .download-buttons { justify-content: center; }
    .download-visual { order: -1; }
    .download-phone { max-height: 300px; }

    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .article-page { padding: 80px 16px 40px; }
    .movie-meta-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .stat-number { font-size: 1.4rem; }
    .hero-stats { gap: 12px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
}
