/* HTT News — Style */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--navy:#1a1a2e;--dark:#16213e;--red:#e94560;--white:#fff;--gray:#f4f4f8;--text:#333;--text-light:#666;--blue:#2563eb;--purple:#7c3aed;--serif:Georgia,"Times New Roman",serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:var(--sans);color:var(--text);background:var(--gray);line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* Header */
.site-header{background:var(--navy);color:var(--white);position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.header-top{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}
.header-right{display:flex;align-items:center;gap:1rem}
.logo{font-family:var(--serif);font-size:1.75rem;font-weight:700;letter-spacing:-.02em}
.logo-accent{color:var(--red)}
.header-date{font-size:.8rem;opacity:.7}
.subscribe-btn{background:var(--red);color:var(--white);padding:.4rem 1rem;border-radius:4px;font-size:.8rem;font-weight:600;transition:background .2s}
.subscribe-btn:hover{background:#d13350}
.category-nav{display:flex;gap:.25rem;overflow-x:auto;padding-bottom:.75rem;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.category-nav::-webkit-scrollbar{display:none}
.cat-btn{background:transparent;border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.8);padding:.35rem .85rem;border-radius:2rem;font-size:.8rem;cursor:pointer;white-space:nowrap;transition:all .2s}
.cat-btn:hover,.cat-btn.active{background:var(--red);border-color:var(--red);color:var(--white)}

/* Breaking Banner */
.breaking-banner{background:var(--red);color:var(--white);padding:.5rem 0;font-size:.85rem;font-weight:600;overflow:hidden}
.breaking-banner .container{display:flex;align-items:center;gap:.75rem}
.breaking-label{background:var(--white);color:var(--red);padding:.15rem .5rem;border-radius:3px;font-size:.7rem;letter-spacing:.05em;flex-shrink:0;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.6}}
.breaking-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--white)}
.breaking-text:hover{text-decoration:underline}
.hidden{display:none!important}

/* Articles Grid */
.articles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.25rem;padding:2rem 0}
.loading,.no-articles{grid-column:1/-1;text-align:center;padding:4rem 1rem;color:var(--text-light);font-size:1.1rem}

/* Article Card */
.article-card{background:var(--white);border-radius:8px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.08);transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}
.article-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,.12)}
.card-image{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--navy)}
.card-body{padding:1.25rem;flex:1;display:flex;flex-direction:column}
.card-meta{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;font-size:.75rem;color:var(--text-light);flex-wrap:wrap}
.card-category{color:var(--white);padding:.15rem .5rem;border-radius:3px;font-weight:600;text-transform:uppercase;font-size:.65rem;letter-spacing:.04em}
.card-category-name{font-weight:600;text-transform:uppercase;font-size:.65rem;letter-spacing:.04em;color:var(--text-light)}
.card-title{font-family:var(--serif);font-size:1.2rem;font-weight:700;line-height:1.3;margin-bottom:.5rem}
.card-title a:hover{color:var(--red)}
.card-excerpt{color:var(--text-light);font-size:.9rem;line-height:1.5;flex:1}
.card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;font-size:.75rem;color:var(--text-light)}

/* Article Type Badges */
.badge-news{background:var(--blue)}
.badge-analysis{background:var(--purple)}
.badge-opinion{background:var(--red)}

/* Article Page Layout - Two Column */
.article-page-wrapper{max-width:1100px;margin:0 auto;padding:2rem 1rem 4rem;display:grid;grid-template-columns:1fr 300px;gap:2rem}
.article-content-col{min-width:0}
.article-page-wrapper .article-page{max-width:none;padding:0}

/* Homepage Layout - Two Column */
.homepage-layout{display:grid;grid-template-columns:1fr 300px;gap:2rem;padding-top:2rem;padding-bottom:2rem}
.homepage-main{min-width:0}
.homepage-sidebar{display:flex;flex-direction:column;gap:1.25rem}

/* Article Sidebar */
.article-sidebar{display:flex;flex-direction:column;gap:1.25rem;position:sticky;top:80px;align-self:start}

