/*
Theme Name: Flavor starter
Theme URI: https://nairaflaver.com
Description: Ultra-lightweight dark theme for movie, music, and entertainment blogs. Blazing fast with zero external dependencies.
Version: 1.0.0
Author: NairaFlaver
Author URI: https://nairaflaver.com
License: GPL v2 or later
Text Domain: flavor-starter
*/

:root {
    --bg: #0a0a0f;
    --bg2: #12121a;
    --bgc: #16161f;
    --bgch: #1c1c28;
    --t1: #e8e6e3;
    --t2: #9a9a9a;
    --tm: #666;
    --ac: #e50914;
    --ach: #ff1a25;
    --bd: #1e1e2a;
    --r: 6px;
    --mw: 1200px;
    --f: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--f); background: var(--bg); color: var(--t1); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--t1); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ac); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

/* Layout */
.site-container { max-width: var(--mw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--bg2); border-bottom: 1px solid var(--bd); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: var(--mw); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.site-logo img { height: 34px; width: auto; }
.site-logo-text { font-size: 22px; font-weight: 800; }
.site-logo-text span { color: var(--ac); }
.main-nav ul { list-style: none; display: flex; gap: 22px; }
.main-nav a { font-size: 13px; font-weight: 500; color: var(--t2); text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 0; position: relative; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--t1); }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--ac); transition: width .2s; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--t1); margin: 5px 0; }
.header-search input { background: var(--bg); border: 1px solid var(--bd); color: var(--t1); padding: 6px 14px; border-radius: 20px; font-size: 13px; width: 160px; outline: none; }
.header-search input:focus { border-color: var(--ac); }
.header-search input::placeholder { color: var(--tm); }

/* Featured post */
.featured-post { display: block; position: relative; border-radius: var(--r); overflow: hidden; margin: 20px 0; aspect-ratio: 21/9; background: var(--bg2); }
.featured-post img { width: 100%; height: 100%; object-fit: cover; }
.featured-post-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 36px 28px 24px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.featured-post-category { display: inline-block; background: var(--ac); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; margin-bottom: 8px; }
.featured-post-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.featured-post-title span { color: #fff; }
.featured-post-meta { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Section heading */
.section-heading { font-size: 18px; font-weight: 800; margin: 28px 0 16px; padding-left: 12px; border-left: 3px solid var(--ac); }

/* View all link */
.view-all { display: inline-block; font-size: 13px; color: var(--ac); font-weight: 600; margin: 4px 0 10px; }
.view-all:hover { text-decoration: underline; color: var(--ach); }

/* Post grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* Post card */
.post-card { background: var(--bgc); border-radius: var(--r); overflow: hidden; border: 1px solid var(--bd); transition: transform .2s, background .2s; }
.post-card:hover { transform: translateY(-3px); background: var(--bgch); }
.post-card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg2); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; background: rgba(229, 9, 20, 0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 1; transition: transform .2s, background .2s; }
.play-icon::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.post-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.12); background: rgba(229, 9, 20, 1); }
.post-card-category { position: absolute; top: 8px; left: 8px; background: var(--ac); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; z-index: 2; }
.post-card-body { padding: 14px; }
.post-card-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-title a:hover { color: var(--ac); }
.post-card-meta { font-size: 11px; color: var(--tm); display: flex; gap: 10px; }

/* Single post */
.single-post-header { padding: 28px 0 18px; }
.single-post-category { display: inline-block; background: var(--ac); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; margin-bottom: 10px; }
.single-post-title { font-size: 28px; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.single-post-meta { font-size: 13px; color: var(--tm); display: flex; gap: 14px; flex-wrap: wrap; }
.single-post-thumb { border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.single-post-thumb img { width: 100%; max-height: 480px; object-fit: cover; }

.post-content { max-width: 780px; padding-bottom: 36px; }
.post-content p { margin-bottom: 16px; font-size: 16px; }
.post-content h2 { font-size: 22px; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--bd); }
.post-content h3 { font-size: 18px; margin: 22px 0 10px; }
.post-content a { color: var(--ac); }
.post-content a:hover { text-decoration: underline; }
.post-content img { border-radius: var(--r); margin: 18px 0; }
.post-content blockquote { border-left: 3px solid var(--ac); padding: 10px 18px; margin: 18px 0; background: var(--bg2); border-radius: 0 var(--r) var(--r) 0; color: var(--t2); font-style: italic; }
.post-content iframe { max-width: 100%; margin: 18px 0; border-radius: var(--r); }
.post-content .wp-block-embed, .post-content .wp-block-embed__wrapper { margin: 18px 0; }
.post-content .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--r); }

.post-tags { padding: 18px 0; border-top: 1px solid var(--bd); display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { background: var(--bg2); color: var(--t2); font-size: 12px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--bd); }
.post-tags a:hover { border-color: var(--ac); color: var(--ac); }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--bd); }
.post-navigation a { font-size: 14px; color: var(--t2); }
.post-navigation a:hover { color: var(--ac); }

