:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Game Cards - Enhanced */
.game-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25) !important;
    border-color: rgba(102, 126, 234, 0.3);
}

.game-card .btn {
    transition: all 0.3s ease;
}

.game-card:hover .btn {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.game-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.game-card:hover .game-icon img {
    transform: scale(1.1) rotate(5deg);
}

/* Hero Section Animation */
.hero-section {
    animation: fadeInDown 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,.05) 10px,
        rgba(255,255,255,.05) 20px
    );
    pointer-events: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Inputs - Enhanced */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

/* Buttons - Enhanced */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Navbar - Enhanced */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Language Dropdown Fix */
.navbar .dropdown-menu {
    z-index: 1050 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .nav-item.dropdown {
    position: relative;
}

/* Footer */
footer {
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Card Animations */
.question-card {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    border-radius: 15px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Enhancements */
.alert {
    border-radius: 10px;
    border: none;
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
}

/* Gradient Button Hover Effect */
button[style*="gradient"]:hover,
.btn[style*="gradient"]:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4) !important;
}

/* Tab Navigation Styling */
.nav-pills .nav-link {
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Session Code Input Special Styling */
#session_code {
    transition: all 0.3s ease;
}

#session_code:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.5rem rgba(102, 126, 234, 0.25) !important;
    transform: scale(1.02);
}

/* Tab Content Animation */
.tab-pane {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styles */
.footer-gradient {
    position: relative;
    overflow: hidden;
}

.footer-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,.03) 10px,
        rgba(255,255,255,.03) 20px
    );
    pointer-events: none;
}

.footer-gradient a {
    transition: all 0.3s ease;
}

.footer-gradient a:hover {
    opacity: 1 !important;
    transform: translateX(5px);
}

.footer-gradient .btn-light:hover {
    transform: translateY(-3px) scale(1.1) !important;
}

/* Privacy Policy & Terms Pages */
.hero-section {
    animation: fadeInDown 0.6s ease-out;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}
