/*
Theme Name: MexPlay Streaming Theme
Theme URI: https://mextechltd.name.ng
Author: MexTech Limited
Author URI: https://mextechltd.name.ng
Description: A premium WordPress theme designed specifically for the MexPlay OTT streaming plugin. Features a modern dark design optimized for video content with full-width layouts and cinema mode templates.
Version: 1.0.0
License: Commercial
License URI: https://mextechltd.name.ng/license
Text Domain: mexplay-streaming
Tags: streaming, video, dark, modern, responsive, ott, iptv
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4

MexPlay Streaming Theme, Copyright 2024 MexTech Limited
This is commercial software. All rights reserved.
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
    --primary-color: #bb86fc;
    --secondary-color: #03dac6;
    --background-dark: #0a0b0d;
    --background-lighter: #1c1f2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b3ba;
    --accent-color: #06b6d4;
    --border-color: #2a2d42;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

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

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.full-width {
    width: 100%;
    padding: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, rgba(28,31,46,0.95) 0%, rgba(15,16,23,0.98) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: rgba(187, 134, 252, 0.1);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.site-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
    background: var(--background-lighter);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Page Title */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(187,134,252,0.1) 0%, rgba(3,218,198,0.05) 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Video Player Area
   ========================================================================== */

.video-container {
    background: var(--background-lighter);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.video-container.full-width {
    padding: 0;
    border-radius: 0;
    border: none;
}

/* ==========================================================================
   Widgets & Sidebar
   ========================================================================== */

.widget {
    background: var(--background-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    display: block;
}

.widget a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, rgba(28,31,46,0.95) 0%, rgba(15,16,23,0.98) 100%);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(187, 134, 252, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-lighter);
        padding: 1rem;
        flex-direction: column;
        border-top: 1px solid var(--border-color);
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    .page-title { font-size: 2rem; }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   App Mode (No Header/Footer/Sidebars)
   ========================================================================== */

body.mexplay-app-mode .site-header,
body.mexplay-app-mode .site-footer,
body.mexplay-app-mode .sidebar,
body.mexplay-app-mode .page-header,
body.mexplay-app-mode .entry-header,
body.no-header-footer .site-header,
body.no-header-footer .site-footer,
body.template-app .site-header,
body.template-app .site-footer {
    display: none !important;
}

body.mexplay-app-mode .site-content,
body.no-header-footer .site-content,
body.template-app .site-content,
.site-app-mode .app-content {
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

body.mexplay-app-mode #page,
body.no-header-footer #page,
body.template-app #page,
.site-app-mode {
    margin: 0;
    padding: 0;
}

body.mexplay-app-mode .container,
body.no-header-footer .container,
body.template-app .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

body.mexplay-app-mode article,
body.no-header-footer article,
body.template-app article {
    padding: 0;
    margin: 0;
}

body.mexplay-app-mode .entry-content,
body.no-header-footer .entry-content,
body.template-app .entry-content {
    margin: 0;
    padding: 0;
}

#mexplay-ott-root {
    width: 100%;
    min-height: 100vh;
}
