/* ═══════════════════════════════════════════════════════════════════════════════
   PRIME ROYALE - GENESIS HOME SCREEN THEME
   Hexagonal Command Center Design
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   1. HEXAGONAL BACKGROUND PATTERN
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-home {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 120% 100% at 50% 0%, rgba(0, 60, 40, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 80, 50, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #030a08 0%, #0a1f15 50%, #051510 100%);
    overflow: hidden;
}

/* Hexagonal Grid Pattern */
.genesis-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 17.32v34.64L30 69.28 0 51.96V17.32L30 0zm0 104L60 86.68V52.04L30 34.72 0 52.04v34.64L30 104z' fill='%23166534' fill-opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Glowing Lines Effect */
.genesis-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(34, 197, 94, 0.03) 50%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(34, 197, 94, 0.03) 50%, transparent 50.5%);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. CENTRAL HEXAGON DISPLAY
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.genesis-hexagon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.genesis-hexagon {
    position: relative;
    width: 180px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.genesis-hexagon:hover {
    transform: translateY(-10px) scale(1.05);
}

.genesis-hexagon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(180deg,
        rgba(22, 101, 52, 0.8) 0%,
        rgba(20, 83, 45, 0.9) 50%,
        rgba(15, 60, 35, 0.95) 100%);
    border: 2px solid rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
}

.genesis-hexagon:hover .genesis-hexagon-bg {
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0.9) 0%,
        rgba(22, 163, 74, 0.95) 50%,
        rgba(21, 128, 61, 1) 100%);
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow:
        0 0 30px rgba(34, 197, 94, 0.3),
        inset 0 0 30px rgba(34, 197, 94, 0.1);
}

/* Center hexagon (featured) - larger */
.genesis-hexagon.featured {
    width: 220px;
    height: 240px;
    z-index: 5;
}

.genesis-hexagon.featured .genesis-hexagon-bg {
    background: linear-gradient(180deg,
        rgba(120, 80, 0, 0.8) 0%,
        rgba(80, 50, 0, 0.9) 50%,
        rgba(50, 30, 0, 0.95) 100%);
    border-color: rgba(255, 200, 50, 0.6);
}

.genesis-hexagon.featured:hover .genesis-hexagon-bg {
    background: linear-gradient(180deg,
        rgba(150, 100, 0, 0.9) 0%,
        rgba(100, 70, 0, 0.95) 50%,
        rgba(70, 50, 0, 1) 100%);
    border-color: rgba(255, 220, 100, 0.8);
    box-shadow:
        0 0 40px rgba(255, 200, 50, 0.4),
        inset 0 0 40px rgba(255, 200, 50, 0.15);
}

.genesis-hexagon-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.genesis-hexagon-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.genesis-hexagon.featured .genesis-hexagon-icon {
    font-size: 64px;
    color: #fbbf24;
}

.genesis-hexagon-label {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. SEASON BANNER
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-season-banner {
    text-align: center;
    margin-bottom: 30px;
}

.genesis-season-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        0 0 30px rgba(34, 197, 94, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Audiowide', 'Orbitron', sans-serif;
    margin: 0 0 10px 0;
}

.genesis-season-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-family: 'Roboto Mono', monospace;
}

.genesis-season-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.genesis-season-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. TODAY'S GOAL PANEL
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-goal-panel {
    background: linear-gradient(135deg,
        rgba(20, 60, 40, 0.7) 0%,
        rgba(15, 45, 30, 0.8) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

.genesis-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.genesis-goal-title {
    font-size: 14px;
    font-weight: bold;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.genesis-goal-timer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.genesis-mission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
}

.genesis-mission-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.genesis-mission-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.genesis-mission-text h4 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.genesis-mission-text p {
    margin: 4px 0 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.genesis-mission-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.genesis-mission-btn:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   5. ACTIVE DECK INDICATOR
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-active-deck {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 20px;
}

.genesis-active-deck-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.genesis-active-deck-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.genesis-active-deck-icon {
    color: #4ade80;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. CONTINUE BUTTON
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-continue-btn {
    padding: 16px 80px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 2px solid rgba(74, 222, 128, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Audiowide', sans-serif;
    box-shadow:
        0 4px 20px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.genesis-continue-btn:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-color: rgba(134, 239, 172, 0.7);
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   7. SIDEBAR PANELS
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-sidebar {
    position: fixed;
    top: 70px;
    width: 280px;
    height: calc(100vh - 140px);
    background: linear-gradient(180deg,
        rgba(10, 30, 20, 0.95) 0%,
        rgba(5, 20, 15, 0.98) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    z-index: 100;
}

.genesis-sidebar-left {
    left: 20px;
}

.genesis-sidebar-right {
    right: 20px;
}

.genesis-sidebar-section {
    margin-bottom: 20px;
}

.genesis-sidebar-title {
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.genesis-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.genesis-menu-item:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #fff;
}

.genesis-menu-item.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.2) 100%);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.genesis-menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   8. LEADERBOARD PANEL
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-leaderboard {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.genesis-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.genesis-leaderboard-item.top-3 {
    background: linear-gradient(90deg, rgba(255, 200, 50, 0.15) 0%, transparent 100%);
}

.genesis-leaderboard-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
}

.genesis-leaderboard-rank.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.genesis-leaderboard-rank.silver {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #000;
}

.genesis-leaderboard-rank.bronze {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #000;
}

.genesis-leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.genesis-leaderboard-name {
    flex: 1;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genesis-leaderboard-score {
    font-size: 13px;
    font-weight: bold;
    color: #4ade80;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   9. NEWS FEED
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-news-feed {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.genesis-news-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.genesis-news-item:last-child {
    border-bottom: none;
}

.genesis-news-tag {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

.genesis-news-tag.new { background: #22c55e; color: #000; }
.genesis-news-tag.hot { background: #ef4444; color: #fff; }
.genesis-news-tag.sys { background: #6b7280; color: #fff; }
.genesis-news-tag.top { background: #a855f7; color: #fff; }

.genesis-news-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   10. BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════════ */

.genesis-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(180deg,
        rgba(10, 30, 20, 0.95) 0%,
        rgba(5, 20, 15, 0.98) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    z-index: 100;
}

.genesis-nav-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.genesis-nav-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #fff;
}

.genesis-nav-btn.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: rgba(74, 222, 128, 0.5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.genesis-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   11. RESPONSIVE - MOBILE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .genesis-sidebar {
        display: none;
    }

    .genesis-center {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .genesis-hexagon-container {
        flex-direction: column;
        gap: 15px;
    }

    .genesis-hexagon {
        width: 140px;
        height: 160px;
    }

    .genesis-hexagon.featured {
        width: 180px;
        height: 200px;
        order: -1;
    }

    .genesis-hexagon-icon {
        font-size: 36px;
    }

    .genesis-hexagon.featured .genesis-hexagon-icon {
        font-size: 48px;
    }

    .genesis-season-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .genesis-continue-btn {
        padding: 14px 50px;
        font-size: 16px;
    }

    .genesis-bottom-nav {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
        justify-content: center;
    }

    .genesis-nav-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   12. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes hexagonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
    }
}

.genesis-hexagon-bg {
    animation: hexagonPulse 3s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.genesis-hexagon.featured {
    animation: floatUp 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.genesis-season-title {
    animation: glowPulse 2s ease-in-out infinite;
}
