/* =========================================
   PREMIUM EFFECTS - Power Club
   Luxury styles & animations
   ========================================= */

/* =========================================
   1. RIPPLE EFFECT
   ========================================= */

@keyframes rippleEffect {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* =========================================
   2. GLOW CURSOR
   ========================================= */

.glow-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(69, 100, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.glow-cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #4564ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.glow-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: rgba(69, 100, 255, 0.8);
    background: rgba(69, 100, 255, 0.1);
}

.glow-cursor-dot.cursor-hover {
    transform: translate(-50%, -50%) scale(0);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .glow-cursor, .glow-cursor-dot {
        display: none;
    }
}

/* =========================================
   3. TEXT SCRAMBLE
   ========================================= */

.scramble-char {
    color: var(--c-primary);
    opacity: 0.7;
}

/* =========================================
   4. TOAST NOTIFICATIONS
   ========================================= */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.power-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.power-toast.toast-visible {
    transform: translateX(0);
}

.power-toast i {
    font-size: 18px;
}

.toast-success { border-left: 3px solid #22c55e; }
.toast-success i { color: #22c55e; }

.toast-error { border-left: 3px solid #ef4444; }
.toast-error i { color: #ef4444; }

.toast-warning { border-left: 3px solid #f97316; }
.toast-warning i { color: #f97316; }

.toast-info { border-left: 3px solid #4564ff; }
.toast-info i { color: #4564ff; }

/* =========================================
   5. CARD HOVER EFFECTS
   ========================================= */

.card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

/* Glow effect on hover */
.card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(69, 100, 255, 0.3) 0%, transparent 50%);
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.4s ease;
}

.card:hover::after {
    opacity: 1;
}

/* =========================================
   6. BUTTON ENHANCEMENTS
   ========================================= */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #4564ff 0%, #2a43cc 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(69, 100, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(69, 100, 255, 0.5);
    transform: translateY(-2px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* =========================================
   7. GLASS MORPHISM ENHANCED
   ========================================= */

.glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* =========================================
   8. SIDEBAR ENHANCEMENTS
   ========================================= */

.sidebar-container .nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-container .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #4564ff, #638fff);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.sidebar-container .nav-link:hover::before,
.sidebar-container .nav-link.active::before {
    height: 60%;
}

.sidebar-container .nav-link:hover {
    background: rgba(69, 100, 255, 0.1);
    padding-left: 1.5rem;
}

/* =========================================
   9. INPUT FOCUS EFFECTS
   ========================================= */

.form-control, .s-input {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control:focus, .s-input:focus {
    border-color: #4564ff;
    box-shadow:
        0 0 0 3px rgba(69, 100, 255, 0.15),
        0 0 20px rgba(69, 100, 255, 0.1);
    transform: translateY(-1px);
}

/* =========================================
   10. LOADING SKELETON
   ========================================= */

.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================
   11. PAGE TRANSITIONS
   ========================================= */

body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.effects-loaded {
    opacity: 1;
}

/* =========================================
   12. SCROLLBAR CUSTOM
   ========================================= */

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4564ff, #2a43cc);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #638fff, #4564ff);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #4564ff rgba(0, 0, 0, 0.1);
}

/* =========================================
   13. ANIMATED GRADIENT BACKGROUNDS
   ========================================= */

.animated-gradient {
    background: linear-gradient(-45deg, #0a0a0f, #1a1a2e, #0f0f1a, #12121a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================
   14. HOVER LIFT EFFECT
   ========================================= */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* =========================================
   15. NOISE TEXTURE OVERLAY
   ========================================= */

.noise-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 99998;
}

/* =========================================
   16. MODULE CARD ENHANCEMENTS
   ========================================= */

.module-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.module-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(69, 100, 255, 0.2);
}

.module-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* =========================================
   17. BADGE PULSE
   ========================================= */

.badge-pulse {
    position: relative;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: badgePulseAnim 2s ease-in-out infinite;
}

@keyframes badgePulseAnim {
    0%, 100% { box-shadow: 0 0 0 0 rgba(69, 100, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(69, 100, 255, 0); }
}

/* =========================================
   18. TEXT GRADIENT
   ========================================= */

.text-gradient {
    background: linear-gradient(135deg, #4564ff 0%, #638fff 50%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   19. FLOATING ANIMATION
   ========================================= */

.float {
    animation: floatAnim 3s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================
   20. SPOTLIGHT EFFECT
   ========================================= */

.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(69, 100, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.spotlight:hover::before {
    opacity: 1;
}

/* =========================================
   21. RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 768px) {
    .card:hover {
        transform: none !important;
    }

    .hover-lift:hover {
        transform: translateY(-4px);
    }
}

/* =========================================
   22. DARK MODE ENHANCEMENTS
   ========================================= */

[data-bs-theme="dark"] .card {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .glass {
    background: rgba(30, 30, 40, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   23. REDUCE MOTION - Accessibility
   ========================================= */

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

.reduce-motion .glow-cursor,
.reduce-motion .glow-cursor-dot {
    display: none !important;
}
