/*
Theme Name: Nulls Brawl
Theme URI: https://nullsbrawl.tr
Author: Nulls Brawl Team
Author URI: https://nullsbrawl.tr
Description: A vibrant gaming theme for Nulls Brawl private server with animated backgrounds, app-landing-style single posts, SEO schema markup, hero sections, feature showcases, FAQs, and platform-specific category templates (APK, iOS, PC).
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nullsbrawl
Tags: gaming, dark, animated, one-page, custom-background, custom-header, custom-menu, featured-images, responsive-layout
*/

/* ============================================
   CSS Variables
============================================ */
:root {
    --primary-color: #ff0080;
    --secondary-color: #7928ca;
    --accent-color: #00d4ff;
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --section-padding: 100px;
    --container-width: 1200px;
    --border-radius: 20px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Animated Background
============================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    will-change: transform;
}

.animated-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 128, 0.3) 0%, transparent 50%);
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

/* ============================================
   Container
============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
============================================ */
header,
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

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

.logo,
.site-logo,
.site-branding a {
    font-family: var(--font-heading);
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Header logo image — proper fixed sizing */
.site-header .logo img,
.site-header .site-logo img,
.site-header .custom-logo-link img,
.site-header .custom-logo {
    max-width: 180px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    -webkit-text-fill-color: initial;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.nav-menu,
.primary-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a,
.primary-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after,
.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.primary-menu a:hover::after,
.nav-menu a.active::after,
.primary-menu .current-menu-item > a::after {
    width: 100%;
}

/* ============================================
   Hero Section
============================================ */
.hero {
    padding: clamp(60px, 15vw, 120px) 0;
    text-align: center;
    position: relative;
    background-image: url('https://nullsbrawl.tr/wp-content/uploads/2026/01/Characters.webp');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.95) 0%, rgba(124, 58, 237, 0.85) 50%, rgba(124, 58, 237, 0.6) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out;
}

.hero-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: slideDown 1s ease-out;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(16px, 4vw, 28px);
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

/* Platform Badge */
.platform-badge {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   Keyframe Animations
============================================ */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   Stats Boxes (Hero)
============================================ */
.stats-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 50px;
    animation: scaleIn 1s ease-out 0.4s backwards;
}

.stat-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    color: var(--secondary-color);
}

/* ============================================
   Featured Image (Hero)
============================================ */
.featured-image {
    margin: 60px 0 0 0;
    position: relative;
    animation: scaleIn 1s ease-out 0.6s backwards;
}

.featured-image img {
    width: 100%;
    max-width: 900px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

/* ============================================
   CTA Button
============================================ */
.cta-button {
    display: inline-block;
    padding: clamp(15px, 3vw, 20px) clamp(40px, 8vw, 60px);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(255, 0, 128, 0.5);
    transition: all 0.4s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    margin: 5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 0, 128, 0.7);
}

/* ============================================
   Section Title
============================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* ============================================
   Features Section
============================================ */
.features {
    padding: clamp(60px, 15vw, var(--section-padding)) 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.5) 0%, rgba(76, 29, 149, 0.3) 100%);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 60px;
    transition: all 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-image {
    flex: 0 0 50%;
    max-width: 600px;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.feature-box:hover .feature-image img {
    transform: scale(1.03);
    box-shadow: 0 25px 80px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-color);
}

.feature-content {
    flex: 1;
    padding: 20px;
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.3;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-content p {
    font-size: clamp(15px, 3vw, 18px);
    line-height: 1.8;
    opacity: 0.95;
    color: var(--text-light);
}

.feature-left { flex-direction: row; }
.feature-right { flex-direction: row-reverse; }

/* ============================================
   Stats Section
============================================ */
.stats {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h2 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: clamp(14px, 3vw, 18px);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   Installation Guide (APK)
============================================ */
.install-guide {
    padding: clamp(60px, 15vw, 100px) 0;
    background: rgba(255, 255, 255, 0.05);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Step boxes - APK style (centered, single column grid) */
.install-guide .step-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.install-guide .step-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.install-guide .step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 20px;
    color: white;
}

.install-guide .step-box h3 {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 15px;
    font-weight: 700;
}

.install-guide .step-box p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
    opacity: 0.9;
}

/* ============================================
   Custom Content Boxes (Why Choose)
============================================ */
.custom-boxes {
    padding: clamp(60px, 15vw, 100px) 0;
}

.content-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.content-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.content-box:hover {
    transform: scale(1.05);
}

.box-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.content-box h3 {
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-box p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.8;
    opacity: 0.9;
}

/* ============================================
   FAQ Section
============================================ */
.faq-section {
    padding: clamp(60px, 15vw, 100px) 0;
    background: rgba(0, 0, 0, 0.3);
}

.faq-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    font-size: clamp(18px, 4vw, 22px);
    margin-bottom: 15px;
    font-weight: 700;
    cursor: pointer;
}

.faq-answer {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.8;
    opacity: 0.9;
}

/* ============================================
   Emulator Cards (PC Page)
============================================ */
.emulators {
    padding: clamp(60px, 15vw, 100px) 0;
}

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

.emulator-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    text-align: center;
}

.emulator-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.emulator-logo {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.emulator-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 30px);
    margin-bottom: 15px;
    color: var(--accent-color);
}

.emulator-card p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.os-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.os-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
}

.rating {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 15px;
}

/* ============================================
   Guide Section - PC/iOS Steps
============================================ */
.guide-section {
    padding: clamp(60px, 15vw, 100px) 0;
    background: rgba(0, 0, 0, 0.3);
}

.guide-section .steps-container {
    display: grid;
    gap: 30px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.guide-section .step-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.guide-section .step-box:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.guide-section .step-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.step-content h3 {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 15px;
    font-weight: 700;
}

.step-content p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.8;
    opacity: 0.9;
}

.step-content ul {
    margin-top: 15px;
    padding-left: 20px;
    list-style: disc;
}

.step-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ============================================
   Advantages Section (PC Page)
============================================ */
.advantages {
    padding: clamp(60px, 15vw, 100px) 0;
}

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

.adv-item {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.adv-item:hover {
    transform: scale(1.05);
}

.adv-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.adv-item h3 {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 15px;
    font-weight: 700;
}

.adv-item p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
    opacity: 0.9;
}

/* ============================================
   System Requirements
============================================ */
.requirements {
    padding: clamp(60px, 15vw, 100px) 0;
    background: rgba(0, 0, 0, 0.3);
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.req-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* iOS requirements uses gradient bg instead */
.category-ios .req-item {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
}

.req-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.req-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.req-item p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ============================================
   Installation Methods (iOS Page)
============================================ */
.install-methods {
    padding: clamp(60px, 15vw, 100px) 0;
}

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

.method-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    text-align: center;
}

.method-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.method-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.method-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: 15px;
    color: var(--accent-color);
}

.method-card p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.difficulty-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.difficulty-badge.easy    { background: rgba(76, 175, 80, 0.3); }
.difficulty-badge.medium  { background: rgba(255, 152, 0, 0.3); }
.difficulty-badge.advanced { background: rgba(244, 67, 54, 0.3); }

/* ============================================
   Footer
============================================ */
footer,
.site-footer {
    padding: 40px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 60px;
}

footer p,
.site-footer p {
    font-size: clamp(14px, 3vw, 16px);
    margin-top: 10px;
}

/* ============================================
   WordPress Core Elements
============================================ */
.wp-block-image img {
    border-radius: var(--border-radius);
}

.entry-content p {
    font-size: clamp(15px, 3vw, 18px);
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    margin-top: 40px;
    text-transform: uppercase;
}

/* ============================================================
   SINGLE POST — App Landing Page Style
   All classes prefixed sp- (single-post)
============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.sp-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-bottom: 0;
    overflow: hidden;
}

.sp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 6, 30, 0.45) 0%,
        rgba(10, 6, 30, 0.70) 50%,
        rgba(10, 6, 30, 0.96) 100%
    );
    z-index: 0;
}

.sp-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 70px;
    max-width: 860px;
    text-align: left;
}

/* Breadcrumb */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sp-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity .2s;
}

.sp-breadcrumb a:hover { opacity: .7; }
.sp-breadcrumb__current { opacity: .9; }

/* Badges */
.sp-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.sp-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.sp-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, .4);
}

/* Hero title */
.sp-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5.5vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,.55);
    margin-bottom: 22px;
    animation: slideDown .9s ease-out;
}

/* Excerpt */
.sp-hero__excerpt {
    font-size: clamp(15px, 2.5vw, 20px);
    line-height: 1.65;
    opacity: .88;
    max-width: 680px;
    margin-bottom: 32px;
    animation: fadeIn 1s ease-out .2s backwards;
}

/* Meta row */
.sp-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: .85;
    animation: fadeIn 1s ease-out .35s backwards;
}

.sp-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-meta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    object-fit: cover;
}

.sp-meta-author__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-meta-author__name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.sp-meta-author__role {
    font-size: 12px;
    opacity: .7;
}

.sp-meta-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-meta-item svg { flex-shrink: 0; opacity: .7; }
.sp-meta-sep { opacity: .4; }
.sp-meta-updated { font-style: italic; opacity: .6; }

/* Scroll indicator */
.sp-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 2;
    opacity: .5;
}

.sp-scroll-indicator span {
    display: block;
    width: 2px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

.sp-scroll-indicator span:nth-child(2) { animation-delay: .2s; }
.sp-scroll-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes scrollBounce {
    0%, 100% { opacity: .2; transform: scaleY(1); }
    50%       { opacity: 1;  transform: scaleY(1.6); }
}

/* ── Download Strip ──────────────────────────────────────── */
.sp-dl-strip {
    background: linear-gradient(135deg, rgba(121,40,202,.9) 0%, rgba(255,0,128,.9) 100%);
    backdrop-filter: blur(10px);
    padding: 24px 0;
    position: sticky;
    top: 68px;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.sp-dl-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sp-dl-strip__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-dl-strip__headline {
    font-family: var(--font-heading);
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.sp-dl-strip__sub {
    font-size: 13px;
    opacity: .8;
    color: #fff;
}

.sp-dl-strip__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-dl-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    font-weight: 600;
}

.sp-dl-btn--apk {
    background: rgba(0,0,0,.3);
    border: 2px solid rgba(255,255,255,.3);
    color: #fff;
}

.sp-dl-btn--ios {
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    color: #fff;
}

.sp-dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    border-color: rgba(255,255,255,.7);
}

.sp-dl-btn__icon { font-size: 22px; }

.sp-dl-btn__label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sp-dl-btn__label small {
    font-size: 10px;
    opacity: .75;
    font-weight: 400;
}

/* ── Layout Grid ─────────────────────────────────────────── */
.sp-layout {
    padding: 64px 0 40px;
}

.sp-layout__container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* ── Table of Contents ───────────────────────────────────── */
.sp-toc {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 48px;
    border-left: 4px solid var(--accent-color);
}

.sp-toc__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.sp-toc__icon { font-size: 20px; }

.sp-toc__header strong {
    flex: 1;
    font-size: 16px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.sp-toc__toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    opacity: .7;
    padding: 4px;
    transition: transform .3s;
    display: flex;
}

.sp-toc__toggle.collapsed { transform: rotate(-90deg); }

.sp-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-toc__item a {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: color .2s, padding-left .2s;
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.sp-toc__item--h3 a {
    padding-left: 16px;
    font-size: 13px;
    opacity: .75;
}

.sp-toc__item a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

.sp-toc__item--h3 a:hover { padding-left: 22px; }

/* ── Article Content ─────────────────────────────────────── */
.sp-article {
    min-width: 0; /* prevent overflow */
}

.sp-content {
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.85;
    color: rgba(255,255,255,.93);
}

/* Typography inside content */
.sp-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 900;
    margin: 56px 0 20px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,.12);
}

