/*
Theme Name: TOIX Entertainment Theme
Theme URI: https://toix.net/
Author: TOIX Media Team
Description: Premium Hollywood, Celebrity & Pop Culture Entertainment Theme targeted for the USA audience. High-speed, Core Web Vitals optimized, and features a cinematic grid layout.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: toix
*/

/* --- 1. CSS Reset & Premium Variables --- */
:root {
    /* TOIX Entertainment Color Palette */
    --brand-primary: #8b5cf6; /* Premium Purple */
    --brand-accent: #e11d48;  /* Trending Rose/Pink */
    --header-dark: #0f0f13;   /* Cinematic Deep Black */
    --text-dark: #111827;     /* Slate 900 */
    --text-gray: #4b5563;     /* Slate 600 */
    --bg-light: #fafafa;      /* Off-White Background */
    --white: #ffffff;
    --border-light: rgba(0, 0, 0, 0.06);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-head: 'Montserrat', sans-serif;
    
    /* Animations */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* --- 2. Header & Navigation (Global Fallback) --- */
.site-header {
    background: var(--header-dark);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--brand-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}
.logo h1 span {
    color: var(--brand-primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 18px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--brand-primary);
}

/* --- 3. Hero Section (Trending Entertainment News) --- */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 35px;
}

.main-feature {
    position: relative;
    height: 480px;
    background: #18181b;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.main-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.8s ease;
}

.main-feature:hover img {
    transform: scale(1.05);
}

.feature-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(15, 15, 19, 0.95) 0%, rgba(15, 15, 19, 0) 100%);
    color: var(--white);
}

.feature-content h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.category-tag {
    background: var(--brand-accent);
    padding: 6px 14px;
    font-size: 11px;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}

/* --- 4. Content Area & Sidebar --- */
.main-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 35px;
    margin-top: 40px;
}

.article-card {
    background: var(--white);
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.article-card img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.article-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    transition: color 0.2s;
}

.article-card:hover .article-info h2 {
    color: var(--brand-primary);
}

.article-info p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Sidebar Styling */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--brand-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-accent);
}

/* --- 5. Footer --- */
.site-footer {
    background: var(--header-dark);
    color: #9ca3af;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.2s;
}

.footer-widget ul li a:hover {
    color: var(--brand-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 13px;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-bottom span {
    color: var(--brand-primary);
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }
    .article-card img {
        width: 100%;
        height: 200px;
    }
    .feature-content h2 {
        font-size: 22px;
    }
    .main-feature {
        height: 380px;
    }
}