/*
Theme Name: Developer Flavor
Theme URI: https://developer-flavor.com
Author: Developer Flavor
Description: AI News Magazine Theme - Made by AI clone using ACF
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: developer-flavor
*/

/* ========== RESET ========== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Space Grotesk',sans-serif;font-size:16px;color:#333;background:#fff;line-height:1.6}
a{text-decoration:none;color:inherit;transition:color .2s}
a:hover{color:#f2227e}
img{max-width:100%;height:auto;display:block}
ul{list-style:none}

/* ========== LAYOUT ========== */
.container{max-width:1170px;margin:0 auto;padding:0 15px}
.row{display:flex;gap:40px}
.col-2o3{flex:0 0 calc(66.666% - 20px)}
.col-1o3{flex:0 0 calc(33.333% - 20px)}

/* ========== COMPONENTS ========== */
.category-badge{
    display:inline-block;background:#f2227e;color:#fff;
    font-size:11px;font-weight:600;text-transform:uppercase;
    padding:4px 12px;letter-spacing:.5px;
}
.category-badge.yellow{background:#fdb551}
.category-badge.dark{background:#333}
.category-badge.blue{background:#4a90d9}
.category-badge.purple{background:#9b59b6}
.category-badge.orange{background:#e67e22}
.category-badge.green{background:#2ecc71}
.post-meta{font-size:12px;color:#999;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.post-meta span{display:flex;align-items:center;gap:4px}
.post-meta a{color:#333;font-weight:600;text-transform:uppercase;font-size:11px}
.post-meta a:hover{color:#f2227e}
.post-meta .sep{color:#ccc}
.thumb{overflow:hidden;background:#e0e0e0;position:relative}
.thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.thumb:hover img{transform:scale(1.05)}

.section-title{
    font-family:'Space Mono',monospace;font-size:20px;font-weight:700;
    color:#020202;margin-bottom:20px;padding-bottom:12px;position:relative;
}
.section-title::after{
    content:'';position:absolute;bottom:0;left:0;width:40px;height:3px;background:#020202;
}
.section-head{
    display:flex;align-items:center;justify-content:space-between;
    margin-bottom:25px;border-bottom:3px solid #020202;padding-bottom:0;
}
.section-head h2{
    font-family:'Space Mono',monospace;font-size:18px;font-weight:700;
    color:#fff;background:#020202;padding:8px 18px;
    text-transform:uppercase;letter-spacing:.5px;margin:0;
}
.section-head .nav-arrows{display:flex;gap:4px}
.section-head .nav-arrows button{
    width:30px;height:30px;border:1px solid #ccc;background:#fff;
    cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:all .2s;
}
.section-head .nav-arrows button:hover{background:#020202;color:#fff;border-color:#020202}

/* ========== HEADER ========== */
.logo-bar{background:#fff;padding:25px 0 20px;text-align:center}
.logo,.logo-bar .custom-logo-link{
    font-family:'UnifrakturMaguntia',cursive;font-size:42px;font-weight:400;
    color:#020202;display:inline-block;
}
.logo:hover{color:#020202}
.logo-bar .custom-logo{max-height:60px;width:auto;display:inline-block}
.navbar{background:#fff;border-top:1px solid #eee;border-bottom:1px solid #eee;position:sticky;top:0;z-index:100}
.navbar-inner{display:flex;align-items:center;height:50px}
.nav-social{display:flex;gap:14px;align-items:center;margin-right:auto}
.nav-social a{color:#333;font-size:14px;transition:color .2s}
.nav-social a:hover{color:#f2227e}
.nav-menu{display:flex;gap:22px;margin:0 auto}
.nav-menu ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.nav-menu li{list-style:none}
.nav-menu a,.nav-menu li a{
    font-family:'Space Mono',monospace;font-size:12px;font-weight:700;
    color:#020202;text-transform:uppercase;letter-spacing:.5px;padding:5px 0;
}
.nav-menu .current-menu-item a,.nav-menu a.active{color:#f2227e}
.nav-menu a:hover{color:#f2227e}
.nav-search{margin-left:auto;display:flex;align-items:center}
.nav-search input[type="search"],.nav-search input[type="text"]{
    border:1px solid #ddd;padding:7px 12px;font-size:13px;width:160px;
    font-family:'Space Grotesk',sans-serif;outline:none;transition:border-color .2s;
}
.nav-search input:focus{border-color:#f2227e}
.nav-search button,.nav-search .search-submit{
    border:1px solid #ddd;border-left:none;background:#fff;padding:7px 10px;
    cursor:pointer;font-size:14px;color:#333;
}
.hamburger{display:none;background:none;border:none;cursor:pointer;font-size:24px}

/* ========== HERO BLOCK (Homepage) ========== */
.hero-section{background:#f7f7f7;padding:30px 0 40px}
.hero-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px;min-height:420px}
.hero-main{position:relative;overflow:hidden;display:block}
.hero-main .hero-img{width:100%;height:100%;position:absolute;inset:0}
.hero-main .hero-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.hero-main:hover .hero-img img{transform:scale(1.03)}
.hero-main::after{
    content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(to top,rgba(0,0,0,.7) 0%,rgba(0,0,0,.15) 50%,transparent 100%);
}
.hero-main .hero-text{position:absolute;bottom:0;left:0;z-index:2;padding:30px;width:100%}
.hero-main .category-badge{margin-bottom:10px}
.hero-main .hero-text h2{font-family:'Space Mono',monospace;font-size:24px;font-weight:700;color:#fff;line-height:1.35}
.hero-main .hero-text h2 a{color:#fff}
.hero-main .hero-text h2 a:hover{color:#f2227e}
.hero-side{display:flex;flex-direction:column;gap:20px}
.hero-side-card{position:relative;overflow:hidden;flex:1;display:flex;flex-direction:column}
.hero-side-card .thumb{flex:1;position:relative;min-height:160px}
.hero-side-card .thumb .category-badge{position:absolute;bottom:10px;left:10px;z-index:2}
.hero-side-card h4{font-family:'Space Mono',monospace;font-size:14px;font-weight:700;color:#020202;line-height:1.4;margin:10px 0 4px}
.hero-side-card h4 a:hover{color:#f2227e}
.hero-side-card .post-meta{font-size:12px}

/* ========== MAIN BLOCK ========== */
.main-block{padding:40px 0}

/* Post list item (horizontal) */
.post-list-item{display:flex;gap:22px;margin-bottom:28px;padding-bottom:28px;border-bottom:1px solid #eee}
.post-list-item:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.post-list-item .thumb{width:300px;min-width:300px;height:210px;position:relative}
.post-list-item .thumb .category-badge{position:absolute;top:12px;left:12px;z-index:2}
.post-list-item .post-info{flex:1}
.post-list-item h3{font-family:'Space Mono',monospace;font-size:18px;font-weight:700;color:#020202;line-height:1.35;margin-bottom:6px}
.post-list-item h3 a:hover{color:#f2227e}
.post-list-item .post-meta{margin-bottom:12px}
.post-list-item .excerpt{font-size:14px;color:#666;line-height:1.7;margin-bottom:15px}
.read-more{
    display:inline-block;padding:8px 20px;border:1px solid #020202;
    font-family:'Space Mono',monospace;font-size:12px;font-weight:700;
    color:#020202;text-transform:uppercase;letter-spacing:.5px;transition:all .3s;
}
.read-more:hover{background:#020202;color:#fff}

/* Load more */
.load-more{text-align:center;margin-top:30px}
.load-more button{
    padding:12px 40px;background:#020202;color:#fff;border:none;
    font-family:'Space Mono',monospace;font-size:13px;font-weight:700;
    text-transform:uppercase;cursor:pointer;transition:background .3s;
}
.load-more button:hover{background:#f2227e}

/* Sidebar cards (Don't Miss) */
.sidebar-widget{margin-bottom:30px}
.sidebar-widget:last-child{margin-bottom:0}
.widget-title{
    font-family:'Space Mono',monospace;font-size:16px;font-weight:700;
    color:#020202;padding-bottom:12px;margin-bottom:18px;border-bottom:1px solid #eee;
}
.sidebar-card{margin-bottom:25px}
.sidebar-card:last-child{margin-bottom:0}
.sidebar-card .thumb{width:100%;height:200px;position:relative;margin-bottom:12px}
.sidebar-card .thumb .category-badge{position:absolute;bottom:12px;left:12px;z-index:2}
.sidebar-card h4{font-family:'Space Mono',monospace;font-size:15px;font-weight:700;color:#020202;line-height:1.4;margin-bottom:6px}
.sidebar-card h4 a:hover{color:#f2227e}

/* Sidebar small posts */
.sidebar-post{display:flex;gap:12px;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #eee}
.sidebar-post:last-child{margin-bottom:0;border-bottom:none;padding-bottom:0}
.sidebar-post .thumb{width:90px;min-width:90px;height:68px}
.sidebar-post h4{font-family:'Space Mono',monospace;font-size:13px;font-weight:700;color:#020202;line-height:1.4;margin-bottom:5px}
.sidebar-post h4 a:hover{color:#f2227e}

/* Rec post (category sidebar) */
.rec-post{display:flex;gap:14px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #eee}
.rec-post:last-child{margin-bottom:0;border-bottom:none;padding-bottom:0}
.rec-post .thumb{width:100px;min-width:100px;height:75px}
.rec-post h4{font-family:'Space Mono',monospace;font-size:13px;font-weight:700;color:#020202;line-height:1.4;margin-bottom:5px}
.rec-post h4 a:hover{color:#f2227e}

/* Popular card */
.popular-card{position:relative;margin-bottom:20px}
.popular-card:last-child{margin-bottom:0}
.popular-card .thumb{width:100%;height:220px;margin-bottom:10px}
.popular-card .popular-info{display:flex;gap:10px;align-items:flex-start}
.popular-card .popular-text{flex:1}
.popular-card h4{font-family:'Space Mono',monospace;font-size:14px;font-weight:700;color:#020202;line-height:1.4;margin-bottom:6px}
.popular-card h4 a:hover{color:#f2227e}
.popular-card .rank{font-family:'Space Mono',monospace;font-size:36px;font-weight:700;color:#eee;line-height:1}
.popular-card .shares{font-size:12px;color:#999;display:flex;align-items:center;gap:5px}

/* Ad placeholders */
.ad-placeholder{
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    width:100%;min-height:260px;display:flex;flex-direction:column;
    align-items:flex-start;justify-content:center;color:#fff;padding:30px;
}
.ad-placeholder .ad-site{font-size:12px;opacity:.7;margin-bottom:6px}
.ad-placeholder h4{font-family:'Space Mono',monospace;font-size:22px;font-weight:700;line-height:1.3;margin-bottom:auto}
.ad-placeholder .ad-btn{
    display:inline-block;padding:10px 22px;background:rgba(0,0,0,.3);
    font-family:'Space Mono',monospace;font-size:11px;font-weight:700;
    text-transform:uppercase;color:#fff;transition:background .3s;margin-top:20px;
}
.ad-placeholder .ad-btn:hover{background:rgba(0,0,0,.5);color:#fff}

.ad-banner-horizontal{
    background:linear-gradient(135deg,#1a2332,#2a3f5f);
    padding:25px 30px;margin-bottom:30px;display:flex;align-items:center;
    gap:20px;color:#fff;overflow:hidden;position:relative;
}
.ad-banner-horizontal .ad-text{flex:1}
.ad-banner-horizontal .ad-text h4{font-family:'Space Mono',monospace;font-size:18px;font-weight:700;line-height:1.3;margin-bottom:5px}
.ad-banner-horizontal .ad-text p{font-size:12px;opacity:.7;margin-bottom:0}
.ad-banner-horizontal .ad-text .ad-brand{font-family:'Space Mono',monospace;font-size:13px;font-weight:700;color:#fdb551;position:absolute;top:20px;right:30px}
.ad-banner-horizontal .ad-img{width:220px;min-width:220px}
.ad-banner-horizontal .ad-img img{width:100%;border-radius:4px}
.ad-banner-horizontal .ad-link{font-size:11px;color:rgba(255,255,255,.6);margin-top:5px}

/* Newsletter */
.newsletter-widget{background:linear-gradient(135deg,#1a1a2e,#16213e);padding:30px;color:#fff;text-align:center}
.newsletter-widget h4{font-family:'Space Mono',monospace;font-size:16px;font-weight:700;margin-bottom:8px}
.newsletter-widget p{font-size:13px;margin-bottom:18px;opacity:.8}
.newsletter-widget input[type="email"]{width:100%;padding:11px 14px;border:none;font-family:'Space Grotesk',sans-serif;font-size:14px;margin-bottom:10px;outline:none}
.newsletter-widget button{
    width:100%;padding:11px;background:#f2227e;color:#fff;border:none;
    font-family:'Space Mono',monospace;font-size:13px;font-weight:700;
    text-transform:uppercase;cursor:pointer;transition:background .3s;
}
.newsletter-widget button:hover{background:#d41d6b}

/* ========== CARD GRID (Creativity / Music) ========== */
.card-section{padding:40px 0 50px}
.card-section.bg-gray{background:#f7f7f7}
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}
.cards-grid.col-4{grid-template-columns:repeat(4,1fr)}
.post-card .thumb{height:200px;margin-bottom:12px}
.post-card h3{font-family:'Space Mono',monospace;font-size:15px;font-weight:700;color:#020202;line-height:1.4;margin-bottom:8px}
.post-card h3 a:hover{color:#f2227e}
.post-card .excerpt{font-size:14px;color:#666;line-height:1.6;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ========== CATEGORY PAGE ========== */
.cat-hero{position:relative;overflow:hidden;height:340px;display:flex;align-items:flex-end;margin-bottom:0}
.cat-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cat-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.7) 0%,rgba(0,0,0,.15) 50%,transparent 100%)}
.cat-hero .cat-hero-text{position:relative;z-index:2;padding:25px 30px;width:60%}
.cat-hero .category-badge{margin-bottom:10px}
.cat-hero h2{font-family:'Space Mono',monospace;font-size:24px;font-weight:700;color:#fff;line-height:1.35}
.cat-hero h2 a{color:#fff}
.cat-hero h2 a:hover{opacity:.85}
.page-header{padding:25px 0 20px}
.breadcrumb{font-size:13px;color:#999;margin-bottom:10px}
.breadcrumb a{color:#666}
.breadcrumb a:hover{color:#f2227e}
.breadcrumb .sep{margin:0 5px;color:#ccc}
.page-header h1{font-family:'Space Mono',monospace;font-size:28px;font-weight:700;color:#020202;margin-bottom:8px;font-style:italic}
.page-header .description{font-size:14px;color:#666;line-height:1.6;max-width:650px}
.category-content{padding:10px 0 60px}
.pagination{display:flex;align-items:center;gap:6px;margin-top:35px}
.pagination a,.pagination span,.pagination .page-numbers{
    display:flex;align-items:center;justify-content:center;
    width:38px;height:38px;border:1px solid #ddd;
    font-family:'Space Mono',monospace;font-size:13px;font-weight:700;color:#333;transition:all .2s;
}
.pagination span.current,.pagination .page-numbers.current{background:#020202;color:#fff;border-color:#020202}
.pagination a:hover,.pagination .page-numbers:hover{background:#f2227e;color:#fff;border-color:#f2227e}
.pagination .next{width:auto;padding:0 14px;font-size:12px;text-transform:uppercase}

/* ========== SINGLE POST ========== */
.article-wrap{max-width:780px;margin:0 auto}
.article-top{padding:30px 0 0}
.article-top h1{font-family:'Space Mono',monospace;font-size:32px;font-weight:700;color:#020202;line-height:1.3;margin-bottom:10px}
.article-subtitle{font-size:16px;color:#888;margin-bottom:20px;font-style:italic;padding-bottom:18px;border-bottom:1px solid #eee}
.article-meta{display:flex;align-items:center;gap:12px;padding-bottom:15px;flex-wrap:wrap}
.author-avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;background:#ddd}
.author-avatar img{width:100%;height:100%;object-fit:cover}
.meta-text{font-size:13px;color:#999}
.meta-text a{color:#333;font-weight:600}
.meta-text a:hover{color:#f2227e}
.meta-text .cat-link{color:#f2227e;font-weight:600}
.meta-text .cat-link:hover{color:#d41d6b}
.meta-comments{margin-left:auto;font-size:13px;color:#999}

.share-bar-top{display:flex;align-items:center;gap:10px;padding:15px 0;border-top:1px solid #eee;border-bottom:1px solid #eee;margin-bottom:30px}
.share-stats{display:flex;gap:4px;align-items:baseline}
.share-stats .num{font-family:'Space Mono',monospace;font-size:22px;font-weight:700;color:#020202}
.share-stats .lbl{font-size:10px;color:#999;text-transform:uppercase;letter-spacing:.5px}
.share-stats+.share-stats{margin-left:10px}
.share-buttons{margin-left:auto;display:flex;gap:6px}
.share-btn{
    display:inline-flex;align-items:center;gap:6px;padding:10px 18px;
    font-size:12px;font-weight:700;color:#fff;border:none;cursor:pointer;
    font-family:'Space Grotesk',sans-serif;transition:opacity .2s;
}
.share-btn:hover{opacity:.85;color:#fff}
.share-btn.summarize{background:#020202}
.share-btn.fb{background:#3b5998}

.article-body{padding-bottom:25px}
.article-body p{font-size:16px;color:#444;line-height:1.8;margin-bottom:20px}
.article-body h3{font-family:'Space Mono',monospace;font-size:20px;font-weight:700;color:#020202;margin:30px 0 15px;line-height:1.4}
.article-body blockquote{border-left:4px solid #f2227e;padding:15px 25px;margin:25px 0;background:#f9f9f9;font-style:italic;color:#555}

.tags-section{padding:18px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.tags-section .label{font-size:13px;color:#666}
.tag{display:inline-block;padding:5px 14px;border:1px solid #ddd;font-size:12px;color:#666;transition:all .2s}
.tag:hover{background:#f2227e;color:#fff;border-color:#f2227e}

.share-bar-bottom{display:flex;gap:10px;margin-bottom:25px}
.share-bar-bottom .btn-summarize{
    flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
    padding:14px;background:#020202;color:#fff;border:none;cursor:pointer;
    font-family:'Space Mono',monospace;font-size:13px;font-weight:700;transition:background .3s;
}
.share-bar-bottom .btn-summarize:hover{background:#333}
.share-bar-bottom .btn-share{
    flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
    padding:14px;background:linear-gradient(90deg,#f2227e,#ff6b6b,#fdb551);
    color:#fff;border:none;cursor:pointer;font-family:'Space Mono',monospace;font-size:13px;font-weight:700;transition:opacity .3s;
}
.share-bar-bottom .btn-share:hover{opacity:.9}
.share-bar-bottom .btn-arrow{
    width:50px;display:flex;align-items:center;justify-content:center;
    background:#333;color:#fff;border:none;cursor:pointer;font-size:16px;transition:background .3s;
}
.share-bar-bottom .btn-arrow:hover{background:#f2227e}

.author-bio{display:flex;gap:20px;padding:25px 30px;background:#f7f7f7;margin-bottom:35px;border-radius:2px}
.author-bio .avatar{width:70px;height:70px;min-width:70px;border-radius:50%;overflow:hidden;background:#ddd}
.author-bio .avatar img{width:100%;height:100%;object-fit:cover}
.author-bio .bio-info h4{font-family:'Space Mono',monospace;font-size:16px;font-weight:700;color:#f2227e;margin-bottom:6px}
.author-bio .bio-info h4 a{color:#f2227e}
.author-bio .bio-info h4 a:hover{color:#d41d6b}
.author-bio .bio-info p{font-size:14px;color:#666;line-height:1.6;margin-bottom:10px}
.author-social{display:flex;gap:10px}
.author-social a{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:13px;color:#666;transition:color .2s}
.author-social a:hover{color:#f2227e}

.related-section{margin-bottom:35px}
.related-section .section-title{font-family:'Space Mono',monospace;font-size:18px;font-weight:700;color:#020202;padding-bottom:12px;margin-bottom:20px;border-bottom:1px solid #eee}
.related-item{display:flex;gap:20px;margin-bottom:25px;padding-bottom:25px;border-bottom:1px solid #eee}
.related-item:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.related-item .thumb{width:240px;min-width:240px;height:170px}
.related-item .related-info{flex:1}
.related-item h4{font-family:'Space Mono',monospace;font-size:17px;font-weight:700;color:#020202;line-height:1.35;margin-bottom:6px}
.related-item h4 a:hover{color:#f2227e}
.related-item .post-meta{margin-bottom:10px;font-size:12px;color:#999}
.related-item .excerpt{font-size:14px;color:#666;line-height:1.7}

.comments-section{margin-bottom:40px}
.comments-section .section-title{font-family:'Space Mono',monospace;font-size:18px;font-weight:700;color:#020202;padding-bottom:12px;margin-bottom:20px;border-bottom:1px solid #eee}
.comment-form .form-row{display:flex;gap:15px;margin-bottom:15px}
.comment-form input,.comment-form textarea{
    width:100%;padding:12px 15px;border:1px solid #ddd;
    font-family:'Space Grotesk',sans-serif;font-size:14px;outline:none;transition:border-color .2s;
}
.comment-form input:focus,.comment-form textarea:focus{border-color:#f2227e}
.comment-form textarea{height:150px;resize:vertical;margin-bottom:15px}
.comment-form .save-info{display:flex;align-items:center;gap:8px;font-size:13px;color:#666;margin-bottom:15px}
.comment-form .save-info input[type="checkbox"]{width:auto}
.comment-form .submit-btn,.comment-form #submit{
    padding:12px 30px;background:#020202;color:#fff;border:none;
    font-family:'Space Mono',monospace;font-size:13px;font-weight:700;
    text-transform:uppercase;cursor:pointer;transition:background .3s;
}
.comment-form .submit-btn:hover,.comment-form #submit:hover{background:#f2227e}

/* ========== FOOTER ========== */
.footer{background:#0d0d0d;color:#fff;padding:50px 0 0}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:35px;padding-bottom:40px}
.footer h4{font-family:'Space Mono',monospace;font-size:15px;font-weight:700;margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid #f2227e;display:inline-block;color:#fff}
.footer p{font-size:14px;color:rgba(255,255,255,.6);line-height:1.7}
.footer-links a{display:block;font-size:14px;color:rgba(255,255,255,.6);padding:5px 0}
.footer-links a:hover{color:#f2227e}
.footer-post{display:flex;gap:12px;margin-bottom:15px}
.footer-post .thumb{width:70px;min-width:70px;height:55px}
.footer-post h5{font-family:'Space Mono',monospace;font-size:12px;font-weight:700;color:#fff;line-height:1.3;margin-bottom:4px}
.footer-post h5 a:hover{color:#f2227e}
.footer-post .date{font-size:12px;color:rgba(255,255,255,.5)}
.social-links{display:flex;gap:8px;margin-top:15px}
.social-links a{width:34px;height:34px;border:1px solid rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;transition:all .3s}
.social-links a:hover{background:#f2227e;border-color:#f2227e;color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 0;text-align:center;font-size:13px;color:rgba(255,255,255,.4)}

/* ========== HOVER & ANIMATIONS ========== */

/* -- Image zoom on hover (all thumbnails) -- */
.thumb{overflow:hidden;position:relative}
.thumb img{transition:transform .5s ease}
.thumb:hover img{transform:scale(1.08)}
.hero-main .hero-img img{transition:transform .6s ease}
.hero-main:hover .hero-img img{transform:scale(1.05)}

/* -- Post card lift + shadow -- */
.post-card{transition:transform .3s ease, box-shadow .3s ease}
.post-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(0,0,0,.08)}
.post-list-item{transition:background .3s ease}
.post-list-item:hover{background:#fafafa}
.related-item{transition:background .3s ease}
.related-item:hover{background:#fafafa}
.sidebar-card{transition:transform .3s ease}
.sidebar-card:hover{transform:translateY(-3px)}
.sidebar-post{transition:background .3s ease}
.sidebar-post:hover{background:#f9f9f9}
.rec-post{transition:background .3s ease}
.rec-post:hover{background:#f9f9f9}
.popular-card{transition:transform .3s ease}
.popular-card:hover{transform:translateY(-3px)}

/* -- Dark overlay on image hover -- */
.post-card .thumb::after,
.sidebar-card .thumb::after,
.cat-hero::before,
.popular-card .thumb::after{
    content:'';position:absolute;inset:0;
    background:rgba(0,0,0,0);transition:background .3s ease;z-index:1;pointer-events:none;
}
.post-card:hover .thumb::after,
.sidebar-card:hover .thumb::after,
.popular-card:hover .thumb::after{background:rgba(0,0,0,.1)}

/* -- Title color on card hover -- */
.post-card:hover h3 a,
.sidebar-card:hover h4 a,
.post-list-item:hover h3 a,
.related-item:hover h4 a,
.hero-side-card:hover h4 a,
.popular-card:hover h4 a{color:#f2227e}

/* -- Nav menu underline animation -- */
.nav-menu a,.nav-menu li a{position:relative}
.nav-menu a::after,.nav-menu li a::after{
    content:'';position:absolute;bottom:-2px;left:0;
    width:0;height:2px;background:#f2227e;
    transition:width .3s ease;
}
.nav-menu a:hover::after,.nav-menu li a:hover::after{width:100%}
.nav-menu .current-menu-item a::after,.nav-menu a.active::after{width:100%}

/* -- Read More button hover -- */
.read-more{transition:all .3s ease;position:relative;overflow:hidden}
.read-more::before{
    content:'';position:absolute;top:0;left:-100%;
    width:100%;height:100%;background:#020202;
    transition:left .3s ease;z-index:-1;
}
.read-more:hover::before{left:0}
.read-more:hover{color:#fff;border-color:#020202}

/* -- Load More button pulse -- */
.load-more button{transition:all .3s ease;position:relative;overflow:hidden}
.load-more button::after{
    content:'';position:absolute;top:50%;left:50%;
    width:0;height:0;background:rgba(242,34,126,.3);
    border-radius:50%;transform:translate(-50%,-50%);
    transition:width .5s ease, height .5s ease;
}
.load-more button:hover{background:#f2227e;transform:translateY(-2px);box-shadow:0 5px 15px rgba(242,34,126,.3)}
.load-more button:hover::after{width:300px;height:300px}
.load-more button:active{transform:translateY(0)}

/* -- Category badge hover -- */
.category-badge{transition:all .2s ease}
.category-badge:hover{opacity:.85;transform:translateY(-1px)}

/* -- Share buttons hover -- */
.share-btn{transition:all .3s ease}
.share-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.2)}
.share-bar-bottom button,.share-bar-bottom a{transition:all .3s ease}
.share-bar-bottom button:hover,.share-bar-bottom a:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.15)}

/* -- Tag hover -- */
.tag{transition:all .25s ease}
.tag:hover{transform:translateY(-2px);box-shadow:0 3px 8px rgba(242,34,126,.2)}

/* -- Footer link arrow on hover -- */
.footer-links a{transition:all .2s ease;padding-left:0}
.footer-links a:hover{padding-left:8px;color:#f2227e}

/* -- Social icon scale -- */
.social-links a{transition:all .3s ease}
.social-links a:hover{transform:scale(1.1);background:#f2227e;border-color:#f2227e}
.nav-social a{transition:all .2s ease}
.nav-social a:hover{transform:scale(1.15);color:#f2227e}
.author-social a{transition:all .2s ease}
.author-social a:hover{transform:scale(1.15);color:#f2227e}

/* -- Search focus glow -- */
.nav-search input[type="search"],.nav-search input[type="text"]{transition:all .3s ease}
.nav-search input:focus{border-color:#f2227e;box-shadow:0 0 0 3px rgba(242,34,126,.1)}

/* -- Pagination hover -- */
.pagination a,.pagination .page-numbers{transition:all .25s ease}
.pagination a:hover,.pagination .page-numbers:hover{transform:translateY(-2px);box-shadow:0 3px 8px rgba(242,34,126,.2)}

/* -- Hero side card hover -- */
.hero-side-card{transition:transform .3s ease}
.hero-side-card:hover{transform:translateY(-3px)}
.hero-side-card .thumb img{transition:transform .5s ease}
.hero-side-card:hover .thumb img{transform:scale(1.08)}

/* -- Author bio hover -- */
.author-bio{transition:box-shadow .3s ease}
.author-bio:hover{box-shadow:0 5px 20px rgba(0,0,0,.06)}

/* -- Ad banner hover -- */
.ad-placeholder{transition:transform .3s ease}
.ad-placeholder:hover{transform:translateY(-3px)}
.ad-banner-horizontal{transition:all .3s ease}
.ad-banner-horizontal:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(0,0,0,.15)}

/* -- Loading spinner -- */
@keyframes spin{to{transform:rotate(360deg)}}
.loading-spinner{
    display:inline-block;width:20px;height:20px;
    border:2px solid rgba(255,255,255,.3);border-top-color:#fff;
    border-radius:50%;animation:spin .6s linear infinite;
    vertical-align:middle;margin-right:8px;
}

/* -- Fade in animation -- */
@keyframes fadeInUp{
    from{opacity:0;transform:translateY(20px)}
    to{opacity:1;transform:translateY(0)}
}
.fade-in-up{animation:fadeInUp .5s ease forwards;opacity:0}

/* -- Mobile menu styles -- */
.mobile-menu-overlay{
    display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);
    z-index:999;opacity:0;transition:opacity .3s ease;
}
.mobile-menu-overlay.active{display:block;opacity:1}
.mobile-menu-panel{
    position:fixed;top:0;right:-300px;width:300px;height:100%;
    background:#fff;z-index:1000;transition:right .35s ease;
    overflow-y:auto;box-shadow:-5px 0 20px rgba(0,0,0,.1);
}
.mobile-menu-panel.active{right:0}
.mobile-menu-panel .mobile-close{
    display:flex;align-items:center;justify-content:flex-end;
    padding:15px 20px;font-size:24px;cursor:pointer;color:#333;
    border:none;background:none;
}
.mobile-menu-panel .mobile-close:hover{color:#f2227e}
.mobile-menu-panel .mobile-nav{padding:0 20px}
.mobile-menu-panel .mobile-nav a{
    display:block;padding:12px 0;font-family:'Space Mono',monospace;
    font-size:14px;font-weight:700;color:#020202;text-transform:uppercase;
    border-bottom:1px solid #eee;transition:color .2s,padding-left .2s;
}
.mobile-menu-panel .mobile-nav a:hover{color:#f2227e;padding-left:10px}
.mobile-menu-panel .mobile-nav .current-menu-item a{color:#f2227e}
.mobile-menu-panel .mobile-search{padding:20px}
.mobile-menu-panel .mobile-search input{
    width:100%;padding:10px 14px;border:1px solid #ddd;
    font-family:'Space Grotesk',sans-serif;font-size:14px;outline:none;
}
.mobile-menu-panel .mobile-search input:focus{border-color:#f2227e}
.mobile-menu-panel .mobile-social{display:flex;gap:12px;padding:15px 20px;border-top:1px solid #eee}
.mobile-menu-panel .mobile-social a{font-size:16px;color:#333;transition:color .2s}
.mobile-menu-panel .mobile-social a:hover{color:#f2227e}

/* -- Smooth scroll behavior -- */
html{scroll-behavior:smooth}

/* -- Hamburger animation -- */
.hamburger{transition:transform .3s ease}
.hamburger:hover{transform:scale(1.1)}
.hamburger.active{transform:rotate(90deg)}

/* ========== RESPONSIVE ========== */
@media(max-width:992px){
    .row{flex-direction:column}
    .col-2o3,.col-1o3{flex:1 1 100%}
    .hero-grid{grid-template-columns:1fr}
    .cards-grid{grid-template-columns:repeat(2,1fr)}
    .cards-grid.col-4{grid-template-columns:repeat(2,1fr)}
    .footer-grid{grid-template-columns:repeat(2,1fr)}
    .hero-main .hero-text h2{font-size:20px}
    .article-top h1{font-size:26px}
    .cat-hero h2{font-size:20px}
}
@media(max-width:768px){
    .nav-menu,.nav-search,.nav-social{display:none}
    .hamburger{display:block}
    .cards-grid,.cards-grid.col-4{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:1fr}
    .logo{font-size:32px}
    .hero-main .hero-text h2{font-size:18px}
    .hero-side{flex-direction:row}
    .post-list-item{flex-direction:column}
    .post-list-item .thumb{width:100%;min-width:auto;height:200px}
    .page-header h1{font-size:22px}
    .article-top h1{font-size:22px}
    .share-bar-top{flex-wrap:wrap}
    .share-buttons{margin-left:0;width:100%}
    .share-bar-bottom{flex-direction:column}
    .share-bar-bottom .btn-arrow{width:100%;padding:12px}
    .related-item{flex-direction:column}
    .related-item .thumb{width:100%;min-width:auto;height:200px}
    .comment-form .form-row{flex-direction:column;gap:10px}
    .author-bio{flex-direction:column;align-items:center;text-align:center}
    .ad-banner-horizontal{flex-direction:column}
    .ad-banner-horizontal .ad-img{width:100%;min-width:auto}
    .cat-hero{height:260px}
    .cat-hero .cat-hero-text{width:90%}
    .cat-hero h2{font-size:18px}
}
