/* Topshine Blog pages (blog/index.html and every article).
   Same tokens and page chrome as products.html; the home page keeps its own inline CSS. */

:root {
    --bg-base: #F5F2EB;
    --bg-surface: #FFFFFF;
    --bg-banner: #E8E4D9;

    --text-primary: #202428;
    --text-secondary: #5A6066;
    --accent-gold: #C9A84C;
    --accent-gold-hover: #D4AF37;
    --link-gold: #8A6D1F; /* darker gold: readable on white and beige */

    --font-main: 'Outfit', sans-serif;
    --container-max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }

h1, h2, h3, h4 { font-weight: 500; color: var(--text-primary); margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); text-transform: uppercase; letter-spacing: 2px; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; line-height: 1.2; }
h3 { font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-gold); }
p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.05rem; }

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

/* Button */
.btn {
    display: inline-block;
    background-color: var(--text-primary);
    color: #FFF;
    padding: 14px 36px;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--accent-gold);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,168,76,0.3);
}
.btn-outline { background-color: transparent; color: var(--text-primary); border: 1px solid var(--text-primary); }
.btn-outline:hover { background-color: var(--text-primary); color: #FFF; }

/* Glowing border */
.glow-border { position: relative; z-index: 1; }
.glow-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(201,168,76,0.5), transparent, rgba(201,168,76,0.5));
    background-size: 200% 200%;
    animation: border-glow 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}
@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 0.1rem 0;
    background: rgba(245, 242, 235, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(32, 36, 40, 0.06);
    z-index: 1000;
}
header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { max-width: 100px; margin: 0; }
nav { display: flex; gap: 2rem; align-items: center; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px; font-weight: 500; }
nav a:hover { color: var(--accent-gold); }
nav a.active { color: var(--accent-gold); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(245, 242, 235, 0.92);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Blog index hero */
.page-hero { background-color: var(--bg-banner); text-align: center; padding: 11rem 0 5rem 0; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { max-width: 620px; margin: 0 auto; }

/* Blog index list: title + short summary, newest first */
.blog-list { max-width: 820px; margin: 0 auto; padding: 5rem 2rem 6rem 2rem; }
.blog-entry { padding: 2rem 0; border-bottom: 1px solid rgba(32, 36, 40, 0.1); }
.blog-entry:first-child { padding-top: 0; }
.blog-entry:last-child { border-bottom: none; }
.blog-entry .post-date { display: block; }
.blog-entry h2 { font-size: 1.6rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.6rem; }
.blog-entry h2 a:hover { color: var(--link-gold); }
.blog-entry p {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article */
.article-hero { background-color: var(--bg-banner); text-align: center; padding: 10rem 0 6rem 0; }
.article-hero .post-date { display: block; margin-bottom: 1rem; }
.article-hero h1 {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    max-width: 860px;
    margin: 0 auto;
}
.article-cover { max-width: 980px; margin: -3.5rem auto 0 auto; padding: 0 2rem; position: relative; }
.article-cover img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.article-body { max-width: 760px; margin: 0 auto; padding: 3.5rem 2rem 1rem 2rem; }
.article-body .lead { font-size: 1.3rem; line-height: 1.6; color: var(--text-primary); font-weight: 400; }
.article-body h2 { font-size: 1.7rem; font-weight: 600; line-height: 1.3; margin: 2.75rem 0 1rem 0; }
.article-body p, .article-body li { font-size: 1.1rem; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.4rem; color: var(--text-secondary); }
.article-body li { margin-bottom: 0.55rem; }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body a:not(.btn) {
    color: var(--link-gold);
    text-decoration: underline;
    text-decoration-color: rgba(201,168,76,0.6);
    text-underline-offset: 3px;
}
.article-body a:not(.btn):hover { color: var(--accent-gold-hover); }

.article-cta {
    background: var(--text-primary);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 3rem 0 1rem 0;
}
.article-cta h2 { color: #FFF; font-size: 1.6rem; margin: 0 0 0.75rem 0; }
.article-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.article-cta .btn { background-color: var(--accent-gold); }
.article-cta .btn:hover { background-color: var(--accent-gold-hover); }

.article-back { max-width: 760px; margin: 0 auto; padding: 1rem 2rem 4rem 2rem; }
.article-back a { font-weight: 600; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; }
.article-back a:hover { color: var(--accent-gold); }
.article-back i { margin-right: 8px; }

.keep-reading { background: var(--bg-surface); border-top: 1px solid rgba(32, 36, 40, 0.05); padding: 5rem 0 6rem 0; }
.keep-reading h2 { text-align: center; font-size: 2rem; font-weight: 600; margin-bottom: 2.5rem; }

/* Footer */
footer { padding: 4rem 0 2rem 0; border-top: 1px solid rgba(32, 36, 40, 0.05); background: var(--bg-base); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo img { max-width: 140px; margin-bottom: 1.5rem; }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a:hover { color: var(--accent-gold); }

.social-icons { display: flex; gap: 15px; margin-top: 1.5rem; }
.social-icons a { color: var(--text-primary); font-size: 1.3rem; }
.social-icons a:hover { color: var(--accent-gold); transform: translateY(-2px); }

.qr-box img { width: 100px; border-radius: 8px; margin-top: 0.5rem; }
.qr-box { display: inline-block; text-align: center; }

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 100; transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); color: #FFF; }

/* Responsive */
@media (max-width: 900px) {
    .logo { max-width: 70px; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 1.5rem 1rem 2rem 1rem;
        background: rgba(245, 242, 235, 0.98);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }
    nav.open { display: flex; }
    .page-hero { padding: 9rem 0 4rem 0; }
    .article-hero { padding: 8rem 0 5rem 0; }
    .article-cover { margin-top: -2.5rem; padding: 0 1rem; }
    .blog-list { padding: 3.5rem 1.5rem 4rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; margin-bottom: 1.5rem; }
    footer { padding: 2.5rem 0 1.5rem 0; }
    .footer-logo { grid-column: 1 / -1; }
    .footer-logo img { max-width: 80px; margin: 0 auto 0.75rem auto; }
    .footer-logo p { font-size: 0.9rem; margin-bottom: 0.5rem; }
    .social-icons { margin-top: 0.75rem; }
    .footer-col h4 { margin-bottom: 0.75rem; }
    .footer-col ul li { margin-bottom: 0.4rem; }
    .footer-grid > .footer-col:nth-child(3) { grid-column: 1 / -1; order: 4; }
    .qr-box img { width: 80px; }
    .article-body .lead { font-size: 1.15rem; }
}
