/* ========================================
   Professional UI Enhancements
   Advanced Effects & Animations
   ======================================== */

/* ========================================
   Advanced Button Styles
   ======================================== */

.btn-professional {
    position: relative;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-bright) 100%);
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.4);
}

.btn-professional::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-professional:hover::before {
    width: 400px;
    height: 400px;
}

.btn-professional:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.6);
}

.btn-professional:active {
    transform: translateY(-1px) scale(1.02);
}

/* ========================================
   Card Hover Effects
   ======================================== */

.card-3d {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(5deg);
}

.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
}

.card-shine:hover::before {
    left: 100%;
}

/* ========================================
   Progress Bars Enhanced
   ======================================== */

.progress-professional {
    width: 100%;
    height: 12px;
    background: var(--bg-main);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.progress-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-fill-professional {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--accent-red) 0%, 
        var(--accent-red-bright) 50%, 
        var(--accent-red) 100%
    );
    background-size: 200% 100%;
    animation: progressGradient 3s ease infinite;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.6);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes progressGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   Badge Animations
   ======================================== */

.badge-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(211, 47, 47, 0.5);
    }
}

.badge-bounce {
    animation: badgeBounce 1s infinite;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ========================================
   Glass Morphism Effects
   ======================================== */

.glass {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-strong {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Floating Animation
   ======================================== */

.float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-slow {
    animation: floating 6s ease-in-out infinite;
}

/* ========================================
   Ripple Effect
   ======================================== */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    opacity: 0;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}

/* ========================================
   Gradient Borders
   ======================================== */

.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-bright) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.gradient-border-animated::before {
    background: linear-gradient(135deg, 
        var(--accent-red) 0%, 
        var(--accent-red-bright) 25%,
        var(--accent-red) 50%,
        var(--accent-red-bright) 75%,
        var(--accent-red) 100%
    );
    background-size: 300% 300%;
    animation: gradientRotate 4s linear infinite;
}

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

/* ========================================
   Neon Glow Effects
   ======================================== */

.neon-text {
    color: var(--accent-red-bright);
    text-shadow: 
        0 0 10px rgba(211, 47, 47, 0.8),
        0 0 20px rgba(211, 47, 47, 0.6),
        0 0 30px rgba(211, 47, 47, 0.4),
        0 0 40px rgba(211, 47, 47, 0.2);
}

.neon-border {
    border: 2px solid var(--accent-red-bright);
    box-shadow: 
        0 0 10px rgba(211, 47, 47, 0.8),
        0 0 20px rgba(211, 47, 47, 0.6),
        inset 0 0 10px rgba(211, 47, 47, 0.4);
}

.neon-glow {
    box-shadow: 
        0 0 20px rgba(211, 47, 47, 0.6),
        0 0 40px rgba(211, 47, 47, 0.4),
        0 0 60px rgba(211, 47, 47, 0.2);
}

/* ========================================
   Loading Spinner
   ======================================== */

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-red-bright);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner-dots {
    display: flex;
    gap: 8px;
}

.spinner-dots span {
    width: 12px;
    height: 12px;
    background: var(--accent-red-bright);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ========================================
   Tooltip Professional
   ======================================== */

.tooltip-professional {
    position: relative;
    cursor: pointer;
}

.tooltip-professional::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tooltip-professional::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-card);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tooltip-professional:hover::before,
.tooltip-professional:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

/* ========================================
   Skeleton Loader
   ======================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-secondary) 50%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* ========================================
   Parallax Effect
   ======================================== */

.parallax {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.parallax-layer {
    transform: translateZ(0);
}

/* ========================================
   Text Effects
   ======================================== */

.text-shadow-strong {
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        4px 4px 8px rgba(0, 0, 0, 0.3);
}

.text-gradient-animated {
    background: linear-gradient(
        45deg,
        var(--accent-red),
        var(--accent-red-bright),
        var(--accent-red),
        var(--accent-red-bright)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 4s ease infinite;
}

@keyframes textGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.text-typing {
    overflow: hidden;
    border-right: 2px solid var(--accent-red-bright);
    white-space: nowrap;
    animation: 
        typing 3s steps(40) infinite,
        blink 0.75s step-end infinite;
}

@keyframes typing {
    0%, 90%, 100% {
        width: 0;
    }
    30%, 60% {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ========================================
   Responsive Utilities
   ======================================== */

.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}
