/*
Theme Name: HappyHeartWins
Theme URI: https://happyheart-theme-forge.lovable.app
Author: Lovable
Description: A modern blog/author WordPress theme for HappyHeartWins.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: happyheartwins
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root{--bg:hsl(30,33%,98%);--fg:hsl(220,30%,15%);--card:hsl(30,25%,96%);--primary:hsl(12,76%,58%);--primary-fg:#fff;--muted:hsl(220,10%,45%);--accent:hsl(38,90%,62%);--border:hsl(30,15%,88%);--font-display:'Playfair Display',serif;--font-body:'DM Sans',sans-serif}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--font-body);background:var(--bg);color:var(--fg);line-height:1.6}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display)}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}
.site-logo{display:flex;align-items:center;gap:.5rem}
.site-logo img{height:36px;width:36px;object-fit:contain}
.site-logo span{font-family:var(--font-display);font-size:1.1rem;font-weight:700;letter-spacing:-.02em}
.site-logo .highlight{color:var(--primary)}
.desktop-nav{display:flex;align-items:center;gap:.25rem}
.desktop-nav a{font-size:.875rem;font-weight:500;color:var(--muted);padding:.5rem 1rem;border-radius:.5rem;transition:all .2s}
.desktop-nav a:hover{color:var(--fg);background:var(--border)}
.mobile-toggle{display:none;background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--fg)}
.mobile-nav{display:none;padding:.5rem 1rem 1rem;border-top:1px solid var(--border)}
.mobile-nav.open{display:block}
.mobile-nav a{display:block;padding:.6rem .75rem;color:var(--muted);border-radius:.5rem;transition:all .2s}
.mobile-nav a:hover{background:var(--border);color:var(--fg)}

/* Category Bar */
.cat-bar{border-top:1px solid var(--border);overflow-x:auto;-webkit-overflow-scrolling:touch}
.cat-bar::-webkit-scrollbar{display:none}
.cat-bar-inner{display:flex;gap:0}
.cat-bar a{white-space:nowrap;font-family:var(--font-body);font-size:.875rem;padding:.75rem 1.25rem;border-bottom:2px solid transparent;color:var(--muted);transition:all .2s}
.cat-bar a:hover{color:var(--fg)}
.cat-bar a.active{border-bottom-color:var(--primary);color:var(--primary);font-weight:600}

/* Author Profile */
.author-profile{padding:3rem 0;text-align:center}
.author-avatar{width:7rem;height:7rem;border-radius:50%;overflow:hidden;border:4px solid hsl(12,76%,58%,.2);margin:0 auto 1rem;box-shadow:0 8px 32px -8px hsl(12,76%,58%,.25)}
.author-avatar img{width:100%;height:100%;object-fit:cover}
.author-name{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:.25rem}
.author-name h1{font-size:1.5rem;font-weight:700}
.verified-badge{width:1.5rem;height:1.5rem;color:var(--primary)}
.author-dots{display:flex;justify-content:center;gap:4px;margin-bottom:1rem}
.author-dots span{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.btn-follow{display:inline-flex;align-items:center;gap:.25rem;padding:.5rem 2rem;border:1px solid var(--border);border-radius:9999px;background:transparent;font-family:var(--font-body);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}
.btn-follow:hover{border-color:var(--primary);color:var(--primary)}

/* Posts */
.posts-section{padding-bottom:4rem}
.posts-feed{max-width:48rem;margin:0 auto;display:flex;flex-direction:column;gap:2rem}
.post-card{background:var(--card);border-radius:1rem;overflow:hidden;border:1px solid var(--border);transition:box-shadow .3s}
.post-card:hover{box-shadow:0 8px 32px -8px hsl(12,76%,58%,.25)}
.post-card-img{aspect-ratio:16/9;overflow:hidden}
.post-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.post-card:hover .post-card-img img{transform:scale(1.05)}
.post-card-body{padding:1.25rem 1.5rem}
.post-category{display:inline-block;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--primary-fg);background:var(--primary);padding:.25rem .75rem;border-radius:.25rem;margin-bottom:.75rem}
.post-card-body h3{font-size:1.25rem;font-weight:700;line-height:1.3;margin-bottom:.5rem;transition:color .2s}
.post-card:hover .post-card-body h3{color:var(--primary)}
.post-card-body h3 a{color:inherit}
.post-excerpt{font-size:.9rem;color:var(--muted);line-height:1.6;margin-bottom:1rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{display:flex;align-items:center;gap:1rem;font-size:.75rem;color:var(--muted)}
.post-meta strong{color:var(--fg);opacity:.7}

/* Contact */
.contact-section{padding:4rem 0;background:var(--card)}
.section-intro{text-align:center;margin-bottom:2.5rem}
.section-tag{font-size:.8rem;text-transform:uppercase;letter-spacing:.15em;color:var(--primary);font-weight:600;margin-bottom:.5rem}
.section-title{font-size:2rem;font-weight:700}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;max-width:64rem;margin:0 auto}
.contact-form{display:flex;flex-direction:column;gap:1rem}
.contact-form input,.contact-form textarea{width:100%;padding:.75rem 1rem;border:1px solid var(--border);border-radius:.5rem;font-family:var(--font-body);font-size:.9rem;background:var(--bg);transition:border-color .2s}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--primary)}
.contact-form textarea{resize:none;min-height:120px}
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 2rem;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;border:none;border-radius:.5rem;font-family:var(--font-body);font-weight:600;font-size:.95rem;cursor:pointer;transition:opacity .2s}
.btn-primary:hover{opacity:.9}
.contact-details{display:flex;flex-direction:column;gap:1.5rem;justify-content:center}
.contact-card h4{font-weight:600;margin-bottom:.25rem}
.contact-card p{font-size:.9rem;color:var(--muted)}
.contact-card a{color:var(--primary)}

/* Footer */
.site-footer{background:hsl(220,25%,20%);color:#fff;padding:4rem 0 2rem}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem;margin-bottom:3rem}
.footer-brand{display:flex;align-items:center;gap:.5rem;font-family:var(--font-display);font-weight:700;font-size:1.1rem;margin-bottom:1rem}
.footer-brand img{height:36px;width:36px;object-fit:contain}
.site-footer h4{font-family:var(--font-display);font-weight:600;margin-bottom:1rem}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:.5rem}
.site-footer li a{font-size:.875rem;opacity:.7;transition:opacity .2s}
.site-footer li a:hover{opacity:1}
.social-links{display:flex;gap:.75rem}
.social-link{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;transition:all .2s}
.social-link:hover{background:var(--accent);border-color:var(--accent);color:var(--fg)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:2rem;text-align:center;font-size:.875rem;opacity:.5}

/* Single Post */
.single-wrap{max-width:800px;margin:2rem auto;background:var(--card);border-radius:1rem;padding:2rem;border:1px solid var(--border)}
.single-thumb{border-radius:.75rem;overflow:hidden;margin-bottom:1.5rem}
.single-thumb img{width:100%;height:auto}
.entry-content{font-size:1.05rem;line-height:1.8;color:var(--muted)}
.entry-content p{margin-bottom:1.25rem}

/* Responsive */
@media(max-width:768px){
  .desktop-nav{display:none}
  .mobile-toggle{display:block}
  .contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .section-title{font-size:1.5rem}
}
