/*
Theme Name: Lionsgate Dark Cinema
Theme URI: https://example.com/lionsgate-dark-cinema
Author: Custom Theme Studio
Author URI: https://example.com
Description: A dark, cinematic WordPress theme inspired by Lionsgate.com. Features a bold dark design with gold accents, large hero sections, movie/show grids, news tickers, and full Elementor page builder compatibility. Perfect for entertainment, film studios, production companies, and media websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: lionsgate-cinema
Tags: dark, entertainment, cinema, elementor, full-width, custom-header, custom-background, featured-images
*/

/* ==========================================================================
   CSS VARIABLES / DESIGN TOKENS
   ========================================================================== */
:root {
    /* Core Colors - Lionsgate Palette */
    --lg-black: #0a0a0a;
    --lg-dark: #111111;
    --lg-dark-gray: #1a1a1a;
    --lg-medium-gray: #2a2a2a;
    --lg-gray: #3a3a3a;
    --lg-light-gray: #888888;
    --lg-white: #ffffff;
    --lg-off-white: #e8e8e8;

    /* Accent Colors */
    --lg-gold: #c5a044;
    --lg-gold-light: #d4b45a;
    --lg-gold-dark: #9e7e2e;
    --lg-red: #e63946;
    --lg-red-dark: #b82e3a;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Oswald', 'Impact', sans-serif;
    --font-accent: 'Bebas Neue', 'Impact', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --container-width: 1400px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.35s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--lg-off-white);
    background-color: var(--lg-black);
    overflow-x: hidden;
}

a {
    color: var(--lg-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--lg-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: var(--lg-white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

p {
    margin-bottom: 1em;
    color: var(--lg-off-white);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.lg-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.lg-section {
    padding: var(--section-padding) 0;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.lg-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    padding: 15px 0;
    transition: background var(--transition-medium);
}

.lg-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.lg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.lg-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lg-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--lg-gold) 0%, var(--lg-gold-dark) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 28px;
    color: var(--lg-black);
    font-weight: bold;
}

.lg-logo-text {
    font-family: var(--font-accent);
    font-size: 28px;
    letter-spacing: 0.15em;
    color: var(--lg-white);
    text-transform: uppercase;
}

.lg-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.lg-nav a {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lg-off-white);
    padding: 10px 20px;
    position: relative;
    transition: color var(--transition-fast);
}

.lg-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--lg-gold);
    transition: width var(--transition-medium);
}

.lg-nav a:hover::after,
.lg-nav a.active::after {
    width: 60%;
}

.lg-nav a:hover {
    color: var(--lg-gold);
}

/* Mobile Menu Toggle */
.lg-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.lg-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--lg-white);
    transition: all var(--transition-fast);
}

/* ==========================================================================
   NEWS TICKER BAR
   ========================================================================== */
.lg-ticker {
    background: var(--lg-gold);
    color: var(--lg-black);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    margin-top: 75px;
}

.lg-ticker-inner {
    display: flex;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
}

.lg-ticker-item {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 40px;
    color: var(--lg-black);
    display: flex;
    align-items: center;
    gap: 12px;
}

.lg-ticker-item::before {
    content: '★';
    font-size: 10px;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.lg-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--lg-black);
}

.lg-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
}

.lg-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        var(--lg-black) 0%,
        rgba(10,10,10,0.8) 30%,
        rgba(10,10,10,0.3) 60%,
        rgba(10,10,10,0.1) 100%
    );
    z-index: 2;
}

.lg-hero-content {
    position: relative;
    z-index: 3;
    padding: 0 30px 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.lg-hero-tag {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lg-gold);
    margin-bottom: 15px;
    display: inline-block;
}

.lg-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin-bottom: 20px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.lg-hero-desc {
    font-size: 18px;
    max-width: 550px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.7;
}

.lg-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.lg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 35px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.lg-btn-primary {
    background: var(--lg-gold);
    color: var(--lg-black);
}

.lg-btn-primary:hover {
    background: var(--lg-gold-light);
    color: var(--lg-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(197, 160, 68, 0.3);
}

.lg-btn-outline {
    background: transparent;
    color: var(--lg-white);
    border: 2px solid rgba(255,255,255,0.3);
}

.lg-btn-outline:hover {
    border-color: var(--lg-gold);
    color: var(--lg-gold);
    transform: translateY(-2px);
}

.lg-btn-red {
    background: var(--lg-red);
    color: var(--lg-white);
}

.lg-btn-red:hover {
    background: var(--lg-red-dark);
    color: var(--lg-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

/* ==========================================================================
   CONTENT GRID (Movies/Shows)
   ========================================================================== */
.lg-content-section {
    padding: 60px 0;
}

.lg-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--lg-medium-gray);
}

.lg-section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lg-white);
    position: relative;
}

.lg-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 100%;
    background: var(--lg-gold);
    margin-right: 15px;
    vertical-align: middle;
}

.lg-see-all {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lg-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lg-see-all:hover {
    color: var(--lg-gold-light);
}

.lg-see-all::after {
    content: '→';
    font-size: 16px;
    transition: transform var(--transition-fast);
}

.lg-see-all:hover::after {
    transform: translateX(5px);
}

/* Movie/Show Card Grid */
.lg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.lg-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--lg-dark-gray);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    cursor: pointer;
}

.lg-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lg-card-poster {
    aspect-ratio: 2/3;
    width: 100%;
    object-fit: cover;
    background: var(--lg-medium-gray);
    display: block;
}

.lg-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.lg-card:hover .lg-card-overlay {
    opacity: 1;
}