/* Content area with sidebar */
.content-area { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 18px 0; }
.content-area.no-sidebar { grid-template-columns: 1fr; }
.sidebar .widget { background: var(--bgc); border: 1px solid var(--bd); border-radius: var(--r); padding: 18px; margin-bottom: 18px; }
.sidebar .widget-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ac); }
.sidebar ul { list-style: none; }
.sidebar ul li { padding: 7px 0; border-bottom: 1px solid var(--bd); font-size: 13px; }
.sidebar ul li:last-child { border-bottom: none; }
.sidebar ul li a { color: var(--t2); }
.sidebar ul li a:hover { color: var(--ac); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 28px 0; flex-wrap: wrap; overflow: hidden; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; width: 100%; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; background: var(--bgc); border: 1px solid var(--bd); border-radius: var(--r); font-size: 13px; color: var(--t2); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--ac); border-color: var(--ac); color: #fff; }

/* Comments */
.comments-area { padding: 28px 0; }
.comments-title { font-size: 20px; margin-bottom: 18px; }
.comment-list { list-style: none; }
.comment-body { background: var(--bgc); border: 1px solid var(--bd); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.comment-author { font-weight: 600; margin-bottom: 4px; }
.comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.comment-metadata { font-size: 12px; color: var(--tm); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: var(--t2); }
.comment-respond { margin-top: 22px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; background: var(--bg2); border: 1px solid var(--bd); color: var(--t1); padding: 10px 14px; border-radius: var(--r); font-size: 14px; font-family: var(--f); margin-bottom: 10px; outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ac); }
.comment-form .submit { background: var(--ac); color: #fff; border: none; padding: 10px 26px; border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer; }
.comment-form .submit:hover { background: var(--ach); }

/* Footer */
.site-footer { background: var(--bg2); border-top: 1px solid var(--bd); margin-top: 36px; }
.footer-inner { max-width: var(--mw); margin: 0 auto; padding: 36px 20px 18px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 24px; }
.footer-about .footer-logo img { height: 30px; margin-bottom: 12px; }
.footer-about p { font-size: 13px; color: var(--t2); line-height: 1.7; }
.footer-links h4, .footer-categories h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.footer-links ul, .footer-categories ul { list-style: none; }
.footer-links li, .footer-categories li { margin-bottom: 7px; }
.footer-links a, .footer-categories a { font-size: 13px; color: var(--t2); }
.footer-links a:hover, .footer-categories a:hover { color: var(--ac); }
.footer-bottom { border-top: 1px solid var(--bd); padding-top: 16px; display: flex; justify-content: space-between; font-size: 12px; color: var(--tm); }

/* 404 */
.error-404 { text-align: center; padding: 70px 20px; }
.error-404 h1 { font-size: 72px; color: var(--ac); margin-bottom: 8px; }
.error-404 p { color: var(--t2); margin-bottom: 18px; }

/* Responsive */
@media (max-width: 900px) {
    .content-area { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 20px; }
    .featured-post { aspect-ratio: 16/9; }
    .featured-post-title { font-size: 20px; }
}
@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--bd); padding: 14px 20px; z-index: 99; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 10px; }
    .menu-toggle { display: block; }
    .header-search { display: none; }
    .posts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
    .single-post-title { font-size: 22px; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 480px) {
    .posts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .post-card-body { padding: 10px; }
    .post-card-title { font-size: 12px; }
    .featured-post-overlay { padding: 18px 14px 14px; }
    .featured-post-title { font-size: 16px; }
}

/* Similar posts */
.similar-posts { padding: 28px 0; border-top: 1px solid var(--bd); margin-top: 10px; }

/* Sidebar post list widget */
.sidebar-post-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-post-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bd); text-decoration: none; transition: opacity .2s; }
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item:hover { opacity: 0.8; }
.sidebar-post-num { font-size: 18px; font-weight: 800; color: var(--ac); min-width: 22px; }
.sidebar-post-thumb { width: 56px; height: 56px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar-post-title { font-size: 13px; font-weight: 600; color: var(--t1); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-post-date { font-size: 11px; color: var(--tm); }

/* Share buttons */
.share-buttons { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--bd); margin-bottom: 18px; }
.share-label { font-size: 13px; font-weight: 600; color: var(--t2); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bd); background: var(--bgc); color: var(--t2); cursor: pointer; transition: all .2s; }
.share-btn:hover { border-color: var(--ac); color: #fff; }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-twitter:hover { background: #000; border-color: #000; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-telegram:hover { background: #0088cc; border-color: #0088cc; }
.share-copy { width: auto; border-radius: 18px; padding: 0 14px; gap: 6px; font-family: var(--f); font-size: 12px; }
.share-copy .copy-text { font-size: 12px; }
.share-copy:hover { background: var(--ac); border-color: var(--ac); color: #fff; }
.share-copy.copied { background: #25d366; border-color: #25d366; color: #fff; }
.share-copy.copied .copy-text::after { content: 'd!'; }
.share-copy.copied .copy-text { font-size: 0; }
.share-copy.copied .copy-text::after { font-size: 12px; }
.share-copy.copied svg { display: none; }

/* WP defaults */
.alignleft { float: left; margin: 0 18px 10px 0; }
.alignright { float: right; margin: 0 0 10px 18px; }
.aligncenter { display: block; margin: 10px auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
