/*
Theme Name: Juan's Theme
Version: 2.0.1
*/

/* Import Minecraft Font */
@font-face {
    font-family: 'Minecraft';
    src: url('https://fonts.cdnfonts.com/s/2151/Minecraft.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #00a8ff;
    --secondary-color: #192a56;
    --accent-color: #fbc531;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --success-color: #4cd137;
    --danger-color: #e84118;
    --border-radius: 12px;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.theme-minecraft {
    --primary-color: #50C878;
    --secondary-color: #2d5016;
    --accent-color: #8B4513;
}

body.theme-cs2 {
    --primary-color: #ff6348;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.4s ease;
}

body {
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.92);
    z-index: -1;
}

/* Minecraft Theme Font - Apply to headings AND containers */
body.theme-minecraft h1,
body.theme-minecraft h2,
body.theme-minecraft h3,
body.theme-minecraft .game-content,
body.theme-minecraft .server-status,
body.theme-minecraft .product-card,
body.theme-minecraft .leaderboard-table,
body.theme-minecraft .info-box {
    font-family: 'Minecraft', 'Courier New', monospace;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* CS2 Theme Font - Tech Style */
body.theme-cs2 h1,
body.theme-cs2 h2,
body.theme-cs2 h3,
body.theme-cs2 .game-content {
    font-family: 'Rajdhani', 'Roboto Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP NAVIGATION */
.top-bar {
    background: rgba(15, 20, 35, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 30px;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* HORIZONTAL MENU */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.main-nav li {
    display: inline-block;
}

.main-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.5);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 26px;
    cursor: pointer;
    padding: 8px;
}

/* GAME TABS */
.game-tabs {
    background: rgba(10, 15, 25, 0.8);
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-tabs-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.game-tab {
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 15px;
}

.game-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.game-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.4);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 168, 255, 0.08) 0%, transparent 100%);
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* SERVER STATUS */
.server-status {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 50px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--card-shadow);
}

.server-status h2 {
    font-size: 32px;
    margin-bottom: 28px;
    text-align: center;
}

.server-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.server-ip input {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    min-width: 280px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.copy-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.5);
}

.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.info-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 28px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-box h3 {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.info-box p {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

/* SHOP SECTIONS - Separate for Minecraft and CS2 */
.shop-preview {
    padding: 80px 0;
}

.shop-preview h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 56px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 168, 255, 0.3);
}

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

.product-card-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 32px;
    text-align: center;
}

.product-card h3 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.product-card .price {
    font-size: 40px;
    font-weight: 900;
    color: var(--accent-color);
}

.product-card-body {
    padding: 32px;
}

.product-features {
    list-style: none;
    margin: 24px 0;
}

.product-features li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
}

.product-features li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 12px;
    font-size: 18px;
}

/* LEADERBOARD */
.leaderboard-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.leaderboard-table th {
    padding: 18px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.leaderboard-table td {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* FOOTER */
.site-footer {
    background: rgba(5, 8, 16, 0.95);
    padding: 60px 0 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    padding: 10px 0;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s;
    padding: 0;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
    padding-left: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    font-size: 14px;
}

/* STATUS DOTS */
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-dot 2s infinite;
}

.status-dot.online {
    background: var(--success-color);
    box-shadow: 0 0 12px var(--success-color);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.status-dot.offline {
    background: var(--danger-color);
}

/* SECTION VISIBILITY - FIXED */
/* Default: Show only Minecraft sections */
.minecraft-only { display: block; }
.cs2-only { display: none; }

/* When CS2 theme is active: Show only CS2 sections */
body.theme-cs2 .minecraft-only { display: none; }
body.theme-cs2 .cs2-only { display: block; }

/* Server sections */
.minecraft-server-section { display: block; }
.cs2-server-section { display: none; }
body.theme-cs2 .minecraft-server-section { display: none; }
body.theme-cs2 .cs2-server-section { display: block; }

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 20, 35, 0.98);
        backdrop-filter: blur(30px);
        padding: 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .main-nav.active { display: block; }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 16px 20px;
        text-align: center;
    }

    .mobile-menu-toggle { display: block; }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }

    .server-ip {
        flex-direction: column;
    }

    .server-ip input {
        width: 100%;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.player-stats {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}
