/**
 * DAK Agency Blog - Advanced Visual Effects
 * Professional enhancements for a premium look
 */

/* Advanced Gradient Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Background Gradients */
.hero-gradient {
    background: linear-gradient(-45deg, #000000, #1a0033, #330066, #000000);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Glass Morphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(135, 11, 209, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Advanced Hover Effects */
.post-card-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.post-card-premium:hover::before {
    left: 100%;
}

.post-card-premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(135, 11, 209, 0.2),
        0 0 0 1px rgba(168, 85, 247, 0.3);
}

/* Floating Elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

/* Advanced Typography Effects */
.text-glow {
    text-shadow: 
        0 0 20px rgba(168, 85, 247, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3),
        0 0 60px rgba(168, 85, 247, 0.1);
}

.text-gradient-animated {
    background: linear-gradient(-45deg, #ffffff, #a855f7, #870bd1, #ffffff);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

/* Interactive Buttons */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #870bd1, #a855f7);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(135, 11, 209, 0.3);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(135, 11, 209, 0.4);
}

/* Particle Effects Background */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Advanced Loading States */
.skeleton-loader {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Parallax Scroll Effects */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* Advanced Border Effects */
.border-gradient {
    position: relative;
    background: var(--card-background);
    border-radius: 1rem;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, #870bd1, #a855f7, #870bd1);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Interactive Icons */
.icon-interactive {
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-interactive:hover {
    transform: scale(1.2) rotate(15deg);
    color: var(--primary-light);
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

/* Advanced Search Bar */
.search-premium {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-premium:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(135, 11, 209, 0.3);
}

/* Scroll-triggered Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Advanced Code Blocks */
.code-block-premium {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    overflow-x: auto;
}

.code-block-premium::before {
    content: '• • •';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    line-height: 1;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(10px);
        border-radius: 15px;
    }
    
    .post-card-premium:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .btn-premium {
        padding: 0.8rem 1.5rem;
    }
}
