/* Premium Animations for Blog Details Page */

/* Smooth fade-in animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Entrance animations removed for sidebar widgets */

/* Subtle glow effect on hover for cards */
@keyframes glowEffect {
    0%, 100% {
        box-shadow: 0 2px 20px rgba(26, 58, 92, 0.08);
    }
    50% {
        box-shadow: 0 4px 32px rgba(26, 58, 92, 0.15);
    }
}

.blog:hover,
.card.blog-widget:hover {
    animation: none;
}

/* Icon rotation animation for loading states */
@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for badges */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.blog-details-hero-badge {
    animation: pulse 3s ease-in-out infinite;
}

/* Smooth text selection */
.blog-title,
.blog-content {
    transition: color 0.3s ease;
}

/* Link hover animations */
a {
    transition: all 0.3s ease;
}

/* Form input focus animation */
.form-control {
    position: relative;
}

.form-control::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffe082, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-control:focus::after {
    transform: scaleX(1);
}

/* Image lazy load animation */
.blog-image img {
    animation: imageLoad 0.6s ease-out;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        filter: blur(8px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::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:active::before {
    width: 300px;
    height: 300px;
}

/* Smooth transitions for all interactive elements */
button,
a,
input,
textarea,
select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Comment item entrance */
.review-sec .card-body {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-sec .card-body:nth-child(1) {
    animation-delay: 0.1s;
}

.review-sec .card-body:nth-child(2) {
    animation-delay: 0.2s;
}

.review-sec .card-body:nth-child(3) {
    animation-delay: 0.3s;
}

/* Breadcrumb item animations */
.breadcrumb-item {
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Checkbox and input animations */
input[type="checkbox"],
input[type="radio"] {
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    transform: scale(1.1);
}

/* Content fade-in on intersection observer (if implemented) */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode animations (if applicable) */
@media (prefers-color-scheme: dark) {
    .blog {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .blog-title {
        color: #f0f0f0;
    }
}
