/*
Theme Name: EntertainHub
Theme URI: https://gf.dev
Author: GF.dev
Author URI: https://profiles.wordpress.org/chrisyau83
Description: A bold and vibrant entertainment news theme with a glamorous purple and gold design, perfect for celebrity news, movie reviews, music, and pop culture websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entertainhub
Tags: entertainment, blog, two-columns, right-sidebar, responsive-layout, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, full-width-template, editor-style, custom-header, custom-background, block-patterns
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
    --eh-purple:       #1a0533;
    --eh-purple-mid:   #2d1052;
    --eh-purple-lt:    #4a1a8a;
    --eh-gold:         #f5c518;
    --eh-gold-dk:      #d4a017;
    --eh-gold-lt:      #fad85a;
    --eh-pink:         #e91e8c;
    --eh-pink-lt:      #f06fbc;
    --eh-text:         #f0e6ff;
    --eh-text-muted:   #b39ddb;
    --eh-border:       #4a1a8a;
    --eh-dark:         #0d0019;
    --eh-white:        #ffffff;
    --eh-radius:       8px;
    --eh-transition:   0.25s ease;
    --eh-shadow:       rgba(245, 197, 24, 0.15);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--eh-purple);
    color: var(--eh-text);
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--eh-gold); text-decoration: none; transition: color var(--eh-transition); }
a:hover, a:focus { color: var(--eh-gold-lt); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.3; color: var(--eh-white); margin-bottom: .75em; }
p { margin-bottom: 1em; }
ul, ol { margin: 0 0 1em 1.5em; }

/* =========================================================
   REQUIRED WORDPRESS CSS CLASSES
   ========================================================= */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: var(--eh-purple-lt); border-radius: 3px; box-shadow: 0 0 2px 2px var(--eh-gold);
    clip: auto !important; clip-path: none; color: var(--eh-white); display: block;
    font-size: .875rem; font-weight: 700; height: auto; left: 5px;
    line-height: normal; padding: 15px 23px 14px; top: 5px; width: auto; z-index: 100000;
}
.bypostauthor > .comment-body { border-left: 3px solid var(--eh-gold); padding-left: 1em; }
.gallery-caption { display: block; font-size: .875em; color: var(--eh-text-muted); font-style: italic; margin-top: .25em; }
.sticky { border-left: 4px solid var(--eh-gold); padding-left: 1em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; text-align: center; }
.alignwide { margin-left: -2rem; margin-right: -2rem; max-width: calc(100% + 4rem); }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; }
.wp-caption { background: var(--eh-purple-mid); border: 1px solid var(--eh-border); border-radius: var(--eh-radius); max-width: 100%; padding: .5em; }
.wp-caption img { display: block; }
.wp-caption-text { font-size: .875em; color: var(--eh-text-muted); font-style: italic; padding: .25em .5em; }
.wp-block-image figcaption { font-size: .875em; color: var(--eh-text-muted); text-align: center; }

/* =========================================================
   LAYOUT
   ========================================================= */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* =========================================================
   TICKER BAR
   ========================================================= */
.eh-ticker {
    background: var(--eh-dark);
    border-bottom: 1px solid var(--eh-border);
    padding: .4rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.eh-ticker-inner { display: inline-block; animation: ticker-scroll 30s linear infinite; }
.eh-ticker span { font-size: .8rem; color: var(--eh-gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 0 2rem; }
.eh-ticker span::before { content: "★ "; color: var(--eh-pink); }
.eh-ticker:hover .eh-ticker-inner { animation-play-state: paused; }

@keyframes ticker-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
    background: var(--eh-dark);
    border-bottom: 3px solid var(--eh-gold);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px var(--eh-shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .875rem 1.5rem; max-width: 1200px; margin: 0 auto; gap: 1.5rem; }
.site-title { font-size: 1.75rem; margin: 0; }
.site-title a { color: var(--eh-gold); font-weight: 900; letter-spacing: -1px; text-shadow: 0 0 20px rgba(245,197,24,.3); }
.site-title a:hover { color: var(--eh-gold-lt); text-decoration: none; }
.site-description { font-size: .78rem; color: var(--eh-text-muted); margin: 0; }
.custom-logo { max-height: 52px; width: auto; }

/* NAVIGATION */
.main-navigation { flex: 1; }
.main-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .125rem; flex-wrap: wrap; justify-content: flex-end; }
.main-navigation a { display: block; padding: .5rem .875rem; color: var(--eh-text-muted); font-size: .875rem; font-weight: 500; border-radius: 4px; transition: all var(--eh-transition); }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--eh-gold); text-decoration: none; }
.main-navigation ul ul { position: absolute; top: 100%; left: 0; background: var(--eh-dark); border: 1px solid var(--eh-border); border-radius: var(--eh-radius); min-width: 180px; flex-direction: column; display: none; z-index: 10; }
.main-navigation ul ul a { color: var(--eh-text); }
.main-navigation ul li:hover > ul { display: flex; }

