/* ===== EZMUSCLE ADVANCED VISUAL EFFECTS ===== */
/* Premium styling without JavaScript dependency */

:root {
    /* Glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(10px);
    
    /* Premium shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.2);
    
    /* Premium colors */
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
}

/* ===== GLASS MORPHISM COMPONENTS ===== */

.glass,
.glass-background {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.glass-sm {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
}

.glass-lg {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
}

/* Dark mode glass morphism */
.dark .glass,
.dark-mode .glass {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== ADVANCED SHADOWS ===== */

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Elevation levels */
.elevation-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.elevation-2 {
    box-shadow: 
        0 2px 3px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.08);
}

.elevation-3 {
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 8px 12px rgba(0, 0, 0, 0.1);
}

.elevation-4 {
    box-shadow: 
        0 6px 8px rgba(0, 0, 0, 0.12),
        0 12px 16px rgba(0, 0, 0, 0.12);
}

.elevation-5 {
    box-shadow: 
        0 8px 10px rgba(0, 0, 0, 0.15),
        0 16px 24px rgba(0, 0, 0, 0.15);
}

/* ===== GRADIENT BACKGROUNDS ===== */

.gradient-primary {
    background: linear-gradient(135deg, #f15822, #ff6b35);
}

.gradient-cool {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-warm {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-sunset {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-ocean {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-forest {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Animated gradient backgrounds */
.gradient-animated {
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

/* ===== BACKDROP & BLUR EFFECTS ===== */

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-saturate {
    backdrop-filter: saturate(180%);
}

.backdrop-invert {
    backdrop-filter: invert(1);
}

/* ===== PREMIUM BORDERS ===== */

.border-gradient {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f15822, #ff6b35);
    border-radius: inherit;
    z-index: -1;
}

/* Neon border effect */
.border-neon {
    border: 2px solid;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5), inset 0 0 10px rgba(59, 130, 246, 0.1);
}

/* ===== COLOR STATUS INDICATORS ===== */

.status-success {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
    background-color: rgba(16, 185, 129, 0.03);
}

.status-warning {
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
    background-color: rgba(245, 158, 11, 0.03);
}

.status-danger {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.03);
}

.status-info {
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.03);
}

/* ===== TYPOGRAPHY EFFECTS ===== */

.text-gradient {
    background: linear-gradient(135deg, #f15822, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Glitch effect */
@keyframes glitch {
    0% {
        text-shadow: 
            2px 0 #ff6b35,
            -2px 0 #f15822;
    }
    100% {
        text-shadow: 
            -2px 0 #ff6b35,
            2px 0 #f15822;
    }
}

.text-glitch {
    animation: glitch 0.1s infinite;
}

/* ===== COMPONENT SHADOWS ===== */

/* Card shadows with elevation */
.card-elevation {
    box-shadow: 
        0 0px 1px rgba(0, 0, 0, 0.08),
        0 2px 2px rgba(0, 0, 0, 0.12),
        0 4px 4px rgba(0, 0, 0, 0.12);
    position: relative;
}

@media (hover: hover) {
    .card-elevation:hover {
        box-shadow: 
            0 0px 1px rgba(0, 0, 0, 0.12),
            0 4px 8px rgba(0, 0, 0, 0.16),
            0 8px 16px rgba(0, 0, 0, 0.16);
        transform: translateY(-2px);
    }
}

/* ===== ADVANCED BORDERS & DIVIDERS ===== */

.divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 24px 0;
}

.divider-gradient {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(241, 88, 34, 0.4),
        transparent
    );
    margin: 24px 0;
}

.divider-dashed {
    border-top: 2px dashed rgba(0, 0, 0, 0.15);
    margin: 24px 0;
}

.divider-thick {
    border-top: 3px solid rgba(0, 0, 0, 0.08);
    margin: 24px 0;
}

/* ===== SPACING UTILITIES ===== */

/* Advanced spacing scale */
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.gap-2xl { gap: 48px; }

.space-x-xs > * + * { margin-left: 4px; }
.space-x-sm > * + * { margin-left: 8px; }
.space-x-md > * + * { margin-left: 16px; }
.space-x-lg > * + * { margin-left: 24px; }
.space-x-xl > * + * { margin-left: 32px; }

.space-y-xs > * + * { margin-top: 4px; }
.space-y-sm > * + * { margin-top: 8px; }
.space-y-md > * + * { margin-top: 16px; }
.space-y-lg > * + * { margin-top: 24px; }
.space-y-xl > * + * { margin-top: 32px; }

/* ===== LAYOUT UTILITIES ===== */

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

/* ===== ASPECT RATIO ===== */

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

.aspect-landscape {
    aspect-ratio: 4 / 3;
}

/* ===== OVERFLOW & TRUNCATION ===== */

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== VISUAL SEPARATORS ===== */

.section-divider {
    position: relative;
    margin: 60px 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.1),
        transparent
    );
    transform: translateY(-50%);
}

/* ===== PREMIUM LIST STYLES ===== */

.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-checked li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
}

.list-arrow li::before {
    content: '→ ';
    color: var(--info);
    margin-right: 8px;
}

/* ===== PREMIUM BUTTON STATES ===== */

.btn-ghost {
    background: transparent;
    border: 2px solid currentColor;
    transition: all 250ms ease;
}

@media (hover: hover) {
    .btn-ghost:hover {
        background: rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.btn-gradient {
    background: linear-gradient(135deg, #f15822, #ff6b35);
    color: white;
}

/* ===== HOVER STATES ===== */

.hover-text-color {
    transition: color 200ms ease;
}

@media (hover: hover) {
    .hover-text-color:hover {
        color: var(--info);
    }
}

.hover-background {
    transition: background-color 200ms ease;
}

@media (hover: hover) {
    .hover-background:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

/* ===== DARK MODE SUPPORT ===== */

@media (prefers-color-scheme: dark) {
    .glass {
        background: rgba(30, 30, 30, 0.8);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .divider {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .hover-background:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* ===== RESPONSIVE UTILITIES ===== */

@media (max-width: 768px) {
    .gap-lg { gap: 16px; }
    .gap-xl { gap: 24px; }
    
    .space-y-lg > * + * { margin-top: 16px; }
    .space-y-xl > * + * { margin-top: 24px; }
    
    .grid-auto-fit {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ===== ACCESSIBILITY ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--info);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .glass {
        border-width: 2px;
    }
    
    button, a {
        text-decoration: underline;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

.gpu-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.no-gpu {
    transform: none;
}

/* ===== PRINT STYLES ===== */

@media print {
    .glass {
        background: white;
        backdrop-filter: none;
        border: 1px solid #e5e7eb;
    }
    
    .shadow-*, .elevation-* {
        box-shadow: none;
    }
    
    .no-print {
        display: none;
    }
}
