/*
Theme Name: IPTV Game Night
Theme URI: https://example.com/iptv-game-night
Author: Custom IPTV Theme
Author URI: https://example.com
Description: A premium IPTV WordPress theme inspired by Game Night design. Fully compatible with Elementor page builder, optimized for SEO, fast loading, and conversion. Features include: hero section, pricing tables, sports channels showcase, international channels grid, FAQ accordion, customer reviews, and WhatsApp chat integration. Perfect for IPTV providers, streaming services, and TV subscription businesses.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
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: iptv-game-night
Tags: elementor, iptv, streaming, business, one-column, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options, blog, e-commerce
*/

/* ==========================================================================
   CSS Variables - Easy customization
   ========================================================================== */
:root {
    --iptv-primary: #b87cff;
    --iptv-primary-dark: #8b3dff;
    --iptv-secondary: #ffd83d;
    --iptv-accent: #2cb5e8;
    --iptv-dark: #1a1336;
    --iptv-darker: #0d0820;
    --iptv-light: #ffffff;
    --iptv-text: #e0e0e0;
    --iptv-muted: #a0a0b0;
    --iptv-success: #25d366;
    --iptv-card-bg: #221a44;
    --iptv-border: rgba(184, 124, 255, 0.2);
    --iptv-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --iptv-gradient: linear-gradient(135deg, #b87cff 0%, #8b3dff 100%);
    --iptv-gradient-dark: linear-gradient(180deg, #1a1336 0%, #0d0820 100%);
    --iptv-font-heading: 'Montserrat', 'Segoe UI', sans-serif;
    --iptv-font-body: 'Open Sans', 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--iptv-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--iptv-text);
    background: var(--iptv-darker);
    overflow-x: hidden;
}

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

a {
    color: var(--iptv-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--iptv-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--iptv-font-heading);
    font-weight: 800;
    color: var(--iptv-light);
    line-height: 1.2;
    margin: 0 0 20px;
}

p { margin: 0 0 15px; }

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-logo a {
    font-size: 24px;
    font-weight: 900;
    color: #1a1336;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-logo img { max-height: 50px; width: auto; }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--iptv-primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-navigation a:hover { color: var(--iptv-primary-dark); }

.header-cta .btn-primary {
    background: var(--iptv-gradient);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(184, 124, 255, 0.4);
}

.header-cta .btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
}

.menu-toggle {
    display: none;
    background: var(--iptv-primary);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(rgba(13,8,32,0.7), rgba(13,8,32,0.85)),
                url('assets/images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--iptv-secondary);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-tagline {
    color: var(--iptv-secondary);
    font-style: italic;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-trial, .btn-cart {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-trial {
    background: var(--iptv-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(184, 124, 255, 0.5);
}

.btn-cart {
    background: #2196f3;
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
}

.btn-trial:hover, .btn-cart:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ==========================================================================
   Sections (general)
   ========================================================================== */
.section {
    padding: 80px 20px;
    position: relative;
}

.section-dark { background: var(--iptv-dark); }
.section-darker { background: var(--iptv-darker); }

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 15px;
    font-style: italic;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--iptv-text);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* ==========================================================================
   Channels Grid (Sport / Movies)
   ========================================================================== */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.channel-card {
    aspect-ratio: 2/3;
    background: var(--iptv-card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--iptv-border);
    transition: all 0.3s ease;
    position: relative;
}

.channel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-card:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--iptv-primary);
    box-shadow: 0 10px 30px rgba(184, 124, 255, 0.3);
}

/* ==========================================================================
   International Channels Logos
   ========================================================================== */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.logo-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: transform 0.3s ease;
}

.logo-item:hover { transform: scale(1.05); }
.logo-item img { max-height: 60px; max-width: 100%; object-fit: contain; }

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.pricing-card {
    background: var(--iptv-card-bg);
    border: 2px solid var(--iptv-border);
    border-radius: 15px;
    padding: 40px 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--iptv-secondary);
    transform: scale(1.05);
}

.pricing-card:hover {
    border-color: var(--iptv-primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(184, 124, 255, 0.2);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--iptv-secondary);
    color: #1a1336;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.pricing-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.pricing-old-price {
    color: var(--iptv-muted);
    text-decoration: line-through;
    font-size: 16px;
    margin-bottom: 5px;
}

.pricing-price {
    font-size: 56px;
    font-weight: 900;
    color: var(--iptv-secondary);
    line-height: 1;
    margin: 10px 0 25px;
}

.pricing-price .currency { font-size: 28px; vertical-align: top; }
.pricing-price .cents { font-size: 28px; vertical-align: top; }

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--iptv-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--iptv-secondary);
    font-weight: 700;
}

.pricing-cta {
    display: inline-block;
    background: var(--iptv-gradient);
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(184, 124, 255, 0.4);
}

.pricing-cta:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--iptv-card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--iptv-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--iptv-primary);
    box-shadow: 0 15px 35px rgba(184, 124, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--iptv-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.feature-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 15px;
}

.feature-text { color: var(--iptv-text); font-size: 14px; }

/* ==========================================================================
   Devices Section
   ========================================================================== */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    margin-top: 40px;
    align-items: center;
}

.device-item {
    text-align: center;
    color: var(--iptv-text);
    transition: transform 0.3s ease;
}

.device-item:hover { transform: scale(1.1); }

.device-item .device-icon {
    font-size: 60px;
    color: var(--iptv-primary);
    margin-bottom: 10px;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-rating {
    text-align: center;
    margin-bottom: 40px;
}

.stars {
    font-size: 32px;
    color: var(--iptv-secondary);
    letter-spacing: 5px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    background: var(--iptv-card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--iptv-border);
}

.review-stars { color: var(--iptv-secondary); margin-bottom: 15px; font-size: 18px; }
.review-text { color: var(--iptv-text); font-style: italic; margin-bottom: 15px; }
.review-author { color: #fff; font-weight: 700; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-wrapper { max-width: 850px; margin: 50px auto 0; }

.faq-item {
    background: var(--iptv-card-bg);
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--iptv-border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover { background: rgba(184, 124, 255, 0.1); }

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--iptv-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 25px;
    color: var(--iptv-text);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--iptv-success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--iptv-darker);
    padding: 60px 20px 20px;
    color: var(--iptv-text);
    border-top: 1px solid var(--iptv-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widget h4 {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget ul li { margin-bottom: 10px; }
.footer-widget a { color: var(--iptv-text); }
.footer-widget a:hover { color: var(--iptv-primary); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--iptv-border);
    color: var(--iptv-muted);
    font-size: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation { width: 100%; display: none; }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; gap: 10px; padding: 20px 0; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .pricing-card.featured { transform: none; }
    .section { padding: 60px 15px; }
    .hero-section { min-height: 500px; padding: 80px 15px; }
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */
.elementor-section.elementor-section-stretched { width: 100% !important; }
.elementor-page .site-content { padding: 0; }
.elementor-page .entry-content { margin: 0; }
.elementor-widget-text-editor a { color: var(--iptv-primary); }

/* WordPress Core */
.alignleft { float: left; margin: 5px 20px 20px 0; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.aligncenter { display: block; margin: 5px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-style: italic; }
.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;
}
.sticky { display: block; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }
