/* Article Page Styles - Updated for simplicity */

:root {
    --btc-orange: #f2a900;
    --navy: #1a1a2e;
    --white: #ffffff;
    --gray-light: #f5f5f7;
    --gray: #6b7280;
    --gray-dark: #374151;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--navy);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* Close button */
.close-article {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--btc-orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(242, 169, 0, 0.3);
}

.close-article:hover {
    transform: scale(1.1);
    background: #d99900;
}

.close-article svg {
    width: 24px;
    height: 24px;
    color: white;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Simple Article Header - No nav, just back button */
.article-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.back-to-home {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.back-to-home:hover {
    background: var(--gray-light);
}

.back-arrow {
    font-size: 1.2rem;
}

.twitter-follow-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.twitter-follow-mini:hover {
    background: var(--gray-light);
}

.twitter-icon {
    width: 18px;
    height: 18px;
}

/* Article Header */
.article-header {
    text-align: center;
    padding: 40px 24px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.article-main-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

.article-date-centered {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 16px;
}

.article-subtitle {
    font-size: 1.15rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Tags - Clickable */
.article-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tag-sm {
    background: var(--white);
    color: var(--gray-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--gray-light);
    text-decoration: none;
}

.tag-sm:hover {
    background: var(--btc-orange);
    color: white;
    border-color: var(--btc-orange);
}

/* Article Hero Image */
.article-hero {
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    padding: 0 24px;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Article Body */
.article-body {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.1rem;
    padding: 0 24px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--navy);
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 30px 0 15px;
    color: var(--navy);
}

.article-body strong {
    color: var(--navy);
}

.article-body ul, .article-body ol {
    margin: 0 0 24px 24px;
}

.article-body li {
    margin-bottom: 8px;
}

/* Article Footer */
.article-footer {
    max-width: 600px;
    margin: 60px auto;
    padding: 32px 24px;
    background: var(--white);
    border-radius: 16px;
    text-align: center;
}

.share-section h3, .newsletter-cta h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.share-buttons-inline {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.share-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

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

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

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

.newsletter-cta p {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.subscribe-input {
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
    min-width: 220px;
}

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

.cta-button {
    padding: 12px 24px;
    background: var(--btc-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.cta-button:hover {
    background: #d99900;
}

/* Back Link */
.back-link {
    text-align: center;
    padding: 20px;
}

.back-link a {
    color: var(--btc-orange);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: var(--gray);
    padding: 32px 24px;
    text-align: center;
    margin-top: 60px;
}

.site-footer a {
    color: var(--gray);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 600px) {
    .article-body {
        font-size: 1rem;
        padding: 0 18px;
    }
    
    .article-main-title {
        font-size: 1.6rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-input {
        width: 100%;
        min-width: auto;
    }
    
    .share-buttons-inline {
        flex-direction: column;
    }
    
    .article-top-bar {
        padding: 12px 16px;
    }
}

/* Related Articles */
.related-articles {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.related-articles h3 {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.related-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-card-content {
    padding: 16px;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--navy);
}

.related-card-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.related-card-date span {
    margin-left: 8px;
    color: var(--btc-orange);
    font-weight: 600;
}
