/* LUXURY ENHANCEMENTS - Premium Feel */

/* Smooth Micro-interactions */
button,
.nav-item,
.market-card,
.message {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clean Input - No Boxes Ever */
.chat-input,
.chat-input:focus,
.chat-input:active,
.chat-input:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.chat-input::-webkit-inner-spin-button,
.chat-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.chat-input::-webkit-search-decoration,
.chat-input::-webkit-search-cancel-button,
.chat-input::-webkit-search-results-button {
    -webkit-appearance: none;
    display: none;
}

/* Remove any focus rings */
.chat-input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.chat-input:-moz-focusring {
    outline: none;
}

/* Premium Hover Effects */
.nav-item:hover {
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.market-card:hover {
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

/* Elegant Focus States */
input:focus,
textarea:focus,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth Page Transitions */
.message {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* Luxury Loading States */
.loading-spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Premium Shadows */
.profile-container,
.settings-container {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.1);
}

/* Elegant Backdrop */
.profile-modal,
.settings-modal {
    backdrop-filter: blur(12px) saturate(180%);
}

/* Smooth Opacity Transitions */
.sidebar-overlay,
.profile-menu {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Premium Button Press */
button:active {
    transform: scale(0.96);
}

/* Quick Chips Luxury Animation */
.chip {
    position: relative;
    overflow: hidden;
}

.chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.chip:hover::before {
    width: 200%;
    height: 200%;
}

.chip span,
.chip i {
    position: relative;
    z-index: 1;
}

/* Remove textarea resize handle and all decorations */
textarea {
    resize: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

textarea:focus,
textarea:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Luxury Text Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
}

/* Smooth Modal Entrance */
.profile-modal.active .profile-container {
    animation: modalEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Premium Toast */
.toast {
    animation: toastSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