/* Ad Slots */
.ad-slot{border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;background:var(--white);position:relative}
.ad-label{display:block;font-size:.65rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-light);padding:.4rem .75rem;background:#f8f8f8;border-bottom:1px solid #e0e0e0;font-weight:600}
.ad-banner{display:block;text-decoration:none;color:var(--text);transition:background .2s}
.ad-banner:hover{background:#f9f9ff}
.ad-banner-inner{padding:1rem}
.ad-banner-inner strong{display:block;font-size:.95rem;margin-bottom:.35rem;color:var(--navy)}
.ad-banner-inner p{font-size:.8rem;color:var(--text-light);margin-bottom:.5rem;line-height:1.4}
.ad-cta-btn{display:inline-block;font-size:.8rem;font-weight:600;color:var(--red)}
.ad-slot-inline{margin:1.5rem 0}
.ad-slot-bottom{margin:2rem 0}
.ad-slot-sidebar .ad-banner-inner{padding:.75rem}

/* Newsletter Section */
.newsletter-section{background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);color:var(--white);padding:2rem;border-radius:8px;margin:2rem 0;text-align:center}
.newsletter-section h3{font-family:var(--serif);margin-bottom:.5rem}
.newsletter-section p{font-size:.9rem;opacity:.85;margin-bottom:1rem}
.newsletter-form{display:flex;gap:.5rem;max-width:400px;margin:0 auto}
.newsletter-form input[type="email"]{flex:1;padding:.5rem .75rem;border:none;border-radius:4px;font-size:.9rem}
.newsletter-form button{background:var(--red);color:var(--white);border:none;padding:.5rem 1.25rem;border-radius:4px;font-weight:600;font-size:.85rem;cursor:pointer;transition:background .2s}
.newsletter-form button:hover{background:#d13350}
.newsletter-form-sm{flex-direction:column}
.newsletter-form-sm input[type="email"]{width:100%}

/* Sidebar Newsletter */
.sidebar-newsletter{background:var(--navy);color:var(--white);padding:1.25rem;border-radius:8px;text-align:center}
.sidebar-newsletter h4{font-family:var(--serif);margin-bottom:.35rem}
.sidebar-newsletter p{font-size:.8rem;opacity:.8;margin-bottom:.75rem}

/* Sidebar Trending */
.sidebar-trending{background:var(--white);border:1px solid #e0e0e0;border-radius:8px;padding:1rem}
.sidebar-trending h4{font-family:var(--serif);margin-bottom:.75rem;color:var(--navy)}

/* Book / Product Cards */
.book-cards{display:flex;flex-direction:column;gap:.75rem}
.book-card{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:var(--white);border:1px solid #e0e0e0;border-radius:6px;text-decoration:none;color:var(--text);transition:border-color .2s,box-shadow .2s}
.book-card:hover{border-color:var(--red);box-shadow:0 2px 8px rgba(233,69,96,.12)}
.book-emoji{font-size:1.5rem;flex-shrink:0}
.book-title{font-weight:600;font-size:.85rem;flex:1}
.book-shop{font-size:.75rem;color:var(--red);font-weight:600;white-space:nowrap}

/* Recommended Reading */
.recommended-reading{margin:2rem 0;padding:1.5rem;background:var(--white);border:1px solid #e0e0e0;border-radius:8px}
.recommended-reading h3{font-family:var(--serif);margin-bottom:1rem;color:var(--navy)}
.sidebar-books h4{font-family:var(--serif);margin-bottom:.75rem;color:var(--navy)}
.sidebar-books .book-card{font-size:.8rem}

/* Sticky Bottom Bar */
.sticky-bottom-bar{display:none;position:fixed;bottom:0;left:0;right:0;background:var(--navy);color:var(--white);padding:.65rem 1rem;z-index:200;align-items:center;justify-content:space-between;font-size:.85rem;box-shadow:0 -2px 10px rgba(0,0,0,.2)}
.sticky-subscribe-btn{background:var(--red);color:var(--white);padding:.35rem .85rem;border-radius:4px;font-weight:600;font-size:.8rem;flex-shrink:0}

/* Article Page (compat) */
.article-page{max-width:720px;margin:0 auto;padding:2rem 1rem 4rem}
.article-page .article-header{margin-bottom:1.5rem}
.article-type-badge{display:inline-block;color:var(--white);padding:.2rem .6rem;border-radius:3px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.75rem}
.article-page h1{font-family:var(--serif);font-size:2.2rem;line-height:1.2;margin-bottom:.75rem}
.article-page .article-meta{color:var(--text-light);font-size:.85rem;display:flex;gap:1rem;flex-wrap:wrap}

/* Hero Image */
.hero-figure{margin-bottom:2rem}
.article-page .article-hero{width:100%;border-radius:8px}
.hero-caption{font-size:.8rem;color:var(--text-light);margin-top:.5rem;font-style:italic}

.article-page .article-body{font-size:1.05rem;line-height:1.8}
.article-page .article-body p{margin-bottom:1.25rem}
.article-page .article-body h2{font-family:var(--serif);font-size:1.5rem;margin:2rem 0 1rem}

/* Subscription CTA */
.subscription-cta{background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);color:var(--white);padding:1.5rem 2rem;border-radius:8px;margin:2rem 0;text-align:center}
.cta-text{font-size:1rem;margin-bottom:.75rem;opacity:.9}
.cta-button{display:inline-block;background:var(--red);color:var(--white);padding:.6rem 1.5rem;border-radius:4px;font-weight:600;font-size:.9rem;transition:background .2s}
.cta-button:hover{background:#d13350}

/* Share Buttons */
.share-buttons{display:flex;gap:.5rem;margin:2rem 0;padding-top:1.5rem;border-top:1px solid #e0e0e0;flex-wrap:wrap}
.share-btn{padding:.4rem 1rem;border-radius:4px;font-size:.8rem;font-weight:600;color:var(--white);cursor:pointer;border:none}
.share-btn.twitter{background:#1da1f2}
.share-btn.facebook{background:#1877f2}
.share-btn.copy{background:var(--navy)}

/* Sources Section */
.sources-section{margin-top:2rem;padding:1.5rem;background:var(--white);border:1px solid #e0e0e0;border-radius:8px}
.sources-section h3{font-family:var(--serif);font-size:1.1rem;margin-bottom:.75rem;color:var(--navy)}
.sources-list{list-style:none;padding:0}
.sources-list li{padding:.4rem 0;border-bottom:1px solid #f0f0f0;font-size:.9rem}
.sources-list li:last-child{border-bottom:none}
.sources-list a{color:var(--blue);text-decoration:underline}
.sources-list a:hover{color:var(--navy)}

/* Related Articles */
.related-articles{margin-top:3rem;padding-top:2rem;border-top:1px solid #e0e0e0}
.related-articles h3{font-family:var(--serif);margin-bottom:1rem}
.related-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}
.related-item{background:var(--white);padding:1rem;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.related-item .related-category{font-size:.65rem;text-transform:uppercase;font-weight:600;letter-spacing:.04em;margin-bottom:.25rem}
.related-item .related-title{font-weight:600;font-size:.95rem;line-height:1.3}
.related-item .related-title:hover{color:var(--red)}

/* Error Page */
.error-page{text-align:center;padding:6rem 1rem}
.error-page h1{font-family:var(--serif);font-size:6rem;color:var(--navy)}
.error-page p{font-size:1.1rem;color:var(--text-light);margin:1rem 0 2rem}
.back-home{display:inline-block;background:var(--red);color:var(--white);padding:.6rem 1.5rem;border-radius:4px;font-weight:600}

/* Footer */
.site-footer{background:var(--navy);color:rgba(255,255,255,.7);padding:2rem 0;margin-top:3rem}
.footer-content{text-align:center}
.footer-brand{font-family:var(--serif);font-size:1.25rem;font-weight:700;color:var(--white);margin-bottom:.75rem}
.footer-links{display:flex;justify-content:center;gap:1.5rem;margin-bottom:1rem;font-size:.85rem;flex-wrap:wrap}
.footer-links a:hover{color:var(--white)}
.footer-copy{font-size:.75rem;opacity:.6}

/* Responsive */
@media(max-width:900px){
    .article-page-wrapper{grid-template-columns:1fr}
    .homepage-layout{grid-template-columns:1fr}
    .article-sidebar{position:static}
    .sticky-bottom-bar{display:flex}
    body{padding-bottom:50px}
}
@media(max-width:600px){
    .articles-grid{grid-template-columns:1fr}
    .article-page-wrapper h1{font-size:1.6rem}
    .logo{font-size:1.4rem}
    .header-right{gap:.5rem}
    .subscribe-btn{padding:.3rem .7rem;font-size:.75rem}
    .subscription-cta{padding:1.25rem 1rem}
    .share-buttons{flex-wrap:wrap}
    .related-list{grid-template-columns:1fr}
    .sources-section{padding:1rem}
    .newsletter-form{flex-direction:column}
}

/* Article body links - make them visible */
.article-body a {
  color: #e94560;
  text-decoration: underline;
  text-decoration-color: rgba(233, 69, 96, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover {
  text-decoration-color: #e94560;
}
.article-body a[href^="/articles/"] {
  color: #4ECDC4;
}
.article-body a[href^="/articles/"]:hover {
  text-decoration-color: #4ECDC4;
}

/* Support Section - Ko-Fi */
.support-section {
    background: linear-gradient(135deg, #a84832, #d63547);
    color: #fff;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(168, 72, 50, 0.2);
}

.support-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.support-inner p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.kofi-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ko-Fi widget styling overrides */
.kofi-widget-container iframe {
    border-radius: 8px !important;
    max-width: 100%;
}

@media (max-width: 768px) {
    .support-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .support-inner h3 {
        font-size: 1.3rem;
    }
    
    .support-inner p {
        font-size: 0.9rem;
    }
}


/* Sidebar Support Section */
.sidebar-support {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    text-align: center;
}

.sidebar-support h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.sidebar-support p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.sidebar-support .kofi-widget-container {
    display: flex;
    justify-content: center;
}

