/*
 * Non-Critical CSS (Below the fold)
 * Loaded asynchronously for better performance
 */

/* Additional Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Feature Section Enhancements */
.feature-section {
    animation: fadeIn 0.6s ease-out;
}

.feature-image img {
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: scale(1.03);
}

/* Comment Section Enhancements */
.comment {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

/* FAQ Accordion Effect */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(78, 129, 187, 0.15);
}

/* Steps Section Enhancements */
.step-number {
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(78, 129, 187, 0.3);
}

.step-item {
    transition: transform 0.2s ease;
}

.step-item:hover {
    transform: translateX(5px);
}

.steps-image img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Stagger animation for step items */
.step-item:nth-child(1) {
    animation: fadeIn 0.6s ease-out 0.1s backwards;
}

.step-item:nth-child(2) {
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.step-item:nth-child(3) {
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}

/* Table Responsive Enhancements */
@media (max-width: 768px) {
    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px 8px !important;
    }
}

/* Print Styles */
@media print {
    .breadcrumb,
    .sidebar,
    .countdown-timer,
    .btn,
    footer {
        display: none;
    }

    body {
        background: white;
    }

    .main-content {
        box-shadow: none;
        padding: 0;
    }
}

/* Accessibility Enhancements */
.btn:focus {
    outline: 3px solid #4e81bb;
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid #4e81bb;
    outline-offset: 2px;
}

/* Loading State for Images */
img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Enhanced Button States */
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(215,46,32,0.3);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Scroll to Top Button (Optional Enhancement) */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Enhanced Product Card Animations */
.product-card .btn {
    animation: pulse 2s infinite;
}

.product-card .btn:hover {
    animation: none;
}

/* Countdown Timer Pulse */
.countdown-value {
    animation: pulse 1s infinite;
}

/* Testimonial Avatar Gradient Variations */
.comment:nth-child(1) .author-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comment:nth-child(2) .author-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.comment:nth-child(3) .author-avatar {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.comment:nth-child(4) .author-avatar {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.comment:nth-child(5) .author-avatar {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Enhanced Star Ratings */
.stars {
    text-shadow: 1px 1px 2px rgba(255, 165, 0, 0.3);
}

/* Gradient Text Effect for Headings */
.article-header h1 .highlight {
    background: linear-gradient(135deg, #4e81bb 0%, #2c5a8e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Guarantee Badge */
.guarantee-badge {
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

/* Responsive Typography Enhancements */
@media (max-width: 480px) {
    .article-header h1 {
        font-size: 22px;
    }

    .feature-text h2 {
        font-size: 18px;
    }

    .price-current {
        font-size: 28px !important;
    }

    .countdown-value {
        font-size: 24px !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented if needed */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
