/* ==========================================================================
   YADARA: THE SPACE BLOCKS - COSMIC DARK THEME CSS
   ========================================================================== */

:root {
    --bg-dark-core: #070913;
    --bg-dark-space: #0c0f24;
    --neon-cyan: #00f0ff;
    --neon-purple: #9d4edd;
    --neon-pink: #f72585;
    --neon-gold: #ffbe0b;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --glass-bg: rgba(14, 18, 42, 0.75);
    --glass-border: rgba(0, 240, 255, 0.28);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.yadara-cosmic-body {
    background-color: var(--bg-dark-core) !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(157, 78, 221, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(0, 240, 255, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(247, 37, 133, 0.15) 0%, transparent 45%) !important;
    color: var(--text-main) !important;
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Animated Stars */
.cosmic-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(1.5px 1.5px at 40px 60px, #ffffff, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 150px 220px, #00f0ff, rgba(0,0,0,0)),
                      radial-gradient(1px 1px at 300px 100px, #ffbe0b, rgba(0,0,0,0)),
                      radial-gradient(1.5px 1.5px at 450px 350px, #f72585, rgba(0,0,0,0));
    background-size: 450px 450px;
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.site-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphism Generic Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.yadara-header {
    position: sticky;
    top: 15px;
    margin: 15px auto 25px;
    width: calc(100% - 40px);
    max-width: 1160px;
    padding: 10px 24px;
    z-index: 999;
    border-radius: 60px;
}

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

.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.site-branding img {
    max-height: 40px;
    width: auto;
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 60%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Reset & Layout */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher Styling */
.lang-switcher-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    padding: 3px 10px;
    gap: 6px;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.lang-btn.active {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.3);
    text-shadow: 0 0 8px #00f0ff;
}

.lang-btn:hover {
    color: #00f0ff;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

/* Dual Language Display Rules (EN default, TR on toggle) */
body:not([data-active-lang="tr"]) .lang-tr {
    display: none !important;
}

body[data-active-lang="tr"] .lang-en {
    display: none !important;
}

.main-navigation ul,
.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    list-style-type: none !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation ul li,
.nav-menu li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

.main-navigation ul.sub-menu,
.main-navigation ul.children {
    display: none !important;
}

.main-navigation ul li a,
.nav-menu li a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.main-navigation ul li a:hover,
.nav-menu li a:hover,
.nav-menu li a.active {
    color: #ffffff !important;
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.header-cta-wrapper {
    flex-shrink: 0;
}

.btn-neon-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
    transition: all 0.3s ease;
}

.btn-neon-small:hover {
    transform: scale(1.05);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.75);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: 0.3s;
}

/* ==========================================================================
   CENTER GAME STAGE (HERO)
   ========================================================================== */
.game-stage-section {
    padding: 20px 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-stage-container {
    width: 100%;
    max-width: 960px;
}

.stage-header {
    margin-bottom: 24px;
}

.text-center {
    text-align: center;
}

.glow-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 45px rgba(157, 78, 221, 0.4);
    margin-bottom: 8px;
}

.glow-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Neon Game Frame */
.cosmic-game-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 560px;
    background: #05060d;
    border: 2px solid var(--neon-cyan);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.3), inset 0 0 35px rgba(0, 240, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Cyber Corners */
.frame-cyber-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 10;
    pointer-events: none;
}
.frame-cyber-corner.top-left { top: 6px; left: 6px; border-top: 3px solid var(--neon-pink); border-left: 3px solid var(--neon-pink); }
.frame-cyber-corner.top-right { top: 6px; right: 6px; border-top: 3px solid var(--neon-pink); border-right: 3px solid var(--neon-pink); }
.frame-cyber-corner.bottom-left { bottom: 44px; left: 6px; border-bottom: 3px solid var(--neon-pink); border-left: 3px solid var(--neon-pink); }
.frame-cyber-corner.bottom-right { bottom: 44px; right: 6px; border-bottom: 3px solid var(--neon-pink); border-right: 3px solid var(--neon-pink); }

/* Game Cover Overlay */
.game-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    background: radial-gradient(circle at center, rgba(18, 25, 60, 0.92) 0%, rgba(5, 7, 18, 0.98) 100%),
                repeating-linear-gradient(45deg, rgba(0, 240, 255, 0.025) 0px, rgba(0, 240, 255, 0.025) 20px, transparent 20px, transparent 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    text-align: center;
    padding: 20px;
}

.cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.game-cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.cosmic-planet-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 0 15px var(--neon-purple));
}

.cover-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cover-desc {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 6px;
}

/* Big Pulse Play Button */
.btn-play-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #00f0ff 0%, #7928ca 50%, #ff0080 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.6), 0 0 70px rgba(121, 40, 202, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-play-trigger:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 0 55px rgba(0, 240, 255, 0.95), 0 0 95px rgba(255, 0, 128, 0.65);
}

.pulse-glow {
    animation: neonPulse 2s infinite;
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.5); }
    50% { box-shadow: 0 0 50px rgba(0, 240, 255, 0.9), 0 0 70px rgba(157, 78, 221, 0.6); }
    100% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.5); }
}