.menu-toggle { display: none; background: var(--eh-purple-lt); border: 1px solid var(--eh-border); color: var(--eh-gold); padding: .5rem .875rem; border-radius: 4px; font-size: .875rem; cursor: pointer; }

.header-search button { background: none; border: none; color: var(--eh-text-muted); cursor: pointer; font-size: 1.1rem; padding: .4rem; }
.header-search button:hover { color: var(--eh-gold); }

/* =========================================================
   SPOTLIGHT / HERO
   ========================================================= */
.eh-spotlight {
    position: relative; overflow: hidden;
    height: 480px; background: var(--eh-dark);
}
.eh-spotlight-image { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.eh-spotlight-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(13,0,25,.95) 0%, rgba(13,0,25,.6) 60%, transparent 100%);
    padding: 3rem 2rem 2rem;
}
.eh-spotlight-badge { display: inline-block; background: var(--eh-pink); color: var(--eh-white); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: .2rem .625rem; border-radius: 3px; margin-bottom: .75rem; }
.eh-spotlight-title { font-size: 2.2rem; line-height: 1.2; margin-bottom: .75rem; }
.eh-spotlight-title a { color: var(--eh-white); }
.eh-spotlight-title a:hover { color: var(--eh-gold); text-decoration: none; }
.eh-spotlight-meta { font-size: .875rem; color: var(--eh-text-muted); }

/* =========================================================
   ENTERTAINMENT CARDS
   ========================================================= */
.eh-card {
    background: var(--eh-purple-mid);
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    overflow: hidden;
    transition: border-color var(--eh-transition), box-shadow var(--eh-transition), transform var(--eh-transition);
    display: flex; flex-direction: column;
}
.eh-card:hover { border-color: var(--eh-gold); box-shadow: 0 4px 24px var(--eh-shadow); transform: translateY(-2px); }

.eh-card-image { position: relative; overflow: hidden; height: 200px; background: var(--eh-purple-lt); }
.eh-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; opacity: .85; }
.eh-card:hover .eh-card-image img { transform: scale(1.04); opacity: 1; }

.eh-badge {
    position: absolute; top: .75rem; left: .75rem;
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    padding: .2rem .5rem; border-radius: 3px;
}
.eh-badge { background: var(--eh-gold); color: var(--eh-dark); }
.eh-badge.movies { background: var(--eh-gold); color: var(--eh-dark); }
.eh-badge.music { background: var(--eh-pink); color: var(--eh-white); }
.eh-badge.tv { background: #00bcd4; color: var(--eh-dark); }
.eh-badge.celebrity { background: var(--eh-purple-lt); color: var(--eh-text); }

.eh-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.eh-card-title { font-size: 1rem; margin-bottom: .5rem; }
.eh-card-title a { color: var(--eh-white); }
.eh-card-title a:hover { color: var(--eh-gold); text-decoration: none; }
.eh-card-excerpt { color: var(--eh-text-muted); font-size: .875rem; flex: 1; }
.eh-card-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--eh-text-muted); margin-top: .875rem; padding-top: .75rem; border-top: 1px solid rgba(74,26,138,.5); flex-wrap: wrap; }

/* =========================================================
   STAR RATING
   ========================================================= */
.eh-rating { color: var(--eh-gold); font-size: 1.25rem; letter-spacing: 2px; margin: 1rem 0; }
.eh-rating-empty { color: var(--eh-border); }

/* =========================================================
   SHARE BUTTONS
   ========================================================= */
