/*
Theme Name: DealHype Affiliate
Theme URI: https://dealhype.id
Author: DealHype
Author URI: https://dealhype.id
Description: Tema afiliasi modern untuk Shopee & TikTok Shop. Dirancang untuk Affiliate AI Auto Publisher (n8n). Mendukung custom post type produk, artikel review, dan integrasi REST API.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dealhype
Tags: affiliate, e-commerce, blog, one-column, two-columns, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================
   DEALHYPE AFFILIATE THEME
   Compatible with: WordPress + Elementor / Gutenberg
   Produk: Shopee Affiliate + TikTok Shop Affiliate
   Dihasilkan oleh: Affiliate AI Auto Publisher (n8n)
============================================ */

*{margin:0;padding:0;box-sizing:border-box}
:root{
  --shopee:#EE4D2D;
  --tiktok:#010101;
  --tiktok-pink:#FE2C55;
  --gold:#F5A623;
  --bg:#FAFAF8;
  --surface:#FFFFFF;
  --text:#1A1A1A;
  --muted:#6B6B6B;
  --border:#E8E4DC;
  --radius:14px;
  --trust-green:#2E7D32;
  --trust-green-bg:#E8F5E9;
  --trust-blue:#1565C0;
  --trust-blue-bg:#E3F2FD;
}
body{font-family:'Plus Jakarta Sans',sans-serif;background:var(--bg);color:var(--text);font-size:15px;line-height:1.6}

