/*
Theme Name: OKWIN TV Club
Theme URI: https://okwintv.club
Author: OKWIN TV Club
Author URI: https://okwintv.club
Description: Theme WordPress cho OKWIN TV Club - Trang trực tiếp bóng đá 4K miễn phí
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: okwintv
Tags: sports, football, streaming, dark, responsive
*/

:root {
    --primary-gradient: linear-gradient(135deg, #FF8C00, #FFD700);
    --primary-color: #FF8C00;
    --secondary-color: #FFD700;
    --bg-body: #0f0f0f;
    --bg-sidebar: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --text-main: #ffffff;
    --text-muted: #e5e7eb; 
    --border-radius: 20px;
    --sidebar-width: 260px;
    --header-height-mobile: 60px;
    --bottom-nav-height: 70px;
    --mobile-header-height: 60px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* --- LAYOUT STRUCTURE --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR (DESKTOP) --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 30px 20px;
    border-right: 1px solid rgba(255, 140, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-area {
    text-align: center;
    margin-bottom: 40px;
}

.logo-img {
    height: 50px;
    width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.6));
    margin: 0 auto;
}

.main-menu {
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 15px;
    color: var(--text-muted);
    font-weight: 600;
}

.menu-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255, 140, 0, 0.15);
    color: var(--secondary-color);
}

.menu-item.active {
    background: var(--primary-gradient);
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

.sidebar-footer {
    margin-top: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.social-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: #000;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    width: calc(100% - var(--sidebar-width));
    padding-bottom: 120px;
}

/* --- SHARED SECTION STYLES --- */
section, article, header { margin-bottom: 60px; scroll-margin-top: 20px; }

.section-heading {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    color: var(--text-main);
    line-height: 1.3;
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 140, 0, 0.3);
    background: #000;
    margin-bottom: 40px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #0f0f0f 0%, rgba(15,15,15,0.4) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1.slide-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px #000;
}

.btn-group { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 35px;
    background: var(--primary-gradient);
    color: #000;
    font-weight: 800;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 5px 25px rgba(255, 140, 0, 0.5);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 35px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1rem;
    border: 2px solid #fff;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-gradient:hover, .btn-outline:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.7);
}
.btn-outline:hover { background: #fff; color: #000; }

/* --- ABOUT BOX --- */
.about-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
}
.about-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: justify;
}
.about-text strong { color: var(--secondary-color); }
.about-text a { color: var(--primary-color); text-decoration: underline; }

/* --- HOW-TO STEPS --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.step-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.step-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--secondary-color); }
.step-desc { font-size: 0.9rem; color: var(--text-muted); }

/* --- SERVER LIST --- */
.server-list { display: flex; flex-direction: column; gap: 15px; }
.server-item {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.server-item::before {
    content: '';
    position: absolute; left: 0; top: 0; height: 100%; width: 5px;
    background: var(--primary-gradient); opacity: 0; transition: var(--transition);
}
.server-item:hover { transform: translateX(10px); background: var(--bg-hover); border-color: rgba(255, 140, 0, 0.5); }
.server-item:hover::before { opacity: 1; }

.server-info { display: flex; align-items: center; gap: 20px; }
.server-name { font-size: 1.2rem; font-weight: 700; color: var(--secondary-color); }
.server-badge { font-size: 0.8rem; padding: 5px 10px; background: rgba(255,255,255,0.1); border-radius: 5px; color: #e5e7eb; border: 1px solid rgba(255,255,255,0.1); }
.server-badge.hd { color: #00F5FF; background: rgba(0, 245, 255, 0.1); border-color: rgba(0, 245, 255, 0.3); }
.server-badge.ping { color: #00FF7F; background: rgba(0, 255, 127, 0.1); border-color: rgba(0, 255, 127, 0.3); }

.play-btn {
    width: 50px; height: 50px; border-radius: 50%; background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center; color: #000; font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4); animation: pulse-orange 2s infinite;
}
@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

/* --- FEATURES BENTO --- */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-item {
    background: var(--bg-card); padding: 30px; border-radius: var(--border-radius);
    transition: var(--transition); border: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; justify-content: center;
}
.bento-item:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.bento-item.large { grid-column: span 2; background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 100%); }
.bento-icon { font-size: 2.5rem; margin-bottom: 20px; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bento-title { font-size: 1.3rem; margin-bottom: 10px; font-weight: 700; color: var(--text-main); }
.bento-desc { font-size: 0.95rem; color: var(--text-muted); }

/* --- INTERNAL LINKS TAGS --- */
.tags-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-link {
    padding: 8px 15px; background: rgba(255,255,255,0.1); border-radius: 20px;
    font-size: 0.9rem; color: var(--text-muted); border: 1px solid transparent;
}
.tag-link:hover { border-color: var(--primary-color); color: var(--secondary-color); background: rgba(255, 140, 0, 0.1); }

/* --- FAQ / HTML5 DETAILS --- */
.seo-wrapper { background: var(--bg-card); border-radius: var(--border-radius); padding: 40px; border: 1px solid rgba(255, 140, 0, 0.2); }

details.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

summary.faq-question {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    transition: transform 0.3s;
}

details[open] summary.faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 20px 0;
    color: var(--text-muted);
    text-align: justify;
}

/* --- MOBILE HEADER --- */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-header-height);
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    z-index: 10000;
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
}

.mobile-header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.6));
}