.eh-share { display: flex; gap: .75rem; margin: 2rem 0; flex-wrap: wrap; }
.eh-share-label { font-size: .875rem; color: var(--eh-text-muted); font-weight: 700; line-height: 2; }
.eh-share-btn {
    display: inline-block; padding: .4rem 1rem; border-radius: 4px; font-size: .8rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px; transition: opacity var(--eh-transition);
}
.eh-share-btn:hover { opacity: .85; text-decoration: none; }
.eh-share-btn.twitter { background: #1da1f2; color: #fff; }
.eh-share-btn.facebook { background: #1877f2; color: #fff; }
.eh-share-btn.copy { background: var(--eh-purple-lt); color: var(--eh-gold); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.entry-header { margin-bottom: 1.5rem; }
.entry-title { font-size: 2rem; line-height: 1.25; }
.entry-meta { font-size: .875rem; color: var(--eh-text-muted); margin-top: .5rem; }
.entry-meta a { color: var(--eh-gold); }
.post-thumbnail { margin-bottom: 2rem; border-radius: var(--eh-radius); overflow: hidden; }
.post-thumbnail img { width: 100%; max-height: 480px; object-fit: cover; }
.entry-content { color: var(--eh-text); }
.entry-content p { margin-bottom: 1.25em; }
.entry-content h2 { font-size: 1.4rem; color: var(--eh-gold); margin-top: 2em; border-bottom: 1px solid var(--eh-border); padding-bottom: .5em; }
.entry-content h3 { font-size: 1.2rem; color: var(--eh-white); margin-top: 1.5em; }
.entry-content blockquote { border-left: 4px solid var(--eh-gold); padding: 1em 1.5em; background: var(--eh-purple-mid); border-radius: 0 var(--eh-radius) var(--eh-radius) 0; font-style: italic; margin: 1.5em 0; color: var(--eh-text-muted); font-size: 1.1em; }

.cat-badge { display: inline-block; background: var(--eh-gold); color: var(--eh-dark); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: .2rem .5rem; border-radius: 3px; margin-bottom: .75rem; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.widget-area { padding-top: 2rem; }
.widget { margin-bottom: 2.5rem; }
.widget-title { font-size: .875rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--eh-gold); border-bottom: 2px solid var(--eh-gold); padding-bottom: .5rem; margin-bottom: 1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: .375rem 0; border-bottom: 1px solid rgba(74,26,138,.5); font-size: .9rem; }
.widget ul li a { color: var(--eh-text); }
.widget ul li a:hover { color: var(--eh-gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--eh-dark); border-top: 2px solid var(--eh-gold); margin-top: auto; }
.footer-widgets { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem; }
.footer-widgets .widget-title { color: var(--eh-gold); border-color: var(--eh-gold); }
.footer-widgets .widget a { color: var(--eh-text-muted); }
.footer-widgets .widget a:hover { color: var(--eh-gold-lt); }
.footer-widgets .widget ul li { border-color: rgba(74,26,138,.4); }
.footer-bottom { border-top: 1px solid rgba(74,26,138,.5); padding: 1.25rem 1.5rem; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--eh-text-muted); flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: var(--eh-gold); }
.footer-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--eh-text-muted); font-size: .875rem; }
.footer-nav a:hover { color: var(--eh-gold); }

/* =========================================================
   SEARCH / FORMS
   ========================================================= */
.search-form { display: flex; gap: .5rem; }
.search-field { flex: 1; padding: .625rem 1rem; background: var(--eh-purple-mid); border: 1px solid var(--eh-border); border-radius: 4px; color: var(--eh-text); font-size: .9rem; }
.search-field:focus { outline: none; border-color: var(--eh-gold); }
.search-submit { padding: .625rem 1.25rem; background: var(--eh-gold); color: var(--eh-dark); border: none; border-radius: 4px; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--eh-gold-lt); }

/* PAGINATION */
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin: 2rem 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--eh-border); border-radius: 4px; font-size: .875rem; color: var(--eh-text); background: var(--eh-purple-mid); transition: all var(--eh-transition); }
.page-numbers:hover, .page-numbers.current { background: var(--eh-gold); border-color: var(--eh-gold); color: var(--eh-dark); text-decoration: none; }

/* POST NAV */
.post-navigation { display: flex; gap: 1rem; margin: 2.5rem 0; flex-wrap: wrap; }
.nav-previous, .nav-next { flex: 1; min-width: 220px; background: var(--eh-purple-mid); border: 1px solid var(--eh-border); border-radius: var(--eh-radius); padding: 1rem 1.25rem; transition: border-color var(--eh-transition); }
.nav-previous:hover, .nav-next:hover { border-color: var(--eh-gold); }
.nav-previous a, .nav-next a { color: var(--eh-white); font-weight: 600; font-size: .9rem; }
.nav-previous a:hover, .nav-next a:hover { color: var(--eh-gold); text-decoration: none; }
.nav-next { text-align: right; }

/* COMMENTS */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--eh-border); }
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { margin-bottom: 1.5rem; }
.comment-body { background: var(--eh-purple-mid); border: 1px solid var(--eh-border); border-radius: var(--eh-radius); padding: 1.25rem; }
.comment-author .fn { font-weight: 700; color: var(--eh-white); }
.comment-meta { font-size: .8rem; color: var(--eh-text-muted); margin-bottom: .75rem; }
.comment-content p { font-size: .95rem; color: var(--eh-text); }
.reply a { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--eh-gold); }
.comment-form label { display: block; font-weight: 700; font-size: .875rem; color: var(--eh-text); margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .625rem 1rem; background: var(--eh-purple-mid); border: 1px solid var(--eh-border); border-radius: 4px; color: var(--eh-text); font-size: .9rem; margin-bottom: 1rem; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--eh-gold); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.form-submit .submit { background: var(--eh-gold); color: var(--eh-dark); border: none; padding: .75rem 2rem; border-radius: 4px; font-weight: 800; cursor: pointer; font-size: .95rem; }
.form-submit .submit:hover { background: var(--eh-gold-lt); }

/* TAGS */
.entry-tags { margin: 2rem 0; }
.entry-tags a { display: inline-block; background: var(--eh-purple-mid); border: 1px solid var(--eh-border); color: var(--eh-text-muted); font-size: .8rem; padding: .25rem .625rem; border-radius: 3px; margin: .125rem; }
.entry-tags a:hover { background: var(--eh-gold); color: var(--eh-dark); border-color: var(--eh-gold); text-decoration: none; }

/* 404 */
.error-404 { text-align: center; padding: 5rem 1.5rem; }
.error-404 .page-title { font-size: 3rem; color: var(--eh-gold); }
.error-404 p { font-size: 1.1rem; color: var(--eh-text-muted); margin-bottom: 2rem; }

/* ARCHIVE */
.page-header { padding: 2rem 1.5rem; border-bottom: 1px solid var(--eh-border); margin-bottom: 2rem; background: var(--eh-dark); }
.page-title { font-size: 1.75rem; color: var(--eh-gold); }
.archive-description { color: var(--eh-text-muted); margin-top: .5rem; }

/* LIST ITEMS */
.eh-list-item { display: flex; gap: 1.25rem; background: var(--eh-purple-mid); border: 1px solid var(--eh-border); border-radius: var(--eh-radius); overflow: hidden; margin-bottom: 1rem; transition: border-color var(--eh-transition); }
.eh-list-item:hover { border-color: var(--eh-gold); }
.eh-list-thumb { width: 200px; flex-shrink: 0; }
.eh-list-thumb img { width: 100%; height: 140px; object-fit: cover; opacity: .85; }
.eh-list-body { padding: 1rem; flex: 1; }
.eh-list-title { font-size: 1rem; margin-bottom: .4rem; }
.eh-list-title a { color: var(--eh-white); }
.eh-list-title a:hover { color: var(--eh-gold); text-decoration: none; }
.eh-list-excerpt { font-size: .875rem; color: var(--eh-text-muted); }
.eh-list-meta { font-size: .78rem; color: var(--eh-text-muted); margin-top: .5rem; }

/* NO RESULTS */
.no-results { text-align: center; padding: 3rem 1.5rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .with-sidebar { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .main-navigation { display: none; width: 100%; order: 3; }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; background: var(--eh-dark); padding: .5rem; border-radius: var(--eh-radius); }
    .main-navigation ul ul { position: static; box-shadow: none; border: none; }
    .menu-toggle { display: block; }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .entry-title { font-size: 1.5rem; }
    .eh-spotlight { height: 320px; }
    .eh-spotlight-title { font-size: 1.4rem; }
    .eh-list-item { flex-direction: column; }
    .eh-list-thumb { width: 100%; }
    .eh-list-thumb img { height: 200px; }
}
@media (max-width: 480px) {
    .header-search { display: none; }
    .entry-title { font-size: 1.25rem; }
    .eh-ticker { display: none; }
}