.sp-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--accent-color);
}

.sp-content h4 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
    margin: 32px 0 14px;
    color: rgba(255,255,255,.9);
}

.sp-content p {
    margin-bottom: 24px;
}

.sp-content ul,
.sp-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-content ul { list-style: disc; }
.sp-content ol { list-style: decimal; }

.sp-content li {
    line-height: 1.7;
}

.sp-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity .2s;
}

.sp-content a:hover { opacity: .75; }

.sp-content blockquote {
    margin: 40px 0;
    padding: 28px 36px;
    border-left: 5px solid var(--primary-color);
    background: rgba(255,0,128,.1);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.7;
}

.sp-content blockquote p { margin: 0; }

.sp-content code {
    background: rgba(0,212,255,.15);
    border: 1px solid rgba(0,212,255,.25);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: .9em;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
}

.sp-content pre {
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 28px;
    overflow-x: auto;
    margin: 32px 0;
}

.sp-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255,255,255,.85);
}

.sp-content img {
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
    border: 2px solid rgba(255,255,255,.1);
    margin: 16px 0;
}

.sp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
}

.sp-content th {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.sp-content td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 15px;
}

.sp-content tr:nth-child(even) td {
    background: rgba(255,255,255,.04);
}

.sp-content tr:hover td {
    background: rgba(255,255,255,.07);
}

/* ── Tags ────────────────────────────────────────────────── */
.sp-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 48px 0 32px;
    padding-top: 32px;
    border-top: 2px solid rgba(255,255,255,.1);
}

.sp-tags__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .6;
    font-weight: 700;
}

.sp-tag {
    padding: 6px 16px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}

.sp-tag:hover {
    background: rgba(0,212,255,.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ── Share Buttons ───────────────────────────────────────── */
.sp-share {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.sp-share__label {
    font-size: 14px;
    font-weight: 600;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.sp-share__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    border: none;
    color: #fff;
}

.sp-share-btn:hover { transform: translateY(-3px) scale(1.08); }

.sp-share-btn--x   { background: #000; }
.sp-share-btn--fb  { background: #1877f2; }
.sp-share-btn--wa  { background: #25d366; }
.sp-share-btn--tg  { background: #229ed9; }
.sp-share-btn--copy {
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.25);
    font-size: 16px;
}

/* ── Author Box ──────────────────────────────────────────── */
.sp-author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 48px;
}

.sp-author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
}

.sp-author-box__name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sp-author-box__verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--accent-color);
    border-radius: 50%;
    color: #000;
    font-size: 11px;
    font-weight: 900;
}

.sp-author-box__bio {
    font-size: 15px;
    line-height: 1.7;
    opacity: .85;
}

/* ── Post Nav ────────────────────────────────────────────── */
.sp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.sp-post-nav__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: rgba(255,255,255,.07);
    border: 2px solid rgba(255,255,255,.12);
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    transition: background .25s, border-color .25s, transform .25s;
}

.sp-post-nav__item:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.sp-post-nav__item--next {
    text-align: right;
}

.sp-post-nav__dir {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .55;
    font-weight: 700;
}

.sp-post-nav__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255,255,255,.9);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sp-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-sidebar-card {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,.14);
    border-radius: 24px;
    padding: 28px;
    transition: border-color .3s;
}

.sp-sidebar-card:hover {
    border-color: rgba(255,255,255,.28);
}

.sp-sidebar-card--dl {
    background: linear-gradient(135deg, rgba(121,40,202,.35), rgba(255,0,128,.25));
    border-color: rgba(255,0,128,.35);
    text-align: center;
}

.sp-sidebar-card__icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.sp-sidebar-card__title {
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.sp-sidebar-card__text {
    font-size: 14px;
    opacity: .8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sp-sidebar-dl-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.sp-sidebar-dl-btn:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.5);
}

