/**
 * Classes Utilitaires Graphik Impact
 *
 * @version 1.2.0
 * @date 2025-12-08
 * @description Classes CSS standard à intégrer dans toutes les apps GI
 * @source Wiki GI
 */

/* ============================================
   🎨 BOUTONS GRAPHIK IMPACT
   ============================================ */

/* Bouton principal - Gradient Cyan */
.btn-gi {
    background: linear-gradient(135deg, #009FE3 0%, #0088c7 100%);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-gi:hover {
    background: linear-gradient(135deg, #0088c7 0%, #006a9b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.4);
}

.btn-gi:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 159, 227, 0.3);
}

.btn-gi:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Bouton outline */
.btn-gi-outline {
    background: transparent;
    color: #009FE3;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid #009FE3;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-gi-outline:hover {
    background: rgba(0, 159, 227, 0.1);
    border-color: #0088c7;
    color: #0088c7;
}

/* Bouton ghost */
.btn-gi-ghost {
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gi-ghost:hover {
    background: #f9fafb;
    color: #374151;
}

/* ============================================
   🎯 FOCUS STATES
   ============================================ */

.focus-gi:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.3);
    border-color: #009FE3;
}

.focus-gi:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.3);
    border-color: #009FE3;
}

.focus-glow:focus-within {
    box-shadow: 0 0 0 3px rgba(78, 120, 188, 0.1);
    transition: box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.border-glow:focus-within {
    border-color: rgba(78, 120, 188, 0.5);
    box-shadow: 0 0 0 2px rgba(78, 120, 188, 0.1);
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   🃏 CARDS
   ============================================ */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-lift {
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

/* ============================================
   🌫️ GLASSMORPHISM
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

/* ============================================
   🔘 NEUMORPHISM
   ============================================ */

.neumorphic {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
}

.neumorphic-inset {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
}

/* ============================================
   🌈 GRADIENTS
   ============================================ */

.gradient-gi {
    background: linear-gradient(135deg, #009FE3 0%, #0088c7 100%);
}

.gradient-strategy {
    background: linear-gradient(135deg, #FBE40B 0%, #e6cf00 100%);
}

.gradient-design {
    background: linear-gradient(135deg, #654897 0%, #523a7a 100%);
}

.gradient-web {
    background: linear-gradient(135deg, #EB5D18 0%, #d14d0a 100%);
}

.gradient-social {
    background: linear-gradient(135deg, #4E78BC 0%, #3d5f96 100%);
}

.gradient-photo {
    background: linear-gradient(135deg, #5EBFBB 0%, #4aa8a4 100%);
}

.gradient-print {
    background: linear-gradient(135deg, #E20E7E 0%, #c70a6c 100%);
}

/* ============================================
   ✨ GLOW EFFECTS
   ============================================ */

.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 159, 227, 0.4);
}

.glow-cyan-lg {
    box-shadow: 0 0 40px rgba(0, 159, 227, 0.5);
}

.hover-glow {
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 159, 227, 0.4);
}

/* ============================================
   🎬 HOVER EFFECTS
   ============================================ */

.hover-lift {
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.2);
}

.hover-scale {
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-subtle {
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-scale-subtle:hover {
    transform: scale(1.02);
}

/* ============================================
   👆 ACTIVE EFFECTS
   ============================================ */

.press-effect:active {
    transform: scale(0.98);
    transition: transform 100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.active\:scale-98:active {
    transform: scale(0.98);
}

.active\:scale-95:active {
    transform: scale(0.95);
}

/* ============================================
   📜 CUSTOM SCROLLBAR
   ============================================ */

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============================================
   📱 TOUCH INTERACTIONS
   ============================================ */

.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.safe-area-top {
    padding-top: env(safe-area-inset-top);
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* ============================================
   🔄 SCROLL SNAP
   ============================================ */

.snap-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.snap-item {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/* ============================================
   🌑 DARK MODE OVERRIDES
   ============================================ */

.dark .glass {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.dark .glass-strong {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark .neumorphic {
    background: linear-gradient(145deg, #1f2937, #111827);
    box-shadow: 8px 8px 16px #0a0e14, -8px -8px 16px #283446;
}

.dark .neumorphic-inset {
    background: linear-gradient(145deg, #111827, #1f2937);
    box-shadow: inset 4px 4px 8px #0a0e14, inset -4px -4px 8px #283446;
}

.dark .card-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.dark .btn-gi-ghost {
    color: #9ca3af;
    border-color: #374151;
}

.dark .btn-gi-ghost:hover {
    background: #374151;
    color: #e5e7eb;
}

.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ============================================
   ♿ ACCESSIBILITY
   ============================================ */

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