:root {
    --bg-dark: #0a0b10;
    --bg-card: #14161f;
    --primary-gold: #fbbf24;
    --primary-gold-dim: #d97706;
    --text-light: #f3f4f6;
    --text-dim: #9ca3af;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
}

.price-card {
    background: linear-gradient(145deg, var(--bg-card), #1c1e2a);
    padding: 40px 60px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.05);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.price-header h2 {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.live-indicator {
    font-size: 0.8rem;
    color: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        opacity: 0.5;
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.price-display {
    font-size: 4.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--text-light);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.currency-symbol {
    font-size: 2.5rem;
    color: var(--primary-gold);
    align-self: flex-start;
    margin-top: 15px;
}

.price-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.change-indicator {
    font-weight: 600;
}

.positive {
    color: var(--accent-green);
}

.negative {
    color: var(--accent-red);
}

.neutral {
    color: var(--text-dim);
}

/* Market News / Blog */
.content-section {
    padding: 40px 0;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-gold);
}

.section-header p {
    color: var(--text-dim);
    margin-top: 5px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-date {
    font-size: 0.8rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-snippet {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Ticker Styles */
.ticker-wrap {
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    margin-right: 50px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.ticker-item span {
    color: var(--text-light);
    font-weight: 600;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Chart Styles */
.hero-right-col {
    display: flex;
    flex-direction: column;
    width: 600px;
    margin-left: 20px;
}

.chart-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .hero-right-col {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .chart-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

/* Flash Animations */
@keyframes flashGreen {
    0% {
        color: var(--text-light);
    }

    50% {
        color: var(--accent-green);
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }

    100% {
        color: var(--text-light);
    }
}

@keyframes flashRed {
    0% {
        color: var(--text-light);
    }

    50% {
        color: var(--accent-red);
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    }

    100% {
        color: var(--text-light);
    }
}

.flash-green {
    animation: flashGreen 1s ease;
}

.flash-red {
    animation: flashRed 1s ease;
}


/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.stat-card {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Navbar Responsiveness - Updated 2026-01-27 */
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px;
        width: 100%;
        padding: 5px 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        border: 1px solid rgba(255, 215, 0, 0.1);
    }

    .nav-links a.active {
        background: rgba(251, 191, 36, 0.2);
        border-color: var(--primary-gold);
    }


    /* Hero Section Adjustments */
    .price-card {
        padding: 30px 20px;
    }

    .price-display {
        font-size: 3rem;
    }

    .currency-symbol {
        font-size: 1.8rem;
    }

    .section-header h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .price-display {
        font-size: 2.2rem;
    }

    .price-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .logo {
        font-size: 1.1rem;
    }

    .ticker-wrap {
        display: none !important;
        /* Hiding ticker on mobile as per user suggestion if not working */
    }

    .ticker {
        display: none !important;
    }

    .price-display {
        font-size: 1.8rem !important;
    }

    .currency-symbol {
        font-size: 1.2rem !important;
        margin-top: 8px;
    }

    .price-meta {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }
}