/* App info list */
.sp-app-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
}

.sp-app-info__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 14px;
}

.sp-app-info__item:last-child { border-bottom: none; }

.sp-app-info__icon { font-size: 18px; flex-shrink: 0; }

.sp-app-info__label {
    flex: 1;
    opacity: .65;
    font-size: 13px;
}

.sp-app-info__value {
    font-weight: 600;
    color: rgba(255,255,255,.9);
    text-align: right;
    font-size: 13px;
}

/* Related list */
.sp-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.sp-related-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sp-related-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.sp-related-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.sp-related-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sp-related-link {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.sp-related-link:hover { color: var(--accent-color); }

.sp-related-date {
    font-size: 12px;
    opacity: .55;
}

/* ── Bottom CTA ──────────────────────────────────────────── */
.sp-bottom-cta.hero {
    margin-top: 0;
}

/* ════════════════════════════════════════════════════════════
   SINGLE POST RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .sp-layout__container {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }
}

@media (max-width: 860px) {
    .sp-hero { min-height: 60vh; background-attachment: scroll; }
    .sp-hero__inner { padding-top: 90px; padding-bottom: 50px; }

    .sp-layout__container {
        grid-template-columns: 1fr;
    }

    .sp-sidebar {
        position: static;
        order: -1; /* sidebar above content on small screens */
    }

    .sp-sidebar-card--dl { order: 0; }

    .sp-dl-strip { position: static; }
    .sp-dl-strip__inner { flex-direction: column; text-align: center; }

    .sp-post-nav { grid-template-columns: 1fr; }
    .sp-post-nav__item--next { text-align: left; }

    .sp-author-box { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 560px) {
    .sp-hero__title { font-size: clamp(24px, 7vw, 36px); }
    .sp-meta-row { gap: 14px; }
    .sp-dl-strip__buttons { justify-content: center; }
    .sp-toc { padding: 20px; }
    .sp-content h2 { font-size: clamp(20px, 5vw, 28px); margin-top: 40px; }
    .sp-share { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Tablet Responsive
============================================ */
@media (max-width: 1024px) {
    .feature-box { gap: 40px; }
    .feature-content { padding: 10px; }
}

/* ============================================
   Mobile Responsive
============================================ */
@media (max-width: 768px) {
    :root { --section-padding: 60px; }

    .menu-toggle { display: flex; }

    .nav-menu,
    .primary-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 40px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active,
    .primary-menu.active {
        right: 0;
    }

    .nav-menu li,
    .primary-menu li {
        margin-bottom: 30px;
    }

    .nav-menu a,
    .primary-menu a {
        font-size: 20px;
        display: block;
        padding: 10px 0;
    }

    .hero {
        background-attachment: scroll;
        min-height: auto;
        padding: 60px 0;
    }

    .hero-logo img { max-width: 150px; }

    .stats-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 40px;
    }

    .stat-box { padding: 20px 15px; }
    .stat-icon { font-size: 28px; }
    .stat-label { font-size: 10px; }
    .stat-value { font-size: 20px; }

    /* Feature boxes - vertical on mobile */
    .features-list { gap: 50px; }

    .feature-box,
    .feature-left,
    .feature-right {
        flex-direction: column !important;
        gap: 30px;
    }

    .feature-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .feature-image img { border-radius: 15px; }

    .feature-content {
        padding: 0;
        text-align: center;
    }

    .feature-content h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .feature-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .steps-container,
    .content-boxes {
        grid-template-columns: 1fr;
    }

    .guide-section .step-box {
        flex-direction: column;
        text-align: center;
    }

    .emulator-grid { grid-template-columns: 1fr; }
    .methods-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }

    .feature-box,
    .step-box,
    .content-box {
        padding: 30px 20px;
    }

    .features-list { gap: 40px; }
    .feature-content h3 { font-size: 20px; }
    .feature-content p { font-size: 14px; line-height: 1.6; }
}

/* ============================================
   Reduced Motion
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
