/* ===================================
   CUSTOM & SVG STYLES (Non-Tailwind)
   =================================== */

/* Smooth Scroll Logic (Tailwind handles basic scroll, this is for JS interaction) */
html {
    scroll-behavior: smooth;
}

/* SVG Box Styles - Specifics hard to do with utility classes */
.box-space {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.box-space[data-available="true"]:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    stroke: white;
    stroke-width: 3px;
}

.box-space.selected {
    stroke: #ffffff !important;
    stroke-width: 4px !important;
    filter: drop-shadow(0 0 15px var(--color-primary, #7000ff)) !important;
    animation: pulseBox 2s infinite;
}

.box-space.selected[data-type="A"] { fill: #7000ff !important; } /* Brand Primary */
.box-space.selected[data-type="B"] { fill: #00ff9d !important; } /* Brand Secondary */
.box-space.selected[data-type="C"] { fill: #ff0055 !important; } /* Brand Accent */

/* Unavailable Pattern */
.box-space[data-available="false"] {
    fill: #1a1a1a !important;
    stroke: #333 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

@keyframes pulseBox {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Custom Keyframes for Tailwind config extensions that might need specific tweaks */
@keyframes gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}
.animate-gradient-x {
    animation: gradient-x 3s ease infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f13; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7000ff; 
}

/* Modal Animation */
.modal-container {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s ease-out;
}

.modal.active .modal-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.modal.active .modal-backdrop {
    opacity: 1;
}

/* Selected Tag Animation */
.selected-box-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Commission Card States */
.commission-reduced {
    background-color: #ecfdf5 !important; /* green-50 */
    border-color: #10b981 !important; /* green-500 */
    color: #065f46 !important; /* green-800 */
}
.commission-high {
    background-color: #fffbeb !important; /* amber-50 */
    border-color: #f59e0b !important; /* amber-500 */
    color: #92400e !important; /* amber-800 */
}