/*
Theme Name: XNXXArabic Imperial
Theme URI: https://xnxxarabic.com
Author: Antigravity
Author URI: https://google.com
Description: A unique, premium Arabic WordPress theme with a Royal Purple & Gold aesthetic. Features high-performance dark mode, RTL support, and glassmorphism.
Version: 3.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xnxxarabic
Tags: rtl-language-support, custom-post-types, dark-mode, video-centric, premium
*/

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
    --primary:      #ff2d55; /* Premium Crimson Red */
    --primary-dim:  #e11d48;
    --primary-glow: rgba(255, 45, 85, 0.3);
    --gold:         #fbbf24; /* Imperial Gold */
    --gold-dim:     #d97706;
    --bg:           #0a0a0c;
    --bg2:          #111114;
    --bg3:          #16161a;
    --card:         #121217;
    --card2:        #1a1a22;
    --border:       rgba(255,255,255,0.05);
    --border-glow:  rgba(255, 45, 85, 0.2);
    --text:         #f3f4f6;
    --text-dim:     #9ca3af;
    --text-muted:   #4b5563;
    --font:         'Cairo', 'Segoe UI', Arial, sans-serif;
    --radius:       12px;
    --radius-lg:    20px;
    --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
    --shadow:       0 8px 32px rgba(0,0,0,0.7);
    --glass:        rgba(15, 15, 20, 0.85);
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    direction: rtl;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: 4px; border: 2px solid var(--bg); }

/* ─── HEADER ────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.site-header.scrolled {
    height: 64px;
    background: rgba(10, 10, 12, 0.95);
}
.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-image {
    height: 60px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.3s;
}
.logo-link:hover .logo-image { transform: rotate(5deg) scale(1.1); }
.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.header-search { flex: 1; max-width: 520px; }
.header-search form {
    display: flex;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
}
.header-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: var(--bg3);
}
.header-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 12px 20px;
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    direction: rtl;
}
.header-search button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    border: none;
    padding: 0 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.header-search button:hover { 
    filter: brightness(1.2);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
}
.header-nav { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    flex-shrink: 0;
}
.header-nav a {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s;
}
.header-nav a:hover,
.header-nav a.active {
    color: #fff;
    background: var(--primary-glow);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: auto;
}
.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 20px;
    gap: 10px;
    box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text);
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.mobile-search {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.mobile-search input {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    font-family: var(--font);
    outline: none;
}
.mobile-search button {
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #fff;
    padding: 12px 24px;
    font-weight: 800;
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #050505;
    border: 1px solid var(--border);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--primary-glow), transparent 60%),
        linear-gradient(135deg, #0a0a0c 0%, #111114 100%);
}
.hero-content { position: relative; z-index: 2; padding: 25px 30px; max-width: 800px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-glow);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 0 15px var(--primary-glow);
}
.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ─── VIDEO GRID ────────────────────────────────────────────────────────── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.vcard-thumb {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.vcard:hover .vcard-thumb {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-glow);
    border-color: var(--primary-glow);
}
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.vcard:hover .vcard-thumb img { transform: scale(1.1); }

.vcard-duration {
    display: none !important;
}
.vcard-cat {
    display: none !important;
}
.vcard-new {
    position: absolute; top: 12px; left: 12px;
    background: var(--primary); color: #fff;
    padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 800;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.vcard-info { padding: 15px 5px; }
.vcard-title {
    font-size: 1rem; font-weight: 700; color: #fff;
    line-height: 1.4; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; height: 2.8em;
}
.vcard-meta { display: flex; align-items: center; gap: 15px; color: var(--text-muted); font-size: 0.8rem; }
.vmeta-views, .vmeta-likes { display: flex; align-items: center; gap: 5px; }
.vmeta-likes { color: #10b981; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--border-glow);
    padding: 80px 0 40px;
    margin-top: 100px;
}
.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}
.footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.footer-logo-img { height: 50px; width: auto; border-radius: 12px; box-shadow: 0 0 20px var(--primary-glow); }
.footer-logo span { font-size: 1.8rem; font-weight: 900; color: #fff; }
.footer-tagline { color: var(--text-muted); line-height: 1.8; margin-bottom: 30px; }

.footer-links h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); transform: translateX(-5px); display: inline-block; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px; margin-top: 60px;
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .header-nav { display: none; }
    .mobile-toggle { display: flex; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
    .header-search { display: none; }
    .logo-text { font-size: 1.3rem; }
    .logo-image { height: 36px; }
    .header-inner { padding: 0 15px; height: 64px; }
    .hero-content { padding: 20px 15px; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ─── FEATURED PROMO SLOTS ─────────────────────────────────────────────────── */
.featured-partner-box {
    margin: 24px auto;
    width: 100%;
    max-width: 970px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.partner-link-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    position: relative;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.partner-link-container:hover {
    background: rgba(255, 45, 85, 0.04);
    border-color: rgba(255, 45, 85, 0.3);
    box-shadow: 0 10px 30px rgba(255, 45, 85, 0.15);
    transform: translateY(-2px);
}

.partner-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.partner-link-container:hover .partner-badge {
    color: var(--gold);
    border-color: rgba(251, 191, 36, 0.2);
}

.partner-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.partner-ico {
    font-size: 1.25rem;
    animation: pulsePartnerIco 2s infinite alternate;
}

.partner-msg {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    transition: color 0.3s;
}

.partner-link-container:hover .partner-msg {
    color: #fff;
}

@keyframes pulsePartnerIco {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.2)); }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6)); }
}

/* Index Hero Specific Promo Styling */
.hero-highlight-wrap {
    margin-top: 20px;
    width: 100%;
}
.hero-highlight-wrap .partner-link-container {
    min-height: 70px;
    padding: 10px;
    background: rgba(255, 45, 85, 0.03);
    border: 1px solid rgba(255, 45, 85, 0.15);
    backdrop-filter: blur(10px);
}
.hero-highlight-wrap .partner-link-container:hover {
    background: rgba(255, 45, 85, 0.08);
    border-color: rgba(255, 45, 85, 0.4);
    box-shadow: 0 12px 35px var(--primary-glow);
}

/* ─── PAGINATION ────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 45px auto 25px;
    padding: 15px 0;
    flex-wrap: wrap;
    width: 100%;
}

.pagination a, 
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim) !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.pagination a:hover {
    background: rgba(255, 45, 85, 0.12);
    border-color: rgba(255, 45, 85, 0.4);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.25);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
    pointer-events: none;
}

.pagination .dots {
    background: none;
    border: none;
    cursor: default;
    color: var(--text-muted) !important;
}
