/*
Theme Name:        Ziaoba Stream
Theme URI:         https://ziaoba.com
Author:            Ziaoba Entertainment
Author URI:        https://ziaoba.com
Description:       Netflix/Prime hybrid streaming theme for African entertainment-education AVOD. Integrated with Ziaoba Asset Management plugin.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
Text Domain:       ziaoba-stream
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
*/

/* --- Base Styles --- */
:root {
    --bg-color: #0A0A0A;
    --primary-color: #E50914;
    --hover-color: #00C853;
    --text-color: #FFFFFF;
    --muted-text: #B3B3B3;
    --card-bg: #141414;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

.container { max-width: 1440px; margin: 0 auto; padding: 0 4%; }

/* --- Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 15px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.site-header.scrolled { 
    background-color: var(--bg-color); 
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Custom Logo Styling */
.custom-logo-link {
    display: inline-block;
    flex-shrink: 0;
}
.custom-logo-link img {
    max-height: 60px;
    width: auto;
    height: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}
.custom-logo-link:hover img {
    transform: scale(1.05);
}

.nav-menu { display: flex; list-style: none; gap: 20px; font-size: 14px; font-weight: 500; }
.nav-menu ul { display: flex; list-style: none; gap: 20px; }
.nav-menu a { color: #e5e5e5; white-space: nowrap; }
.nav-menu a:hover { color: var(--text-color); }

.nav-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-actions i { cursor: pointer; font-size: 18px; color: #fff; }

@media (max-width: 768px) {
    .nav-menu { display: none; } /* Simple approach: hide menu on mobile, or could use a scrollable bar */
    .logo { font-size: 20px; }
    .custom-logo-link img { max-height: 50px; }
    .nav-actions { gap: 15px; }
}

/* --- Hero --- */
.hero {
    height: 85vh;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(77deg, rgba(0,0,0,.8) 0, rgba(0,0,0,0) 85%), 
                linear-gradient(to top, var(--bg-color) 0%, transparent 40%);
}

.hero-content { position: relative; z-index: 10; max-width: 700px; }
.hero-title { font-size: 64px; font-weight: 900; margin-bottom: 15px; line-height: 1; letter-spacing: -1px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; font-size: 14px; font-weight: 700; align-items: center; }
.hero-desc { font-size: 18px; color: #e5e5e5; margin-bottom: 35px; text-shadow: 2px 2px 4px rgba(0,0,0,.45); line-height: 1.4; }

@media (max-width: 1024px) {
    .hero-title { font-size: 48px; }
    .hero-content { max-width: 550px; }
}

@media (max-width: 768px) {
    .hero { height: 70vh; }
    .hero-title { font-size: 36px; }
    .hero-desc { font-size: 15px; margin-bottom: 25px; }
    .hero-meta { font-size: 12px; gap: 8px; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #ff0a16; transform: scale(1.05); }

@media (max-width: 480px) {
    .btn { padding: 10px 20px; font-size: 14px; }
}

/* --- Carousels --- */
.section-title { font-size: 20px; font-weight: 700; margin: 40px 0 15px; color: #e5e5e5; }

.swiper { overflow: visible !important; }
.swiper-slide { transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; }
.swiper-slide:hover { transform: scale(1.1); z-index: 50; }

.card-img-wrapper { 
    position: relative; 
    border-radius: 4px; 
    overflow: hidden; 
    aspect-ratio: 16/9; 
    background: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.card-img { width: 100%; height: 100%; object-fit: cover; }

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide:hover .card-overlay { opacity: 1; }
.card-overlay i { font-size: 40px; color: #fff; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }

.card-info { margin-top: 10px; }
.card-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #fff; }
.card-meta { font-size: 11px; color: var(--muted-text); display: flex; gap: 8px; font-weight: 600; }

@media (max-width: 768px) {
    .swiper-slide:hover { transform: none; } /* Disable scale on mobile for better touch experience */
    .section-title { font-size: 18px; margin: 30px 0 10px; }
}

/* --- Single Page --- */
.single-player-wrap { padding-top: 100px; margin-bottom: 40px; }
.single-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }

@media (max-width: 1024px) {
    .single-grid { grid-template-columns: 1fr; gap: 30px; }
}

.single-title { font-size: 48px; font-weight: 900; margin-bottom: 15px; line-height: 1.1; }
.single-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; font-size: 15px; color: var(--muted-text); font-weight: 600; }
.single-content { font-size: 17px; line-height: 1.6; color: #d2d2d2; }

@media (max-width: 768px) {
    .single-title { font-size: 32px; }
    .single-player-wrap { padding-top: 80px; }
}

.sidebar-box { background: var(--card-bg); padding: 25px; border-radius: 8px; margin-bottom: 25px; border: 1px solid #222; }
.edu-hook-title { color: var(--hover-color); font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1.5px; }

/* --- Login Required Box --- */
.login-required,
.login-required-box {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: border-color 0.3s ease;
}
.login-required:hover,
.login-required-box:hover {
    border-color: var(--primary-color);
}
.login-required .btn,
.login-required-box .btn {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

/* --- Ultimate Member Dark Theme --- */
.um {
    max-width: 450px !important;
    margin: 100px auto !important;
    background: var(--card-bg) !important;
    padding: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #222 !important;
    color: #fff !important;
}
.um-header { display: none !important; }
.um-field-label { color: #fff !important; font-size: 14px !important; font-weight: 600 !important; margin-bottom: 8px !important; }
.um-field-area input[type="text"], 
.um-field-area input[type="password"], 
.um-field-area input[type="email"] {
    background: #333 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    padding: 12px !important;
    border-radius: 4px !important;
}
.um-field-area input:focus { border-color: var(--primary-color) !important; }
.um-button {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.um-button:hover { background: #ff0a16 !important; transform: scale(1.02) !important; }
.um-col-alt a { color: var(--muted-text) !important; font-size: 13px !important; }
.um-col-alt a:hover { color: #fff !important; text-decoration: underline !important; }

/* Social Login Styling */
.social-login-wrap .mo-openid-login-container { margin: 0 !important; }
.social-login-wrap .mo-openid-app-icons { display: flex !important; justify-content: center !important; gap: 15px !important; }
.social-login-wrap .mo-openid-app-icons a { 
    width: 45px !important; 
    height: 45px !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    background: #fff !important; 
    transition: transform 0.2s ease !important;
}
.social-login-wrap .mo-openid-app-icons a:hover { transform: translateY(-3px) !important; }

/* Specific Google Button Styling */
.social-login-wrap .mo-openid-app-icons a[title*="Google"],
.social-login-wrap .mo-openid-app-icons a[aria-label*="Google"] {
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
.social-login-wrap .mo-openid-app-icons a[title*="Google"]:hover {
    background: #f8f8f8 !important;
    border-color: #ccc !important;
}

/* --- Footer --- */
.site-footer { padding: 80px 0 40px; border-top: 1px solid #222; margin-top: 100px; color: var(--muted-text); font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 30px; margin-bottom: 20px; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 10px 20px; font-size: 13px; }
    .site-footer { padding: 40px 0 30px; margin-top: 60px; }
}