.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--primary-color);
}

.mobile-menu-toggle.active {
    background: var(--primary-gradient);
    color: #000;
}

/* --- FOOTER & MOBILE NAV --- */
footer { margin-top: 50px; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: var(--text-muted); font-size: 0.9rem; }
footer strong { color: var(--primary-color); }

.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: var(--bottom-nav-height);
    background: rgba(20, 20, 20, 0.98); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.2);
    z-index: 9999; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom);
}
.nav-item { display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; color: var(--text-muted); gap: 5px; padding: 5px; }
.nav-item i { font-size: 1.4rem; margin-bottom: 2px; }
.nav-item.active { color: var(--primary-color); }

/* --- MODAL & ADS --- */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 10001; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s; }
.modal.open { display: flex; opacity: 1; }
.modal-box { background: var(--bg-card); width: 100%; max-width: 700px; border-radius: var(--border-radius); border: 1px solid var(--primary-color); padding: 30px; position: relative; max-height: 90vh; overflow-y: auto; transform: translateY(20px); transition: transform 0.3s; box-shadow: 0 0 50px rgba(255, 140, 0, 0.2); }
.modal.open .modal-box { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.modal-title { color: var(--primary-color); font-size: 1.5rem; }
.close-modal { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.modal-content-text { color: var(--text-muted); text-align: justify; }
.modal-content-text h3 { color: var(--secondary-color); margin: 20px 0 10px; }
.modal-content-text ul { padding-left: 20px; margin-bottom: 15px; list-style: disc; }

.floating-cta { position: fixed; bottom: 30px; right: 30px; z-index: 9990; }
.cta-pulse { display: flex; align-items: center; gap: 10px; background: var(--primary-gradient); color: #000; font-weight: 800; padding: 12px 25px; border-radius: 50px; box-shadow: 0 0 20px rgba(255, 140, 0, 0.6); animation: pulse-scale 2s infinite; }
@keyframes pulse-scale { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

.close-ad { position: absolute; top: -10px; right: -10px; background: #fff; color: #000; width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.bottom-ad { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 9995; background: var(--bg-card); padding: 5px; border-radius: 10px 10px 0 0; width: 728px; max-width: 100%; }
.bottom-ad img { width: 728px; height: 90px; object-fit: cover; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .mobile-header { display: flex; }
    .sidebar { 
        display: none; 
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        top: var(--mobile-header-height);
        height: calc(100vh - var(--mobile-header-height));
        z-index: 9998;
    }
    .sidebar.mobile-open {
        display: flex;
        transform: translateX(0);
    }
    .main-content { 
        margin-left: 0; 
        width: 100%; 
        padding: 15px; 
        padding-top: calc(var(--mobile-header-height) + 15px);
        padding-bottom: 90px; 
    }
    .bottom-nav { display: flex; }
    
    .steps-grid { grid-template-columns: 1fr; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.large { grid-column: span 1; }
    h1.slide-title { font-size: 1.6rem; }
    .bottom-ad { bottom: var(--bottom-nav-height); width: 100%; text-align: center; padding: 0; }
    .bottom-ad img { height: 60px; width: 100%; object-fit: contain; }
    .floating-cta { bottom: 100px; right: 20px; }
}

