/**
 * MODERN DESIGN ENHANCEMENTS (2025)
 * ===================================
 * Reusable design enhancements for all pages:
 * - Glassmorphism effects
 * - Micro-interactions and animations
 * - Card elevation system
 * - Typography improvements
 * - Button hover effects
 * - Feature icon gradients
 */

/* ============================================
   CARD ELEVATION SYSTEM - Layered depth
   ============================================ */
.modern-card {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    position: relative;
}

.modern-card:hover {
    box-shadow: 
        0 14px 28px rgba(0, 0, 0, 0.15),
        0 10px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Card with gradient background */
.modern-card-gradient {
    position: relative;
    overflow: hidden;
}

.modern-card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
    border-radius: inherit;
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .glass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2) !important;
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4) !important;
}

/* ============================================
   MICRO-INTERACTIONS - Feature Icons
   ============================================ */
.feature-item {
    transition: all 0.2s ease;
    cursor: pointer;
    padding: var(--spacing-2);
    border-radius: var(--radius-md);
    margin: calc(var(--spacing-1) * -1);
}

.feature-item:hover {
    transform: translateY(-2px);
    background: rgba(21, 101, 192, 0.05);
}

[data-theme="dark"] .feature-item:hover {
    background: rgba(21, 101, 192, 0.15);
}

.feature-icon {
    transition: all 0.2s ease;
    position: relative;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

/* Enhanced icon backgrounds with subtle gradients */
.feature-icon {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50)) !important;
}

.feature-item:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--secondary-100), var(--secondary-50)) !important;
}

.feature-item:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--success-100), var(--success-50)) !important;
}

.feature-item:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, var(--info-100), var(--info-50)) !important;
}

/* ============================================
   BUTTON HOVER EFFECTS
   ============================================ */
.btn-primary {
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TYPOGRAPHY ENHANCEMENTS
   ============================================ */
.modern-title {
    letter-spacing: -0.02em;
    font-weight: 700 !important;
}

.modern-subtitle {
    letter-spacing: -0.01em;
    font-weight: 600;
}

.modern-label {
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: var(--text-sm);
}

/* ============================================
   INTERACTIVE ELEMENTS
   ============================================ */
.interactive-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.interactive-item:hover {
    transform: translateX(4px);
}

/* Form inputs with modern styling */
.modern-input {
    transition: all 0.2s ease;
    border: 1px solid var(--border-primary) !important;
}

.modern-input:focus {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1) !important;
    transform: translateY(-1px);
}

/* ============================================
   BADGE PULSE ANIMATION
   ============================================ */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 0 0 rgba(255, 255, 255, 0.4),
            0 2px 8px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 0 6px rgba(255, 255, 255, 0),
            0 4px 16px rgba(255, 255, 255, 0.4);
    }
}

.pulse-badge {
    animation: badge-pulse 2s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2)) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ============================================
   PROGRESS BAR ENHANCEMENTS
   ============================================ */
.modern-progress-container {
    height: 14px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   CARD SECTIONS
   ============================================ */
.card-section {
    transition: all 0.2s ease;
}

.card-section:hover {
    background: rgba(21, 101, 192, 0.02);
}

[data-theme="dark"] .card-section:hover {
    background: rgba(21, 101, 192, 0.1);
}

