:root {
    --accent-color: #0071e3;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.backdrop-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.transition-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Component Overrides */
.search-input:focus {
    box-shadow: none;
}

/* Hover Effects */
.hover-accent {
    transition: all 0.2s ease;
}

.hover-accent:hover {
    background-color: var(--accent-color) !important;
    color: white !important;
}

/* Card Styles */
.game-card .card-cover {
    background-color: #f8f9fa; /* Fallback */
}

.game-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 2.5rem rgba(0,0,0,0.1) !important;
}

.game-card:hover .card-overlay {
    opacity: 1 !important;
}

.game-card:hover .card-cover img {
    transform: scale(1.08);
}

.transition-transform {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-opacity {
    transition: opacity 0.4s ease;
}

.drop-shadow {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.object-fit-cover {
    object-fit: cover;
}

/* Badge Tweaks */
.badge {
    font-weight: 500;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.user-icon {
    transition: color 0.2s ease;
}

.user-icon:hover {
    color: var(--accent-color) !important;
}

.nav-icon {
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-icon:hover {
    color: var(--accent-color) !important;
}

/* Modal Styling */
.modal-backdrop.show {
    opacity: 0.8;
    backdrop-filter: blur(5px);
}

.search-modal-input {
    font-size: 1.25rem;
}

/* Footer */
.hover-link {
    transition: color 0.2s ease;
}

.hover-link:hover {
    color: var(--accent-color) !important;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --light-gray: #1e293b;
    --border-color: #334155;
}

/* Light mode specific badge styles for better contrast */
.hero-section {
    min-height: 400px;
    padding: 80px 0;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 100px 0;
    }
}

.hero-section .badge {
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .hero-section .badge {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .hero-section .gamepad-icon {
    color: #94a3b8 !important; /* Secondary text color in dark mode */
}

[data-bs-theme="dark"] body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #0f172a !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-bottom-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .hero-section,
[data-bs-theme="dark"] footer {
    border-color: var(--border-color) !important;
}

[data-bs-theme="dark"] .hero-bg {
    opacity: 0.1 !important;
}

[data-bs-theme="dark"] .game-card {
    background-color: #1e293b;
}

[data-bs-theme="dark"] .game-card .card-cover {
    background-color: #334155;
}

[data-bs-theme="dark"] .search-input,
[data-bs-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .search-modal-input {
    background-color: #334155 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .btn-white {
    background-color: #334155;
    color: #f8fafc;
}

[data-bs-theme="dark"] .btn-white:hover {
    background-color: #475569;
}
