/*
Theme Name: PokiBlog
Theme URI: https://dougakan.etietidoga.com
Description: DTI Affiliate Review Site - Professional Edition
Version: 2.0
Text Domain: pokiblog
*/

:root {
  --bg: #f8f9fa; --bg2: #ffffff; --bg3: #f0f2f5;
  --accent: #2563eb; --accent2: #1d4ed8; --pink: #ec4899;
  --text: #1f2937; --text2: #6b7280; --border: #e5e7eb;
  --green: #16a34a; --red: #dc2626; --orange: #ea580c;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Hiragino Kaku Gothic ProN','Yu Gothic UI','Noto Sans JP',sans-serif; line-height: 1.8; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header { background: var(--bg2); border-bottom: 3px solid var(--accent); padding: 15px 0; box-shadow: var(--shadow); position: relative; z-index: 100; }
.site-header .inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.header-left { flex-shrink: 0; }
.site-title a { font-size: 22px; font-weight: 800; color: var(--accent); text-decoration: none; }
.site-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }

.header-search { flex-shrink: 0; }
.header-search form { display: flex; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color 0.2s; }
.header-search form:focus-within { border-color: var(--accent); }
.header-search input { border: none; padding: 8px 14px; font-size: 14px; width: 240px; outline: none; background: var(--bg3); }
.header-search button { border: none; background: var(--accent); color: #fff; padding: 8px 14px; cursor: pointer; display: flex; align-items: center; }
.header-search button:hover { background: var(--accent2); }

/* ===== Trust Badges ===== */
.trust-badges { background: linear-gradient(135deg, #1e3a5f, #2563eb); padding: 8px 0; }
.trust-badges .inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.trust-badges .badge { color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.trust-badges .badge-icon { font-size: 16px; }

/* ===== Navigation ===== */
.site-nav { background: var(--bg2); border-bottom: 1px solid var(--border); }
.site-nav .inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; gap: 0; overflow-x: auto; }
.site-nav a { padding: 12px 18px; font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; border-bottom: 3px solid transparent; transition: all 0.2s; }
.site-nav a:hover { color: var(--accent); text-decoration: none; background: var(--bg3); border-bottom-color: var(--accent); }

/* ===== Layout ===== */
.site-content { max-width: 1100px; margin: 0 auto; padding: 30px 20px; display: grid; grid-template-columns: 1fr 300px; gap: 30px; }

/* ===== Hero Section ===== */
.hero-section { background: linear-gradient(135deg, #1e40af, #3b82f6); border-radius: 12px; padding: 40px 30px; text-align: center; margin-bottom: 30px; color: #fff; }
.hero-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.hero-subtitle { font-size: 15px; opacity: 0.9; margin-bottom: 20px; }
.hero-search { max-width: 500px; margin: 0 auto 15px; }
.hero-search form { display: flex; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero-search input { flex: 1; border: none; padding: 14px 18px; font-size: 15px; outline: none; }
.hero-search button { border: none; background: var(--red); color: #fff; padding: 14px 24px; font-weight: 700; font-size: 15px; cursor: pointer; }
.hero-search button:hover { background: #b91c1c; }
.hero-badges { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 13px; opacity: 0.9; }

/* ===== Featured Section ===== */
.featured-section { margin-bottom: 35px; }
.featured-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.featured-thumb { position: relative; padding-top: 56%; overflow: hidden; background: var(--bg3); }
.featured-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-info { padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.featured-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; align-self: flex-start; }
.featured-info h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.featured-info p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.featured-read { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ===== Section Headings ===== */
.section-heading { font-size: 18px; font-weight: 700; color: var(--text); padding-bottom: 10px; border-bottom: 3px solid var(--accent); margin-bottom: 20px; display: inline-block; }
.section-header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }
.section-header .section-heading { margin-bottom: 0; }
.section-desc { font-size: 13px; color: var(--text2); }
.section-more { font-size: 13px; margin-left: auto; white-space: nowrap; }
.category-section { margin-bottom: 35px; }
.latest-section { margin-bottom: 20px; }

/* ===== Post Grid ===== */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .thumb { width: 100%; padding-top: 52%; background: var(--bg3); position: relative; overflow: hidden; }
.post-card .thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card .info { padding: 15px; }
.post-card h2 { font-size: 14px; font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); text-decoration: none; }

/* ===== Single Post ===== */
.single-post { min-width: 0; }
.post-title { font-size: 24px; font-weight: 700; margin-bottom: 15px; line-height: 1.5; color: var(--text); }
.post-content { min-width: 0; }

.breadcrumb { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); }

.post-meta-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; padding: 12px 15px; background: var(--bg3); border-radius: 8px; border-left: 4px solid var(--accent); }
.post-dates { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.date-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text2); }
.date-item svg { flex-shrink: 0; }
.date-updated { color: var(--accent); font-weight: 600; }
.date-updated strong { color: var(--accent); }

.entry-content { line-height: 1.9; font-size: 16px; color: var(--text); }
.entry-content h2 { font-size: 20px; font-weight: 700; margin: 35px 0 15px; padding: 12px 15px; background: var(--accent); color: #fff; border-radius: 6px; }
.entry-content h3 { font-size: 17px; font-weight: 700; margin: 25px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); }
.entry-content h4 { font-size: 15px; font-weight: 700; margin: 15px 0 8px; }
.entry-content p { margin-bottom: 15px; }
.entry-content ul, .entry-content ol { margin: 10px 0 15px 25px; }
.entry-content li { margin-bottom: 6px; }
.entry-content strong { color: #111; }
.entry-content a { color: var(--accent); font-weight: 500; }
.entry-content img { border-radius: 6px; }
.entry-content blockquote { border-left: 4px solid var(--accent); background: var(--bg3); padding: 15px 20px; margin: 15px 0; border-radius: 0 8px 8px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.entry-content table th { background: var(--accent); color: #fff; padding: 12px 15px; font-size: 14px; font-weight: 600; }
.entry-content table td { padding: 12px 15px; font-size: 14px; text-align: center; border-bottom: 1px solid var(--border); }
.entry-content table tr:nth-child(even) td { background: var(--bg3); }

/* ===== Share Buttons ===== */
.share-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 25px 0; padding: 15px; background: var(--bg3); border-radius: 8px; }
.share-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.share-twitter { background: #1da1f2; }
.share-line { background: #06c755; }
.share-copy { background: var(--text2); font-family: inherit; }

/* ===== Author Box ===== */
.author-box { margin: 30px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg2); }
.author-box-title { background: var(--accent); color: #fff; padding: 10px 20px; font-size: 14px; font-weight: 700; }
.author-box-inner { display: flex; gap: 18px; padding: 20px; align-items: flex-start; }
.author-avatar { flex-shrink: 0; }
.author-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.author-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.author-bio { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ===== Related Section ===== */
.related-section { margin-top: 30px; }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.widget-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }

/* ===== Pagination ===== */
.pagination { margin-top: 30px; text-align: center; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; color: var(--text2); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Footer ===== */
.site-footer { background: #1f2937; border-top: 3px solid var(--accent); padding: 40px 0 20px; margin-top: 50px; color: #d1d5db; }
.site-footer .inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-widgets { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-heading { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.footer-text { font-size: 13px; line-height: 1.8; color: #9ca3af; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-links a { color: #d1d5db; font-size: 13px; display: block; transition: color 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-col { min-width: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #9ca3af; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #9ca3af; font-size: 12px; }
.footer-bottom-links a:hover { color: #fff; }

/* ===== 404 Page ===== */
.error-404-page { text-align: center; padding: 20px 0; }
.error-icon { font-size: 72px; font-weight: 900; color: var(--accent); margin-bottom: 10px; letter-spacing: 5px; }
.error-404-page h1 { font-size: 24px; margin-bottom: 10px; }
.error-desc { color: var(--text2); font-size: 15px; margin-bottom: 25px; }
.error-search { max-width: 450px; margin: 0 auto 30px; }
.error-search form { display: flex; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.error-search input { flex: 1; border: none; padding: 12px 16px; font-size: 15px; outline: none; }
.error-search button { border: none; background: var(--accent); color: #fff; padding: 12px 20px; font-weight: 700; cursor: pointer; }
.error-suggestions { text-align: left; margin-top: 30px; }
.error-suggestions h2 { font-size: 18px; font-weight: 700; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 3px solid var(--accent); display: inline-block; }
.error-categories { margin-top: 30px; }
.category-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cat-link { display: inline-block; padding: 10px 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); transition: all 0.2s; }
.cat-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* ===== CTA Button ===== */
.cta-button { display: inline-block; padding: 15px 40px; background: linear-gradient(135deg, #e53e3e, #c53030); color: #fff !important; border-radius: 8px; font-weight: 700; font-size: 17px; text-decoration: none !important; box-shadow: 0 4px 12px rgba(229,62,62,0.3); transition: transform 0.2s; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229,62,62,0.4); }

/* ===== SEO Components ===== */
.comparison-table, .entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.comparison-table th, .entry-content table th { background: var(--accent); color: #fff; padding: 12px 15px; font-size: 14px; font-weight: 600; }
.comparison-table td, .entry-content table td { padding: 12px 15px; font-size: 14px; text-align: center; border-bottom: 1px solid var(--border); color: var(--text); }
.comparison-table tr:nth-child(even) td, .entry-content table tr:nth-child(even) td { background: var(--bg3); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0; }
.pros { padding: 20px; border-radius: 10px; background: #f0fdf4; border: 2px solid #86efac; }
.cons { padding: 20px; border-radius: 10px; background: #fef2f2; border: 2px solid #fca5a5; }
.pros h4 { color: #16a34a; font-size: 16px; margin-bottom: 10px; }
.cons h4 { color: #dc2626; font-size: 16px; margin-bottom: 10px; }
.pros li, .cons li { margin-bottom: 6px; font-size: 14px; color: var(--text); }

.toc { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 15px 20px; margin-bottom: 20px; }
.toc h3 { font-size: 14px; margin-bottom: 10px; }
.toc ul { list-style: none; padding-left: 0; }
.toc li { padding: 4px 0; font-size: 13px; }
.toc li::before { content: "\25B6  "; color: var(--accent); font-size: 10px; }

.rating { display: inline-flex; align-items: center; gap: 4px; }
.rating .stars { color: #ffd700; font-size: 18px; }
.rating .score { font-weight: 700; font-size: 16px; }

.faq { margin: 20px 0; }
dl dt { font-weight: 700; padding: 12px 0 6px; font-size: 15px; color: var(--text); }
dl dd { padding: 0 0 15px 25px; color: var(--text2); border-bottom: 1px solid var(--border); margin-bottom: 10px; }

.related-articles { background: var(--bg3); border-radius: 10px; padding: 20px; margin-top: 30px; }
.related-articles h3 { font-size: 16px; margin-bottom: 12px; }
.related-articles a { display: block; padding: 6px 0; font-size: 14px; }

.page-title { margin-bottom: 25px; }
.page-title h1 { font-size: 22px; font-weight: 700; }
.page-title p { color: var(--text2); font-size: 14px; margin-top: 5px; }

/* Override inline styles from generated content */
.entry-content div, .entry-content section, .entry-content span, .entry-content p { color: var(--text) !important; background-color: transparent !important; }
.entry-content table, .entry-content th { color: inherit !important; }
.entry-content td { color: var(--text) !important; }
.entry-content .pros, .entry-content .cons { background-color: revert !important; }
.entry-content .pros { background: #f0fdf4 !important; }
.entry-content .cons { background: #fef2f2 !important; }
.entry-content a, .entry-content a * { color: var(--accent) !important; }
.entry-content a:hover { color: var(--accent2) !important; }
.entry-content strong, .entry-content b { color: var(--text) !important; }
.entry-content h2 { color: #fff !important; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-content { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .sidebar { order: 1; }
  .footer-widgets { grid-template-columns: 1fr; }
  .site-header .inner { flex-direction: column; gap: 10px; }
  .header-search input { width: 100%; }
  .header-search form { width: 100%; }
  .trust-badges .inner { gap: 10px; font-size: 11px; }
  .trust-badges .badge { font-size: 11px; }
  .hero-section { padding: 25px 15px; }
  .hero-title { font-size: 20px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-info { padding: 15px; }
  .post-meta-bar { flex-direction: column; }
  .author-box-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .share-buttons { justify-content: center; }
}
@media (max-width: 480px) {
  .post-grid { grid-template-columns: 1fr; }
  .trust-badges .badge { font-size: 10px; }
  .hero-badges { flex-direction: column; gap: 5px; }
}
