/* ============================================
   MOONKEY.NEWS — Global Stylesheet
   Dark Theme, Mobile-First, Youth Crypto Vibe
   Colors: Deep Navy, Neon Purple, Electric Blue
   ============================================ */

:root {
    /* Core Colors */
    --bg-primary: #0a0a1a;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3a;
    --bg-input: #0e0e24;
    --border-color: #1e1e3f;
    --border-glow: #7c3aed40;

    /* Accent Colors */
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-glow: #7c3aed60;
    --blue: #06b6d4;
    --blue-light: #22d3ee;
    --blue-glow: #06b6d440;

    /* Status Colors */
    --green: #10b981;
    --green-bg: #10b98120;
    --red: #ef4444;
    --red-bg: #ef444420;
    --yellow: #f59e0b;
    --yellow-bg: #f59e0b20;
    --orange: #f97316;
    --orange-bg: #f9731620;

    /* Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #a78bfa;

    /* Spacing */
    --container-max: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: all 0.25s ease;

    /* Gradient */
    --gradient-purple: linear-gradient(135deg, #7c3aed, #a78bfa);
    --gradient-blue: linear-gradient(135deg, #06b6d4, #22d3ee);
    --gradient-hero: linear-gradient(180deg, #0a0a1a 0%, #1a1040 50%, #0a0a1a 100%);
    --gradient-card: linear-gradient(145deg, #14142e, #0e0e24);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--purple-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--blue-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   HEADER & NAV
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}
.logo:hover {
    color: var(--text-primary);
}
.logo-text-moon {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-text-key {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.nav-link.active {
    color: var(--purple-light);
    background: var(--purple-glow);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-left: 8px;
}
.lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn.active {
    background: var(--purple);
    color: white;
}
.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}
.nav-overlay.show {
    display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--gradient-hero);
    padding: 48px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-mascot {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--purple);
    box-shadow: 0 0 30px var(--purple-glow), 0 0 60px var(--blue-glow);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.15;
}
.hero-title .moon {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .key {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Quick Search Bar */
.search-bar {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.search-bar:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--purple-glow);
}

.search-bar input {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}
.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    padding: 14px 20px;
    background: var(--gradient-purple);
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.search-bar button:hover {
    opacity: 0.9;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section {
    padding: 32px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .emoji {
    font-size: 1.4rem;
}

.section-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-link:hover {
    color: var(--purple-light);
}

/* ============================================
   MOOD BAR (Sentimen Pasar)
   ============================================ */
.mood-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mood-mascot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}
.mood-mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mood-info {
    flex: 1;
    min-width: 0;
}
.mood-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.mood-text {
    font-size: 1rem;
    font-weight: 600;
}
.mood-text.bullish { color: var(--green); }
.mood-text.bearish { color: var(--red); }
.mood-text.neutral { color: var(--yellow); }

/* ============================================
   NEWS CARDS
   ============================================ */
.news-grid {
    display: grid;
    gap: 16px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.news-card:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 24px var(--purple-glow);
    transform: translateY(-2px);
}

.news-card-inner {
    display: flex;
    gap: 14px;
    padding: 16px;
}

.news-card-mascot {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.news-card-mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    flex: 1;
    min-width: 0;
}

.news-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.tag-meme { background: var(--purple-glow); color: var(--purple-light); }
.tag-alert { background: var(--red-bg); color: var(--red); }
.tag-macro { background: var(--blue-glow); color: var(--blue-light); }
.tag-airdrop { background: var(--yellow-bg); color: var(--yellow); }
.tag-honeypot { background: var(--orange-bg); color: var(--orange); }

.news-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   ALERT CARDS
   ============================================ */
.alert-list {
    display: grid;
    gap: 12px;
}

.alert-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}
.alert-card:hover {
    transform: translateY(-1px);
}
.alert-card.honeypot {
    border-left: 3px solid var(--orange);
}
.alert-card.rugpull {
    border-left: 3px solid var(--red);
}
.alert-card.warning {
    border-left: 3px solid var(--yellow);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.alert-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alert-body {
    flex: 1;
    min-width: 0;
}
.alert-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.alert-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.alert-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.badge-honeypot { background: var(--orange-bg); color: var(--orange); }
.badge-rugpull { background: var(--red-bg); color: var(--red); }
.badge-warning { background: var(--yellow-bg); color: var(--yellow); }

/* ============================================
   TRACKER SECTION
   ============================================ */
.tracker-results {
    display: grid;
    gap: 12px;
}

.token-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}
.token-card:hover {
    border-color: var(--purple);
    box-shadow: 0 2px 16px var(--purple-glow);
}

.token-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.token-name {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.token-symbol {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.token-ca {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.token-price {
    font-size: 1.2rem;
    font-weight: 700;
}
.token-change {
    font-size: 0.85rem;
    font-weight: 600;
}
.token-change.up { color: var(--green); }
.token-change.down { color: var(--red); }

.token-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.token-stat {
    font-size: 0.75rem;
}
.token-stat-label {
    color: var(--text-muted);
}
.token-stat-value {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   CALENDAR SECTION
   ============================================ */
.calendar-list {
    display: grid;
    gap: 10px;
}

.calendar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.calendar-time {
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}
.calendar-day {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.calendar-clock {
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple-light);
}

.calendar-body {
    flex: 1;
    min-width: 0;
}
.calendar-event {
    font-size: 0.9rem;
    font-weight: 600;
}
.calendar-detail {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.impact-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.impact-high { background: var(--red-bg); color: var(--red); }
.impact-medium { background: var(--yellow-bg); color: var(--yellow); }
.impact-low { background: var(--green-bg); color: var(--green); }

/* ============================================
   FEATURED / HOT TOKENS
   ============================================ */
.hot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    transition: var(--transition);
}
.hot-card:hover {
    border-color: var(--purple);
    box-shadow: 0 2px 12px var(--purple-glow);
}

.hot-mascot {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
}
.hot-mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-name {
    font-size: 0.85rem;
    font-weight: 700;
}
.hot-symbol {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.hot-change {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 4px;
}
.hot-change.up { color: var(--green); }
.hot-change.down { color: var(--red); }

/* ============================================
   TRACKER PAGE
   ============================================ */
.tracker-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}
.tracker-search:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--purple-glow);
}
.tracker-search input {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}
.tracker-search input::placeholder {
    color: var(--text-muted);
}
.tracker-search button {
    padding: 14px 24px;
    background: var(--gradient-purple);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.tracker-info {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.tracker-info .mascot-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.6;
}
.tracker-info .mascot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   ALERT PAGE
   ============================================ */
.alert-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
}
.stat-number.red { color: var(--red); }
.stat-number.orange { color: var(--orange); }
.stat-number.yellow { color: var(--yellow); }
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 32px 0 24px;
    margin-top: 48px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--purple-light);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-top: 8px;
    opacity: 0.7;
}

/* ============================================
   PAGE HERO (Sub-pages)
   ============================================ */
.page-hero {
    background: var(--gradient-hero);
    padding: 32px 0 24px;
    text-align: center;
}

.page-hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.page-hero-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   NEON GLOW UTILITIES
   ============================================ */
.glow-purple {
    box-shadow: 0 0 15px var(--purple-glow);
}
.glow-blue {
    box-shadow: 0 0 15px var(--blue-glow);
}
.text-glow-purple {
    text-shadow: 0 0 10px var(--purple-glow);
}
.text-glow-blue {
    text-shadow: 0 0 10px var(--blue-glow);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* Small phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .hero-subtitle {
        font-size: 0.88rem;
    }
    .hero-mascot {
        width: 140px;
        height: 140px;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .news-card-inner {
        gap: 10px;
        padding: 12px;
    }
    .news-card-mascot {
        width: 52px;
        height: 52px;
    }
    .news-card-title {
        font-size: 0.88rem;
    }
    .alert-stats {
        grid-template-columns: 1fr;
    }
    .hot-grid {
        grid-template-columns: 1fr;
    }
    .token-stats {
        grid-template-columns: 1fr;
    }
    .calendar-item {
        flex-wrap: wrap;
    }
}

/* Standard phones */
@media (max-width: 640px) {
    .nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 12px 16px;
        z-index: 999;
    }
    .nav.show {
        display: flex;
    }
    .nav-link {
        padding: 12px 14px;
        font-size: 1rem;
    }
    .lang-toggle {
        margin: 8px 0 0;
        align-self: flex-start;
    }
    .mobile-menu {
        display: block;
    }
    .search-bar {
        flex-direction: column;
    }
    .search-bar button {
        width: 100%;
    }
}

/* Tablets/small desktop */
@media (min-width: 641px) and (max-width: 768px) {
    .nav-link {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .hero {
        padding: 60px 0 48px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-mascot {
        width: 200px;
        height: 200px;
    }
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .alert-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }