/* Custom Styles for Metropolis Roleplay - Matching In-Game UI */

/* Main body styling - dark theme like in-game */
body {
    background: #0f0f0f !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Scroll Animation for Partners */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Smooth page transitions */
.page-transition {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar - matching in-game style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #0066ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052cc;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid #0066ff;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form inputs - dark theme like in-game UI */
input, textarea, select {
    transition: all 0.2s;
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    color: #ffffff !important;
}

input::placeholder, textarea::placeholder {
    color: #6b7280 !important;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0066ff !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important;
}

/* Hover effects */
.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Active navigation highlight - matching in-game blue */
.nav-btn.active,
.mobile-nav-btn.active {
    background-color: #0066ff !important;
    color: white !important;
}

.nav-btn:hover,
.mobile-nav-btn:hover {
    background-color: rgba(0, 102, 255, 0.1) !important;
}

/* Cards and panels - dark theme */
.card-dark {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
}

.card-dark:hover {
    border-color: #0066ff;
    background: #1f1f1f;
}

/* Buttons - matching in-game style */
button, .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #0066ff;
    color: white;
}

.btn-primary:hover {
    background: #0052cc;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

/* Modal/Panel styling - matching jobcenter */
.modal-dark {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
}

/* Text colors */
.text-primary {
    color: #0066ff;
}

.text-secondary {
    color: #9ca3af;
}

/* Accent glow effect for important elements */
.glow-blue {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

.glow-blue:hover {
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
}

/* Category selection styling */
.category-option {
    transition: all 0.2s;
    cursor: pointer;
}

.category-option:hover {
    border-color: #0066ff !important;
    background: #1f1f1f !important;
}

/* Navigation bar - darker like sidebar */
nav {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a !important;
}

/* Success/Error states */
.bg-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.bg-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Stats and info boxes */
.stat-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-box:hover {
    border-color: #0066ff;
    transform: translateY(-2px);
}

/* Partner logos styling */
.partner-logo {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    transition: all 0.3s;
}

.partner-logo:hover {
    border-color: #0066ff;
    transform: translateY(-4px);
}

/* Badge/Tag styling */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-blue {
    background: rgba(0, 102, 255, 0.1);
    color: #0066ff;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

/* Priority colors for support system */
.priority-low { color: #10b981; }
.priority-normal { color: #0066ff; }
.priority-high { color: #f59e0b; }
.priority-urgent { color: #ef4444; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-dark {
        margin: 1rem;
    }
}
