/* Minimal loader */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050508;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.site-loader--blue {
    background: linear-gradient(160deg, #050a18 0%, #0c1f4a 42%, #071428 100%);
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    width: min(92vw, 360px);
    padding: 0 16px;
}

.site-loader__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.site-loader__progress-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.site-loader__progress-track {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.site-loader__progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #34d399);
    transition: width 0.35s ease;
}

.site-loader__percent {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
}

.site-loader__fact {
    min-height: 2.8em;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
    max-width: 300px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.site-loader__fact.is-changing {
    opacity: 0;
    transform: translateY(8px);
}

.site-loader__spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: loaderSpin 0.75s linear infinite;
}

body.is-loading {
    overflow: hidden;
}

body.fish-lightbox-open {
    overflow: hidden;
}

body.is-loading main,
body.is-loading .site-footer {
    opacity: 0;
}

body.is-loading .hero-video {
    visibility: hidden;
    opacity: 0;
}

body.is-loaded main,
body.is-loaded .site-footer {
    opacity: 1;
    transition: opacity 0.5s ease 0.1s;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

.img-skeleton {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    overflow: hidden;
}

.img-skeleton--fish,
.fish-card--light .img-skeleton {
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.fish-card--light .skeleton-shimmer {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0.09) 50%, rgba(15, 23, 42, 0.03) 100%);
    background-size: 200% 100%;
}

.img-skeleton.is-loaded .skeleton-shimmer {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.img-skeleton img {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.img-skeleton.is-loaded img {
    opacity: 1;
}

.fish-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.fish-skeleton-grid.is-hidden {
    display: none;
}

.fish-grid--deferred {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

.fish-grid--deferred.is-ready {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: translateY(0);
}

body.is-loading .fish-grid--deferred {
    display: none;
}

body.is-loaded .fish-skeleton-grid:not(.is-hidden) {
    display: grid;
}

.img-skeleton--video {
    aspect-ratio: 16 / 9;
    min-height: 100%;
}

.img-skeleton--video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fish-card-image .img-skeleton {
    position: absolute;
    inset: 0;
}

.fish-card-image .img-skeleton img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skeleton-card {
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.skeleton-card__image {
    aspect-ratio: 4/3;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.skeleton-card__body {
    padding: 22px;
}

.skeleton-line {
    height: 12px;
    border-radius: 9999px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.skeleton-line--short { width: 40%; }
.skeleton-line--mid { width: 70%; }
.skeleton-line--long { width: 100%; height: 14px; }
.skeleton-line--name { width: 62%; height: 16px; margin-bottom: 12px; }
.skeleton-line--footer { width: 85%; height: 12px; margin-top: 16px; margin-bottom: 0; }

.skeleton-line--title { width: 55%; height: 18px; margin-bottom: 14px; }

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal--left {
    transform: translateX(-28px);
}

.reveal.reveal--right {
    transform: translateX(28px);
}

.reveal.reveal--scale {
    transform: scale(0.96);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Enhanced hovers */
.hover-lift {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.btn {
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.fish-card--premium.hover-lift {
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}

.fish-card--premium.hover-lift:hover {
    animation: fishCardRainbowGlow 3s ease-in-out infinite;
}

@keyframes fishCardRainbowGlow {
    0%, 100% {
        box-shadow:
            0 20px 48px rgba(15, 23, 42, 0.1),
            0 0 18px rgba(251, 113, 133, 0.28),
            0 0 30px rgba(251, 191, 36, 0.22),
            0 0 42px rgba(52, 211, 153, 0.18),
            0 0 54px rgba(96, 165, 250, 0.16);
    }

    33% {
        box-shadow:
            0 20px 48px rgba(15, 23, 42, 0.1),
            0 0 18px rgba(251, 191, 36, 0.28),
            0 0 30px rgba(52, 211, 153, 0.22),
            0 0 42px rgba(96, 165, 250, 0.18),
            0 0 54px rgba(192, 132, 252, 0.16);
    }

    66% {
        box-shadow:
            0 20px 48px rgba(15, 23, 42, 0.1),
            0 0 18px rgba(52, 211, 153, 0.28),
            0 0 30px rgba(96, 165, 250, 0.22),
            0 0 42px rgba(192, 132, 252, 0.18),
            0 0 54px rgba(251, 113, 133, 0.16);
    }
}

.advantage-card.hover-lift:hover,
.review-card.hover-lift:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    border-color: rgba(37, 99, 235, 0.25);
}

.youtube-card.hover-lift:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

.social-icon-btn {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.fish-card-link {
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fish-card-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.38);
    text-decoration: none;
    animation: whatsappBounce 2.2s ease-in-out infinite;
    transition: box-shadow 0.25s ease;
}

.whatsapp-float svg {
    width: 20px;
    height: 20px;
}

.whatsapp-float:hover {
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.48);
}

@keyframes whatsappBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
    }

    .whatsapp-float svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-loader__spinner,
    .skeleton-shimmer {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.is-loading main,
    body.is-loaded main {
        opacity: 1;
    }

    .hover-lift:hover,
    .btn:hover,
    .fish-card-link:hover {
        transform: none;
    }

    .fish-card--premium.hover-lift:hover {
        animation: none;
        box-shadow:
            0 20px 48px rgba(15, 23, 42, 0.1),
            0 0 24px rgba(167, 139, 250, 0.22),
            0 0 36px rgba(103, 232, 249, 0.18);
    }

    .whatsapp-float {
        animation: none;
    }

    .section-international-buyers__canvas {
        display: none;
    }

    .section-international-buyers {
        background: linear-gradient(160deg, #050810 0%, #0a1628 40%, #061018 100%);
    }

    .section-exclusive .fish-card--exclusive {
        animation: none;
    }
}