.lg-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.lg-card-meta {
    font-size: 12px;
    color: var(--lg-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lg-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--lg-red);
    color: var(--lg-white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 5;
}

/* Wide Card Variant */
.lg-card-wide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.lg-card-wide {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--lg-dark-gray);
    transition: transform var(--transition-medium);
    cursor: pointer;
}

.lg-card-wide:hover {
    transform: translateY(-5px);
}

.lg-card-wide-img {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
    background: var(--lg-medium-gray);
}

.lg-card-wide-info {
    padding: 20px;
}

.lg-card-wide-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.lg-card-wide-desc {
    font-size: 14px;
    color: var(--lg-light-gray);
    line-height: 1.5;
}

/* ==========================================================================
   NEWS / HEADLINES SECTION
   ========================================================================== */
.lg-news-section {
    background: var(--lg-dark);
    padding: 80px 0;
}

.lg-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.lg-news-featured {
    grid-row: span 2;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--lg-dark-gray);
}

.lg-news-featured-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--lg-medium-gray);
}

.lg-news-featured-content {
    padding: 30px;
}

.lg-news-date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lg-gold);
    margin-bottom: 10px;
}

.lg-news-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.lg-news-excerpt {
    font-size: 14px;
    color: var(--lg-light-gray);
    line-height: 1.6;
}

.lg-news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--lg-dark-gray);
    border-radius: 4px;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.lg-news-item:hover {
    background: var(--lg-medium-gray);
}

.lg-news-item-img {
    width: 140px;
    min-width: 140px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 3px;
    background: var(--lg-medium-gray);
}

.lg-news-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lg-news-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin-bottom: 5px;
}

/* ==========================================================================
   FRANCHISE BANNER
   ========================================================================== */
.lg-franchise-banner {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    text-align: center;
}

.lg-franchise-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.lg-franchise-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 2;
}

.lg-franchise-banner-content {
    position: relative;
    z-index: 3;
}

.lg-franchise-logo {
    max-width: 400px;
    margin: 0 auto 30px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lg-footer {
    background: var(--lg-dark);
    border-top: 1px solid var(--lg-medium-gray);
}

.lg-footer-main {
    padding: 60px 0 40px;
}

.lg-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.lg-footer-brand {
    max-width: 300px;
}

.lg-footer-brand-desc {
    font-size: 14px;
    color: var(--lg-light-gray);
    margin-top: 15px;
    line-height: 1.7;
}

.lg-footer-heading {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lg-gold);
    margin-bottom: 20px;
}

.lg-footer-links {
    list-style: none;
}

.lg-footer-links li {
    margin-bottom: 10px;
}

.lg-footer-links a {
    font-size: 14px;
    color: var(--lg-light-gray);
    transition: color var(--transition-fast);
}

.lg-footer-links a:hover {
    color: var(--lg-white);
}

.lg-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.lg-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lg-medium-gray);
    border-radius: 50%;
    font-size: 16px;
    color: var(--lg-light-gray);
    transition: all var(--transition-fast);
}

.lg-footer-social a:hover {
    background: var(--lg-gold);
    color: var(--lg-black);
}

.lg-footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--lg-medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.lg-footer-copy {
    font-size: 12px;
    color: var(--lg-light-gray);
}

.lg-footer-legal {
    display: flex;
    gap: 20px;
}

.lg-footer-legal a {
    font-size: 12px;
    color: var(--lg-light-gray);
}

/* Newsletter */
.lg-newsletter {
    background: var(--lg-dark-gray);
    padding: 50px 0;
    text-align: center;
}

.lg-newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto 0;
    gap: 0;
}

.lg-newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--lg-medium-gray);
    border: 1px solid var(--lg-gray);
    border-right: none;
    color: var(--lg-white);
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.lg-newsletter-input:focus {
    border-color: var(--lg-gold);
}

.lg-newsletter-input::placeholder {
    color: var(--lg-light-gray);
}

.lg-newsletter-btn {
    padding: 14px 30px;
    background: var(--lg-gold);
    color: var(--lg-black);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lg-newsletter-btn:hover {
    background: var(--lg-gold-light);
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--lg-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lg-gold-dark);
}

/* ==========================================================================
   ELEMENTOR OVERRIDES & COMPATIBILITY
   ========================================================================== */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--container-width);
}

.elementor-page .lg-header {
    z-index: 1001;
}

body.elementor-page {
    background-color: var(--lg-black);
}

/* Make Elementor widgets inherit dark theme */
.elementor-widget-text-editor {
    color: var(--lg-off-white);
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lg-white);
}

.elementor-widget-image-carousel .swiper-pagination-bullet {
    background: var(--lg-gold);
}

.elementor-widget-image-carousel .swiper-button-next,
.elementor-widget-image-carousel .swiper-button-prev {
    color: var(--lg-gold);
}

/* Elementor Dark Section Helpers */
.elementor-section[data-settings*="dark"] {
    background: var(--lg-dark);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lg-animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.lg-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .lg-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lg-news-grid {
        grid-template-columns: 1fr;
    }

    .lg-news-featured {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }

    .lg-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .lg-nav.active {
        display: flex;
    }

    .lg-nav a {
        font-size: 18px;
        padding: 15px 30px;
    }

    .lg-menu-toggle {
        display: flex;
        z-index: 1002;
    }

    .lg-hero {
        min-height: 70vh;
    }

    .lg-hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .lg-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .lg-card-wide-grid {
        grid-template-columns: 1fr;
    }

    .lg-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lg-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .lg-newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .lg-newsletter-input {
        border-right: 1px solid var(--lg-gray);
    }
}

@media (max-width: 480px) {
    .lg-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lg-hero-content {
        padding-bottom: 40px;
    }

    .lg-hero-actions {
        flex-direction: column;
    }

    .lg-btn {
        text-align: center;
        justify-content: center;
    }
}