/* ===== NAVIGATION ===== */
nav,.site-header{background:var(--surface);border-bottom:1px solid var(--border);padding:0 24px;height:60px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:99;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.nav-logo,.site-branding a{font-family:'Instrument Serif',serif;font-size:22px;color:var(--shopee);font-style:italic;text-decoration:none}
.nav-logo span,.site-branding a span{color:var(--text);font-style:normal}
.nav-links,.main-navigation ul{display:flex;gap:24px;align-items:center;list-style:none}
.nav-links a,.main-navigation ul li a{text-decoration:none;color:var(--muted);font-size:13px;font-weight:500;transition:.15s}
.nav-links a:hover,.main-navigation ul li a:hover{color:var(--text)}
.nav-cta{background:var(--shopee);color:#fff!important;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600}

/* ===== TICKER PROMO ===== */
.ticker{background:var(--shopee);color:#fff;padding:9px 0;overflow:hidden;white-space:nowrap;font-size:12px;font-weight:600;letter-spacing:.3px}
.ticker-inner{display:inline-block;animation:ticker 30s linear infinite}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ===== HERO SECTION ===== */
.hero{padding:56px 24px 36px;text-align:center;max-width:720px;margin:0 auto}
.hero-badge{display:inline-flex;align-items:center;gap:6px;background:#FFF3F0;border:1px solid #FFC4B6;color:var(--shopee);font-size:12px;font-weight:600;padding:5px 12px;border-radius:20px;margin-bottom:20px}
.hero-badge .dot{width:6px;height:6px;background:var(--shopee);border-radius:50%;animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(1.4)}}
.hero h1{font-size:36px;font-weight:800;line-height:1.15;margin-bottom:14px;letter-spacing:-.5px}
.hero h1 em{font-family:'Instrument Serif',serif;font-style:italic;color:var(--shopee)}
.hero p{color:var(--muted);font-size:15px;margin-bottom:28px;max-width:500px;margin-left:auto;margin-right:auto}
.hero-filters{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.filter-btn{border:1.5px solid var(--border);background:var(--surface);padding:8px 18px;border-radius:20px;font-size:13px;font-weight:500;cursor:pointer;color:var(--muted);transition:.15s;font-family:inherit}
.filter-btn.active,.filter-btn:hover{border-color:var(--shopee);color:var(--shopee);background:#FFF3F0}

/* ===== LAYOUT ===== */
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.section-header{display:flex;align-items:center;justify-content:space-between;margin:36px 0 18px}
.section-title{font-size:19px;font-weight:800;letter-spacing:-.3px}
.section-title span{color:var(--shopee)}
.see-all{font-size:13px;color:var(--shopee);text-decoration:none;font-weight:600}
.see-all:hover{text-decoration:underline}

/* ===== TRUST METRICS ===== */
.trust-strip{display:flex;gap:14px;padding:20px 0 28px;overflow-x:auto}
.trust-strip::-webkit-scrollbar{display:none}
.trust-item{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px 22px;flex:0 0 auto;min-width:150px;text-align:center}
.trust-icon{font-size:22px;margin-bottom:8px}
.trust-num{font-size:20px;font-weight:800;color:var(--shopee)}
.trust-label{font-size:11px;color:var(--muted);font-weight:500;margin-top:3px}

/* ===== AFFILIATE DISCLOSURE ===== */
.disclosure{background:#FFFBEB;border-left:3px solid var(--gold);padding:10px 14px;border-radius:0 8px 8px 0;font-size:12px;color:#7A5800;margin:4px 0 24px;line-height:1.5}

/* ===== FEATURED ARTICLE ===== */
.featured-article{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:1fr 1fr;margin:8px 0 32px}
.fa-img{background:linear-gradient(135deg,#FFF3F0,#FFE5DE);display:flex;align-items:center;justify-content:center;padding:40px;min-height:280px}
.fa-img .big-price{font-family:'Instrument Serif',serif;font-size:56px;color:var(--shopee);font-style:italic;text-align:center;line-height:1}
.fa-img .big-price small{display:block;font-family:'Plus Jakarta Sans',sans-serif;font-size:13px;color:var(--muted);font-style:normal;margin-top:8px}
.fa-content{padding:36px 32px;display:flex;flex-direction:column;justify-content:center}
.fa-tag{display:inline-flex;background:#FFF3F0;color:var(--shopee);font-size:11px;font-weight:700;padding:4px 10px;border-radius:5px;margin-bottom:14px;width:fit-content}
.fa-content h2{font-size:21px;font-weight:800;line-height:1.25;margin-bottom:10px}
.fa-content p{font-size:13px;color:var(--muted);margin-bottom:18px;line-height:1.7}
.fa-highlights{display:flex;flex-direction:column;gap:7px;margin-bottom:22px}
.fa-highlight{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--text)}
.fa-highlight::before{content:'';width:6px;height:6px;background:var(--shopee);border-radius:50%;flex-shrink:0}
.fa-cta{display:inline-flex;align-items:center;gap:8px;background:var(--shopee);color:#fff;padding:13px 26px;border-radius:10px;font-weight:700;font-size:14px;text-decoration:none;transition:.15s;width:fit-content}
.fa-cta:hover{background:#D63B1F}

/* ===== PRODUCT GRID ===== */
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.product-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:transform .2s,box-shadow .2s;cursor:pointer}
.product-card:hover{transform:translateY(-4px);box-shadow:0 14px 36px rgba(0,0,0,.1)}
.card-img{position:relative;aspect-ratio:1;overflow:hidden;background:#f5f5f5;display:flex;align-items:center;justify-content:center}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-img .card-emoji{font-size:56px}
.card-img .discount-tag{position:absolute;top:10px;left:10px;background:var(--shopee);color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px}
.card-img .platform-tag{position:absolute;top:10px;right:10px;padding:3px 8px;border-radius:6px;font-size:10px;font-weight:700}
.platform-shopee{background:var(--shopee);color:#fff}
.platform-tiktok{background:var(--tiktok);color:#fff}
.card-body{padding:14px 16px}
.trust-badge{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;padding:3px 8px;border-radius:5px;margin-bottom:8px}
.trust-super{background:var(--trust-green-bg);color:var(--trust-green)}
.trust-ok{background:var(--trust-blue-bg);color:var(--trust-blue)}
.card-name{font-size:13px;font-weight:600;margin-bottom:9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45}
.card-price{display:flex;align-items:baseline;gap:6px;margin-bottom:8px}
.price-now{font-size:18px;font-weight:800;color:var(--shopee)}
.price-was{font-size:12px;color:var(--muted);text-decoration:line-through}
.sold-bar-wrap{height:4px;background:#F0EDE8;border-radius:2px;margin-bottom:9px;overflow:hidden}
.sold-bar{height:100%;background:linear-gradient(90deg,var(--shopee),#FF8C6B);border-radius:2px;transition:width .6s}
.card-meta{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted);margin-bottom:11px}
.card-meta .rating{color:var(--gold);font-weight:600}
.card-cta{display:block;text-align:center;background:var(--shopee);color:#fff;padding:10px;border-radius:8px;font-size:13px;font-weight:700;text-decoration:none;transition:.15s}
.card-cta:hover{background:#D63B1F}

/* ===== ARTICLE LIST ===== */
.articles-list{display:flex;flex-direction:column;gap:12px}
.article-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;transition:.2s;text-decoration:none;color:var(--text)}
.article-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.ac-img-wrap{width:120px;flex-shrink:0}
.ac-img-wrap .ac-emoji{width:100%;height:100%;min-height:90px;display:flex;align-items:center;justify-content:center;font-size:34px}
.ac-body{padding:16px 18px;flex:1}
.ac-platform{font-size:10px;font-weight:700;color:var(--shopee);margin-bottom:4px;text-transform:uppercase;letter-spacing:.4px}
.ac-title{font-size:14px;font-weight:700;margin-bottom:6px;line-height:1.35}
.ac-excerpt{font-size:12px;color:var(--muted);margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6}
.ac-footer{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}
.ac-price{font-weight:700;color:var(--shopee);font-size:13px}

/* ===== SINGLE ARTICLE PAGE ===== */
.article-layout{max-width:780px;margin:0 auto;padding:40px 20px}
.article-meta{display:flex;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}
.article-meta .platform-badge{padding:4px 10px;border-radius:20px;font-size:12px;font-weight:600}
.article-meta .date{font-size:12px;color:var(--muted)}
.article-layout h1{font-size:28px;font-weight:800;line-height:1.25;margin-bottom:16px}
.article-layout .article-intro{font-size:16px;color:var(--muted);margin-bottom:28px;line-height:1.75}
.product-box{border:2px solid var(--shopee);border-radius:var(--radius);padding:24px;margin:28px 0;background:#FFF9F7}
.product-box .product-price-block{margin:14px 0}
.product-box .product-price-block .was{color:var(--muted);text-decoration:line-through;font-size:14px}
.product-box .product-price-block .now{font-size:28px;font-weight:800;color:var(--shopee);display:block;margin-top:2px}
.product-box .product-price-block .save{background:var(--shopee);color:#fff;font-size:12px;font-weight:700;padding:2px 8px;border-radius:4px;margin-left:8px;vertical-align:middle}
.shop-info{font-size:13px;color:var(--muted);padding:10px 0;border-top:1px solid #F0EDE8;border-bottom:1px solid #F0EDE8;margin:14px 0;line-height:1.8}
.article-cta-btn{display:block;text-align:center;background:var(--shopee);color:#fff;padding:15px 28px;border-radius:10px;font-size:16px;font-weight:800;text-decoration:none;margin-top:18px;transition:.15s}
.article-cta-btn:hover{background:#D63B1F}
.article-layout h2{font-size:20px;font-weight:800;margin:32px 0 12px;padding-bottom:8px;border-bottom:2px solid var(--border)}
.article-layout ul{padding-left:20px;margin:12px 0;display:flex;flex-direction:column;gap:8px}
.article-layout ul li{font-size:14px;line-height:1.6}
.article-layout p.body-text{font-size:15px;line-height:1.8;margin-bottom:16px;color:var(--text)}

/* ===== SIDEBAR ===== */
.two-col{display:grid;grid-template-columns:1fr 340px;gap:32px;align-items:start}
.sidebar{display:flex;flex-direction:column;gap:20px}
.sidebar-widget{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.widget-header{background:var(--shopee);color:#fff;padding:12px 16px;font-size:13px;font-weight:700}
.widget-body{padding:16px}
.sidebar-product{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
.sidebar-product:last-child{border-bottom:none;padding-bottom:0}
.sidebar-product .sp-emoji{font-size:28px;flex-shrink:0}
.sidebar-product .sp-name{font-size:12px;font-weight:600;margin-bottom:4px;line-height:1.3}
.sidebar-product .sp-price{font-size:13px;font-weight:800;color:var(--shopee)}
.sidebar-product .sp-was{font-size:11px;color:var(--muted);text-decoration:line-through}

/* ===== FOOTER ===== */
footer,.site-footer{background:var(--text);color:#aaa;text-align:center;padding:40px 24px;margin-top:56px;font-size:13px}
footer a,.site-footer a{color:#888;text-decoration:none}
footer a:hover,.site-footer a:hover{color:#ccc}
.footer-logo{font-family:'Instrument Serif',serif;font-size:26px;color:#fff;font-style:italic;margin-bottom:10px}
.footer-links{display:flex;gap:20px;justify-content:center;margin:14px 0;flex-wrap:wrap}
.footer-bottom{font-size:11px;color:#555;margin-top:14px}

/* ===== WORDPRESS SPECIFIC ===== */
.wp-post-image{width:100%;height:auto;object-fit:cover}
.alignleft{float:left;margin-right:1.5em;margin-bottom:1em}
.alignright{float:right;margin-left:1.5em;margin-bottom:1em}
.aligncenter{clear:both;display:block;margin:0 auto 1em}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:12px;color:var(--muted);text-align:center;margin-top:4px}
.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute;width:1px;word-wrap:normal}
.pagination,.nav-links-wp{display:flex;gap:8px;justify-content:center;margin:40px 0;flex-wrap:wrap}
.pagination .page-numbers,.nav-links-wp a,.nav-links-wp span{padding:8px 14px;border:1.5px solid var(--border);border-radius:8px;font-size:13px;font-weight:600;text-decoration:none;color:var(--muted);transition:.15s}
.pagination .page-numbers.current,.nav-links-wp span.current{background:var(--shopee);color:#fff;border-color:var(--shopee)}
.pagination .page-numbers:hover,.nav-links-wp a:hover{border-color:var(--shopee);color:var(--shopee)}
.entry-content{font-size:15px;line-height:1.8;color:var(--text)}
.entry-content h2{font-size:20px;font-weight:800;margin:32px 0 12px;padding-bottom:8px;border-bottom:2px solid var(--border)}
.entry-content p{margin-bottom:16px}
.entry-content ul,.entry-content ol{padding-left:20px;margin:12px 0;display:flex;flex-direction:column;gap:8px}
.entry-content li{font-size:14px;line-height:1.6}
.entry-content a{color:var(--shopee);font-weight:600}
.entry-content a:hover{text-decoration:underline}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .two-col{grid-template-columns:1fr}
  .featured-article{grid-template-columns:1fr}
  .fa-img{min-height:160px;padding:28px}
  .fa-img .big-price{font-size:42px}
}
@media(max-width:640px){
  .products-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .hero h1{font-size:26px}
  nav .nav-links a:not(.nav-cta){display:none}
  .main-navigation ul li a:not(.nav-cta){display:none}
}
