/* Custom styles for Loadout Labs */

/* Custom font */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap');

body {
    font-family: 'Exo 2', sans-serif;
    background-image: radial-gradient(circle at center, #1f2937 0%, #111827 100%);
}

/* Button styles - IMPROVED */
.class-btn, .subclass-btn, .activity-btn {
    @apply w-full flex justify-center items-center py-3 px-4 rounded text-center transition-colors;
    min-height: 2.5rem;
    white-space: nowrap;
}

/* Button active state styles - IMPROVED */
.class-btn.active, .activity-btn.active {
    @apply bg-amber-500 text-black font-bold shadow-md border-2 border-amber-300;
}

/* Subclass colors when active - IMPROVED */
.subclass-btn[data-subclass="Solar"].active {
    @apply bg-red-600 text-white font-bold shadow-md border-2 border-red-400;
}

.subclass-btn[data-subclass="Arc"].active {
    @apply bg-blue-600 text-white font-bold shadow-md border-2 border-blue-400;
}

.subclass-btn[data-subclass="Void"].active {
    @apply bg-purple-700 text-white font-bold shadow-md border-2 border-purple-400;
}

/* Button hover states - IMPROVED */
.class-btn:hover, .activity-btn:hover {
    @apply bg-amber-700 text-white;
}

.subclass-btn[data-subclass="Solar"]:hover {
    @apply bg-red-700 text-white;
}

.subclass-btn[data-subclass="Arc"]:hover {
    @apply bg-blue-700 text-white;
}

.subclass-btn[data-subclass="Void"]:hover {
    @apply bg-purple-800 text-white;
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #f59e0b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Result card hover effect */
.result-card {
    transition: transform 0.2s ease-in-out;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Fancy background for header */
header {
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.postimg.cc/T3qHSgJB/destiny-header-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 1;
}
/* Fix for UI issues - Add to the end of styles.css */

/* Adjust the Guardian Class buttons container for better spacing */
.bg-gray-700 .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem; /* Reduce gap between buttons */
}

/* Make buttons more responsive with better width control */
.class-btn, .subclass-btn, .activity-btn {
    width: 100%;
    min-width: 0; /* Prevent overflow by allowing shrinking */
    padding: 0.75rem 0.5rem; /* Adjust padding to be more compact */
    transition: all 0.2s ease;
    font-size: 0.9rem; /* Slightly reduce font size if needed */
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Improved button active states - Make sure they show when SELECTED */
.class-btn.active {
    background-color: #f59e0b !important; /* amber-500 */
    color: #000 !important;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #fcd34d !important; /* amber-300 */
}

.activity-btn.active {
    background-color: #f59e0b !important; /* amber-500 */
    color: #000 !important;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #fcd34d !important; /* amber-300 */
}

/* Fix subclass button active states */
.subclass-btn[data-subclass="Solar"].active {
    background-color: #dc2626 !important; /* red-600 */
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #f87171 !important; /* red-400 */
}

.subclass-btn[data-subclass="Arc"].active {
    background-color: #2563eb !important; /* blue-600 */
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #60a5fa !important; /* blue-400 */
}

.subclass-btn[data-subclass="Void"].active {
    background-color: #7e22ce !important; /* purple-700 */
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid #c084fc !important; /* purple-400 */
}

/* Fix hover states for all buttons */
.class-btn:hover, .activity-btn:hover {
    background-color: #b45309 !important; /* amber-700 */
    color: #fff !important;
    transform: translateY(-1px);
}

/* Make sure subclass buttons have hover effects */
.subclass-btn[data-subclass="Solar"]:hover {
    background-color: #b91c1c !important; /* red-700 */
    color: #fff !important;
    transform: translateY(-1px);
}

.subclass-btn[data-subclass="Arc"]:hover {
    background-color: #1d4ed8 !important; /* blue-700 */
    color: #fff !important;
    transform: translateY(-1px);
}

.subclass-btn[data-subclass="Void"]:hover {
    background-color: #6b21a8 !important; /* purple-800 */
    color: #fff !important;
    transform: translateY(-1px);
}

/* Use !important to ensure these styles override any inline styles */
.bg-gray-600 {
    background-color: #4b5563 !important; /* gray-600 */
}
