/*
Theme Name: BeastUnits Crypto Gaming
Theme URI: https://beastunits.io
Description: Premium crypto gaming WordPress theme with NFT beasts, marketplace, and arena features
Version: 1.0.0
Author: BeastUnits Team
Author URI: https://beastunits.io
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beastunits
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ===========================
   RESET & BASE STYLES
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0e27;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ===========================
   COLOR VARIABLES
   =========================== */

:root {
    --primary: #ff6b35;
    --primary-dark: #ff8c42;
    --secondary: #00d4ff;
    --accent-purple: #9d4edd;
    --background: #0a0e27;
    --card-bg: #1a1f3a;
    --card-bg-light: #252d47;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 107, 53, 0.3);
    --glow-primary: rgba(255, 107, 53, 0.5);
    --glow-secondary: rgba(0, 212, 255, 0.3);
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--glow-secondary);
}

/* ===========================
   BUTTONS
   =========================== */

.btn, button, input[type="button"], input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary, button.primary, input[type="submit"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 0 15px var(--glow-primary), 0 0 30px rgba(255, 107, 53, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.5);
}

.btn-primary:hover, button.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.8), 0 0 50px rgba(255, 107, 53, 0.5);
}

.btn-secondary, button.secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover, button.secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    transform: translateY(-3px);
}

/* ===========================
   CONTAINER
   =========================== */

.container, .wp-container-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

header, .site-header {
    background: linear-gradient(180deg, rgba(26, 31, 58, 0.98) 0%, rgba(26, 31, 58, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-content, .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
}

.logo, .site-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo .accent, .site-title .accent {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow-primary);
}

nav, .main-navigation {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a, .main-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

nav a:hover, .main-navigation a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero, .hero-section, .page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    background-image: url('images/crypto-bg-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem;
}

.hero::before, .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.5);
    pointer-events: none;
}

.hero::after, .hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.2) 0%, transparent 50%), 
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content, .hero-section-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
}

.hero h1, .hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px var(--glow-primary), 0 0 40px var(--glow-secondary);
}

.hero h1 .accent, .hero-section h1 .accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p, .hero-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons, .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(0, 212, 255, 0.25));
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 0.65rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.1);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features, .features-section {
    padding: 6rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    background-image: url('images/crypto-symbols-pattern.png');
    background-size: 400px 400px;
    background-attachment: fixed;
    position: relative;
}

.features::before, .features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.features-title, .features-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.features-grid, .features-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* ===========================
   CARDS
   =========================== */

.crypto-card, .feature-card, .product-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.9) 0%, rgba(37, 45, 71, 0.9) 100%);
    border: 2px solid var(--border-color);
    border-radius: 0.65rem;
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.crypto-card::before, .feature-card::before, .product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.crypto-card:hover, .feature-card:hover, .product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6), 0 0 40px rgba(255, 107, 53, 0.3), inset 0 0 20px rgba(255, 107, 53, 0.1);
    transform: translateY(-8px);
}

.crypto-card:hover::before, .feature-card:hover::before, .product-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.feature-card p {
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===========================
   MARKETPLACE SECTION
   =========================== */

.shop, .marketplace {
    padding: 6rem 1rem;
    position: relative;
}

.shop::before, .marketplace::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.shop-title, .marketplace-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.shop-subtitle, .marketplace-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.125rem;
}

.shop-grid, .marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rarity {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-transform: capitalize;
}

.rarity.legendary {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rarity.epic {
    background: rgba(157, 78, 221, 0.3);
    color: #9d4edd;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

.rarity.rare {
    background: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.rarity.common {
    background: rgba(176, 176, 176, 0.3);
    color: #b0b0b0;
    box-shadow: 0 0 10px rgba(176, 176, 176, 0.3);
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* ===========================
   BEASTS SECTION
   =========================== */

.beasts, .beasts-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    background-image: url('images/crypto-symbols-pattern.png');
    background-size: 400px 400px;
    background-attachment: fixed;
}

.beasts h2, .beasts-section h2 {
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* ===========================
   FOOTER
   =========================== */

footer, .site-footer {
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    nav, .main-navigation {
        gap: 1rem;
    }

    nav a, .main-navigation a {
        font-size: 0.75rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn, button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero, .hero-section {
        min-height: 80vh;
    }

    .features-grid, .features-section-grid,
    .shop-grid, .marketplace-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons, .hero-actions {
        flex-direction: column;
    }
}

/* ===========================
   WORDPRESS SPECIFIC
   =========================== */

.wp-block-image {
    margin: 1rem 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.wp-caption {
    background: rgba(26, 31, 58, 0.9);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 0.65rem;
}

.wp-caption-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.accent {
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow-primary);
}

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

.text-secondary {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }
.pt-4 { padding-top: 4rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }
.pb-4 { padding-bottom: 4rem; }
