/* Modern Color Palette & Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
    --background: #0f172a;
    --surface: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Base Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modern Card Design */
.card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Hero Section Enhancement */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    position: relative;
    color: white;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    pointer-events: none;
}

/* Custom Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: scale(1.02);
}

/* Sidebar Dashboard styles */
.sidebar {
    background: var(--surface) !important;
    min-height: calc(100vh - 56px);
    border-right: 1px solid var(--glass-border);
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    margin: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.sidebar .nav-link.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Gamification Elements */
.badge-gaming {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.points-display {
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    color: #451a03;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 800;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Soft Backgrounds */
.bg-primary-soft { background-color: rgba(99, 102, 241, 0.1) !important; }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-danger-soft { background-color: rgba(239, 68, 68, 0.1) !important; }
.bg-info-soft { background-color: rgba(6, 182, 212, 0.1) !important; }
.bg-light-soft { background-color: #f1f5f9; }

[data-theme="dark"] .bg-light-soft { background-color: #1e293b; }

/* Typography */
.fw-800 { font-weight: 800; }

/* Utilities */
.hover-scale {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-scale:hover {
    transform: scale(1.05);
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
}

.hover-bg-light:hover {
    background-color: var(--background);
}

.extra-small {
    font-size: 0.75rem;
}

.text-decoration-line-through {
    text-decoration: line-through !important;
}

/* Spin Wheel Styling */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid var(--surface);
    box-shadow: var(--card-shadow);
    transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
}

/* Mobile Bottom Menu */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    z-index: 1050;
    padding: 0.5rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.25rem;
    transition: all 0.2s;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-bottom-nav .nav-link.active {
    color: var(--primary);
}

.mobile-bottom-nav .nav-link.active i {
    transform: scale(1.1);
}

/* Media Queries */
@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to body so content isn't hidden behind fixed menu */
    body {
        padding-bottom: 70px;
    }
}

