/* ========================================
   CRYPTONEWS.GLOBAL - Redesigned
   Bitcoin Orange + Normie-Friendly
   ======================================== */

:root {
    /* Core Colors */
    --btc-orange: #f2a900;
    --btc-orange-light: #ffcc00;
    --btc-orange-dark: #cc8800;
    --navy: #1a1a2e;
    --navy-light: #16213e;
    --cream: #FFF8F0;
    --white: #ffffff;
    --gray-light: #f5f5f7;
    --gray: #6b7280;
    --gray-dark: #374151;
    
    /* Gradients */
    --gradient-warm: linear-gradient(135deg, var(--btc-orange) 0%, var(--btc-orange-light) 100%);
    
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(247, 147, 26, 0.08);
    --shadow-md: 0 8px 24px rgba(247, 147, 26, 0.12);
    --shadow-lg: 0 20px 40px rgba(247, 147, 26, 0.15);
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--navy);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER - Big & Bold
   ======================================== */
.site-header {
    background: var(--navy);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    height: 36px;
    width: auto;
    border-radius: 6px;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.site-name .dot {
    color: var(--btc-orange);
}

.tagline {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

.header-btn.subscribe-btn {
    background: var(--btc-orange);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.header-btn.subscribe-btn:hover {
    background: #d99900;
}

/* Mobile responsive */
@media (min-width: 600px) {
    .header-logo {
        height: 42px;
    }
    
    .site-name {
        font-size: 1.4rem;
    }
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.logo-main {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--btc-orange);
    font-size: 1.5rem;
}

.logo-tld {
    font-size: 1rem;
    color: var(--btc-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
}

.tagline strong {
    color: var(--btc-orange);
}

/* Nav */
.nav-links {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--btc-orange);
}

/* ========================================
   HERO - Featured Article
   ======================================== */
.hero-section {
    padding: 40px 0 60px;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 380px;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

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

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

.hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--btc-orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-date {
    color: var(--btc-orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.25;
}

.hero-summary {
    color: var(--gray-dark);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag {
    background: var(--gray-light);
    color: var(--gray-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btc-orange);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.hero-cta:hover {
    background: var(--btc-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-cta svg {
    transition: transform 0.3s;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

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

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

.section-title {
    font-size: 1.5rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--btc-orange);
    border-radius: 2px;
}

.view-all {
    color: var(--btc-orange);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.view-all:hover {
    gap: 8px;
}

/* ========================================
   ARTICLE GRID
   ======================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--btc-orange);
}

.article-image-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.article-content {
    padding: 24px;
}

.article-date {
    font-size: 0.8rem;
    color: var(--btc-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.article-title {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-sm {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--cream);
    color: var(--gray-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* ========================================
   SEARCH
   ======================================== */
.search-section {
    padding: 40px 0;
}

.search-box {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 18px 56px 18px 24px;
    font-size: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-full);
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--btc-orange);
    box-shadow: 0 0 0 4px rgba(247, 147, 26, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-results {
    margin-top: 32px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand span {
    color: var(--btc-orange);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--btc-orange);
}

.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ========================================
   SHARE MODAL
   ======================================== */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--navy);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.95rem;
}

.share-btn span {
    font-size: 1.1rem;
}

.share-btn.twitter {
    background: #000;
    color: white;
}

.share-btn.twitter:hover {
    background: #222;
    transform: translateX(4px);
}

.share-btn.reddit {
    background: #ff4500;
    color: white;
}

.share-btn.reddit:hover {
    background: #ff5722;
    transform: translateX(4px);
}

.share-btn.copy {
    background: var(--btc-orange);
    color: white;
}

.share-btn.copy:hover {
    background: var(--btc-orange-dark);
    transform: translateX(4px);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--navy);
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 220px;
    }
    
    .hero-content {
        padding: 28px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .site-header {
        padding: 32px 0;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .article-content {
        padding: 20px;
    }
}

/* ========================================
   HEADER ACTIONS (Subscribe & Twitter)
   ======================================== */
.header-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.twitter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.twitter-btn:hover {
    background: #000;
    border-color: #000;
    color: var(--white);
}

.subscribe-btn {
    background: var(--btc-orange);
    color: var(--white);
    border: none;
}

.subscribe-btn:hover {
    background: var(--btc-orange-dark);
    transform: translateY(-2px);
}

.site-header-small .header-actions {
    margin-top: 0;
}

.site-header-small .header-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.home-btn {
    background: var(--btc-orange);
    color: var(--white);
}

.home-btn:hover {
    background: var(--btc-orange-dark);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========================================
   SUBSCRIBE FORM
   ======================================== */
.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 20px auto 0;
}

.subscribe-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--btc-orange);
}

.newsletter-cta .cta-button {
    white-space: nowrap;
}

.newsletter-cta {
    text-align: center;
}

/* ========================================
   LOGO IMAGE
   ======================================== */
.logo-img {
    display: inline-block;
    line-height: 0;
}

.logo-img img {
    height: 60px;
    width: auto;
}

.site-header-small .logo img {
    height: 40px;
}

/* ========================================
   BIGGER LOGO
   ======================================== */
.logo-area {
    margin-bottom: 8px;
}

.logo-img img {
    height: 80px;
    width: auto;
}

.site-header-small .logo img {
    height: 36px;
}

/* ========================================
   SUBSCRIBE MODAL
   ======================================== */
.subscribe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.subscribe-modal.active {
    display: flex;
}

.subscribe-modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
}

.close-subscribe {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.subscribe-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.subscribe-modal-content p {
    color: var(--gray);
    margin-bottom: 24px;
}

.inline-subscribe-form {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.inline-subscribe-form .subscribe-input {
    width: 100%;
}

.inline-subscribe-form .cta-button {
    width: 100%;
}

/* ========================================
   STICKY ARTICLE NAV
   ======================================== */
.article-nav-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========================================
   FOOTER TWITTER
   ======================================== */
.footer-twitter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    transition: color 0.2s;
}

.footer-twitter:hover {
    color: var(--btc-orange);
}
