/* ============================================
   Skeleton Loading Styles
   ============================================ */

/* Base Skeleton Styles */
.skeleton {
    background: linear-gradient(90deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

/* Section Skeleton Styles */
.skeleton-loading {
    opacity: 1;
    transition: opacity 0.5s ease;
    padding: 40px 20px;
    background: transparent !important;
}

/* Section Header Skeleton */
.skeleton-loading .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Skeleton Title */
.skeleton-title {
    width: 250px;
    height: 36px;
    margin-bottom: 0;
}

/* Skeleton Link */
.skeleton-link {
    width: 120px;
    height: 20px;
}

/* Products Slider Skeleton */
.skeleton-loading .products-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Skeleton Slider Button */
.skeleton-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Skeleton Products Container */
.skeleton-loading .products-container {
    display: flex;
    gap: 15px;
    overflow: hidden;
    flex: 1;
}

/* Skeleton Product Card */
.skeleton-product-card {
    min-width: 280px;
    flex-shrink: 0;
}

.skeleton-image {
    width: 100%;
    height: 350px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.skeleton-text {
    width: 100%;
    height: 18px;
    margin-bottom: 10px;
}

.skeleton-text-small {
    width: 60%;
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-price {
    width: 120px;
    height: 22px;
}

/* Footer Skeleton Styles */
#footer-skeleton {
    background-color: transparent;
    padding: 60px 20px;
}

#footer-skeleton .footer-newsletter {
    text-align: center;
    margin-bottom: 40px;
}

#footer-skeleton .newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.skeleton-input {
    width: 100%;
    max-width: 400px;
    height: 50px;
    border-radius: 4px;
}

.skeleton-button {
    width: 140px;
    height: 50px;
    border-radius: 4px;
}

#footer-skeleton .footer-social {
    text-align: center;
    margin-bottom: 40px;
}

#footer-skeleton .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#footer-skeleton .footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

#footer-skeleton .footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-footer-title {
    width: 150px;
    height: 24px;
    margin-bottom: 10px;
}

.skeleton-link-text {
    width: 100%;
    height: 16px;
}

#footer-skeleton .footer-bottom {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

/* Content Loading States */
#featured-content,
#perfect-gift-content,
#footer-content {
    display: none;
    opacity: 0;
}

/* Responsive Skeleton Adjustments */
@media (max-width: 768px) {
    .skeleton-loading {
        padding: 30px 15px;
    }

    .skeleton-product-card {
        min-width: 220px;
    }

    .skeleton-image {
        height: 280px;
    }

    .skeleton-title {
        width: 180px;
        height: 28px;
    }

    #footer-skeleton .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .skeleton-loading {
        padding: 20px 10px;
    }

    .skeleton-product-card {
        min-width: 180px;
    }

    .skeleton-image {
        height: 220px;
    }

    .skeleton-title {
        width: 140px;
        height: 24px;
    }

    .skeleton-slider-btn {
        width: 36px;
        height: 36px;
    }

    #footer-skeleton .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    #footer-skeleton .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .skeleton-input,
    .skeleton-button {
        width: 100%;
    }
}

/* Dark Mode Support - Disabled to keep light colors only */
@media (prefers-color-scheme: dark) {
    .skeleton {
        background: linear-gradient(90deg, #f5f5f5 25%, #e8e8e8 50%, #f5f5f5 75%);
        background-size: 200% 100%;
    }

    #footer-skeleton {
        background-color: transparent;
    }
}

/* Performance Optimization */
.skeleton-loading * {
    pointer-events: none;
    user-select: none;
}

/* Smooth Transitions */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.fade-out {
    animation: fadeOut 0.5s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ============================================
   Home Product Overlay Skeleton
   ============================================ */
.overlay-info-skeleton {
    padding: 15px;
    display: block;
}

.overlay-info-skeleton .skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    height: 16px;
    margin-bottom: 10px;
}

.overlay-info-skeleton .skeleton-line:nth-child(1) {
    width: 80%;
}

.overlay-info-skeleton .skeleton-line:nth-child(2) {
    width: 60%;
}

.overlay-info-skeleton .skeleton-line:nth-child(3) {
    width: 70%;
}

/* Hide skeleton on print */
@media print {
    .skeleton-loading {
        display: none !important;
    }

    #featured-content,
    #perfect-gift-content,
    #footer-content {
        display: block !important;
        opacity: 1 !important;
    }
}