.cover-meta-info {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cover-meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-cyan { color: var(--neon-cyan); }
.text-gold { color: var(--neon-gold); }
.text-purple { color: var(--neon-purple); }

/* Game Active Viewport & Iframe */
.game-active-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    background: #000;
}

.game-active-viewport iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #070913;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 2;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
}

.spinner-orbit {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 240, 255, 0.2);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spinOrbit 1s linear infinite;
}

@keyframes spinOrbit {
    to { transform: rotate(360deg); }
}

/* Bottom Game Control Bar */
.game-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(10, 14, 30, 0.95);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 10;
}

.status-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 6px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px 10px;
    transition: 0.2s;
}

.ctrl-btn:hover {
    color: var(--neon-cyan);
    transform: scale(1.1);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
    padding: 50px 20px;
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid var(--neon-purple);
    border-radius: 20px;
    color: var(--neon-purple);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff !important;
    margin-bottom: 40px;
}

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

.feature-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
}

.feature-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-icon-box.cyan-glow { background: rgba(0, 240, 255, 0.12); color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
.feature-icon-box.purple-glow { background: rgba(157, 78, 221, 0.12); color: var(--neon-purple); box-shadow: 0 0 20px rgba(157, 78, 221, 0.3); }
.feature-icon-box.gold-glow { background: rgba(255, 190, 11, 0.12); color: var(--neon-gold); box-shadow: 0 0 20px rgba(255, 190, 11, 0.3); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff !important;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER & DOWNLOAD BADGES
   ========================================================================== */
.yadara-footer {
    margin-top: auto;
    padding: 40px 20px 20px;
    background: rgba(5, 7, 15, 0.92);
    border-top: 1px solid rgba(0, 240, 255, 0.15);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.download-cta-box {
    padding: 35px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.cta-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff !important;
    margin-bottom: 6px;
}

.cta-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 480px;
}

.store-badges-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.store-badge-btn i {
    font-size: 2rem;
}

.store-badge-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
}

.google-play-btn i { color: #00f0ff; }
.app-store-btn i { color: #ffffff; }

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-sub {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: #94a3b8;
}

.badge-main {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-coming-soon {
    opacity: 0.65;
    cursor: not-allowed;
}

.footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding-top: 20px;
}

.footer-logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-social-links {
    display: flex;
    gap: 16px;
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1 !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: 0.3s;
}

.footer-social-links a:hover {
    color: var(--neon-cyan) !important;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
}

.footer-links-list {
    display: flex !important;
    list-style: none !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links-list li {
    list-style: none !important;
    margin: 0 !important;
}

.footer-links-list a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: 0.2s;
}

.footer-links-list a:hover {
    color: var(--neon-cyan) !important;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.8rem;
}

/* ==========================================================================
   GENERIC PAGE TEMPLATE
   ========================================================================== */
.page-content-main {
    padding: 40px 20px 80px;
}

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

.single-page-article {
    padding: 40px;
}

.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.entry-content h2, .entry-content h3 {
    font-family: var(--font-heading);
    color: var(--neon-cyan) !important;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 18px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
    .yadara-header {
        width: calc(100% - 20px);
        padding: 10px 18px;
        top: 8px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 75px;
        left: 10px;
        width: calc(100% - 20px);
        background: rgba(12, 15, 36, 0.98);
        border: 1px solid var(--neon-cyan);
        border-radius: var(--radius-lg);
        flex-direction: column !important;
        padding: 25px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    }

    .main-navigation.is-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-navigation ul,
    .nav-menu {
        flex-direction: column !important;
        width: 100%;
        text-align: center;
        gap: 15px !important;
    }

    .cosmic-game-frame {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .download-cta-box {
        flex-direction: column;
        text-align: center;
    }

    .store-badges-group {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   1.1.0 ADDITIONS: web demo note, developer link, contact page
   ========================================================================== */
.cover-meta-info {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
}

.cover-full-game {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.cover-full-game a,
.footer-developer a,
.contact-page a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.4);
}

.cover-full-game a:hover,
.footer-developer a:hover,
.contact-page a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.footer-developer {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-grid .feature-card p {
    margin-bottom: 6px;
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}
