@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    background-color: #121d2b;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.light-mode {
    background-color: #f8fafc;
    color: #1e293b;
}

.light-mode .card-bg {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.light-mode nav {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

.light-mode .hamburger-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #e2e8f0;
}

.light-mode input {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.light-mode .modal-content {
    background-color: #ffffff;
    color: #1e293b;
}

.card-bg {
    background-color: #243343;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s, border-color 0.3s;
}

.yes-btn {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.no-btn {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.nav-text {
    color: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-scroll::-webkit-scrollbar {
    width: 3px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #243343;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}

.light-mode .custom-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.light-mode .custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

.accent-green {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.accent-red {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.accent-blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
}

.accent-blue:hover {
    opacity: 0.8;
}

.selected-blue {
    background-color: #1d4ed8 !important;
    color: white !important;
    border-color: #1d4ed8 !important;
}

.range-btn {
    transition: all 0.2s ease;
}

.range-btn:active {
    transform: scale(0.95);
}

.scala-value-indicator {
    background: #3b82f6;
    color: white;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    min-width: 45px;
    text-align: center;
}

.hamburger-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: rgba(36, 51, 67, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger-menu.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.overlay.active {
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #243343;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.dark-mode-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.dark-mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dark-mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    border-radius: 34px;
    transition: .4s;
}

.dark-mode-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .dark-mode-slider {
    background-color: #3b82f6;
}

input:checked + .dark-mode-slider:before {
    transform: translateX(32px);
}

.mobile-auth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-auth-buttons {
        display: none;
    }
}

.mobile-auth-btn {
    font-size: 11px;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s;
}

.mobile-login-btn {
    border: 1px solid #475569;
    background-color: transparent;
}

.mobile-signup-btn {
    background-color: #3b82f6;
    border: 1px solid #2563eb;
}

.mobile-login-btn:hover {
    background-color: #334155;
}

.mobile-signup-btn:hover {
    background-color: #2563eb;
}

nav .nav-container,
main {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1280px) {
    nav .nav-container,
    main {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (min-width: 1024px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

@media (min-width: 1280px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.input-with-icon input {
    padding-left: 45px;
    width: 100%;
}

.odds-badge {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #334155;
}

.binary-odds-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
}

.scala-odds-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    background-color: #1e293b;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.search-input:focus {
    border-color: #3b82f6;
    outline: none;
}

.binary-yes-btn {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    position: relative;
}

.binary-no-btn {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    position: relative;
}

.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.clickable-card::after {
    content: 'Click to view details →';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: #60a5fa;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-card:hover::after {
    opacity: 1;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.referral-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.referral-badge:hover {
    transform: scale(1.05);
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #243343;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}
