/**
 * Interactive Elements Refresh
 * Apply BTQ smooth transitions to all interactive elements site-wide
 * MIT TR & BTQ Design Principles
 */

/* ========================================
 * BUTTONS - BTQ Smooth Interactions
 * ======================================== */

button,
.button,
.btn,
.filter-button,
.sort-button,
.clear-filters-btn,
.back-button,
.cta-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover,
.button:hover,
.btn:hover,
.filter-button:hover,
.sort-button:hover,
.clear-filters-btn:hover,
.back-button:hover,
.cta-button:hover {
    transform: translateY(-2px);
}

button:active,
.button:active,
.btn:active {
    transform: translateY(0);
}

/* ========================================
 * CARDS - BTQ Hover Elevation
 * ======================================== */

.company-card,
.metric-card,
.info-card,
.stat-card,
.category-card,
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-card:hover,
.metric-card:hover,
.info-card:hover,
.stat-card:hover,
.category-card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ========================================
 * LINKS - Smooth Color Transitions
 * ======================================== */

a {
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a,
.nav-link,
.footer-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
 * INPUTS - Focus State Transitions
 * ======================================== */

input,
select,
textarea {
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--border-strong);
}

/* ========================================
 * BADGES & PILLS - Interactive States
 * ======================================== */

.badge,
.pill,
.tag,
.filter-pill,
.filter-chip {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge:hover,
.pill:hover,
.tag:hover,
.filter-pill:hover {
    transform: scale(1.05);
}

/* ========================================
 * DROPDOWNS & MENUS - Smooth Appearance
 * ======================================== */

.dropdown-menu,
.menu,
.tooltip {
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
 * MODALS & OVERLAYS - Fade Transitions
 * ======================================== */

.modal,
.overlay,
.popup {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
 * TABS & NAVIGATION - Active State
 * ======================================== */

.tab,
.nav-tab {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.active,
.nav-tab.active {
    transform: translateY(-2px);
}

/* ========================================
 * ICONS - Subtle Movement
 * ======================================== */

.icon,
svg {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover .icon,
a:hover svg {
    transform: scale(1.1);
}

/* ========================================
 * STATISTICS & COUNTERS - Number Emphasis
 * ======================================== */

.stat-number,
.counter,
.metric-value {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-number,
.metric-card:hover .metric-value {
    transform: scale(1.05);
}

/* ========================================
 * IMAGES - Smooth Scaling
 * ======================================== */

img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover img,
.image-container:hover img {
    transform: scale(1.02);
}

/* ========================================
 * ACCESSIBILITY - Respect User Preferences
 * ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
