﻿/* =============================================
   wwwroot/css/footer.css
   SunShine — Unified Premium Footer
   (Hero strip + Footer merged into one section)
   ============================================= */

/* ---------- Base Footer ---------- */
.footer-premium {
    position: relative;
    background: linear-gradient(135deg, #071a10 0%, #0e3521 40%, #1a5230 100%);
    overflow: hidden;
    margin-top: 60px;
    border-top: 3px solid #FFD700;
    padding-top: 0;
    box-shadow: 0 -10px 40px rgba(255, 215, 0, 0.08);
}

    .footer-premium::before {
        content: '';
        position: absolute;
        top: -180px;
        right: -180px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.14), transparent 65%);
        pointer-events: none;
        z-index: 0;
        animation: heroSunGlow 6s ease-in-out infinite alternate;
    }

@keyframes heroSunGlow {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* ---------- Hero Strip (compact, inside footer) ---------- */
.footer-hero-strip {
    position: relative;
    z-index: 3;
    padding: 55px 0 35px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.footer-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    background: linear-gradient(135deg, #FFD700 0%, #FFB347 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.35));
    letter-spacing: -0.5px;
}

    .footer-hero-title .title-icon {
        display: inline-block;
        animation: sunSpin 8s linear infinite;
        -webkit-text-fill-color: initial;
    }

@keyframes sunSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.footer-hero-subtitle {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: rgba(255, 245, 214, 0.85);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}

    .footer-hero-subtitle .highlight-text {
        color: #FFD700;
        font-weight: 600;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

/* Compact hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

    .hero-badge i {
        color: #FFD700;
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    }

/* Compact hero buttons */
.btn-sun-primary {
    background: linear-gradient(135deg, #FFD700 0%, #F9A826 50%, #FF8C00 100%);
    color: #071a10;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 40px;
    border: none;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .btn-sun-primary:hover {
        transform: translateY(-2px) scale(1.03);
        color: #071a10;
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }

.btn-sun-outline {
    background: transparent;
    color: #FFD700;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 40px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .btn-sun-outline:hover {
        background: rgba(255, 215, 0, 0.1);
        color: #FFD700;
        border-color: #FFD700;
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

/* ---------- Bubbles & Sun Orbs ---------- */
.sunshine-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.sun-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.32), rgba(255, 140, 0, 0.12) 50%, transparent 75%);
    filter: blur(2px);
    animation: orbFloat 20s ease-in-out infinite;
}

.sun-orb-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
    animation-duration: 25s;
    opacity: 0.55;
}

.sun-orb-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    animation-duration: 18s;
    animation-delay: -5s;
    opacity: 0.45;
}

.sun-orb-3 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
    opacity: 0.35;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.95);
    }
}

.energy-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 200, 0.55), rgba(255, 215, 0, 0.28) 40%, rgba(255, 140, 0, 0.12) 70%, transparent);
    border: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.28), inset 0 0 8px rgba(255, 255, 200, 0.18);
    animation: bubbleRise 14s linear infinite;
    will-change: transform, opacity;
}

.bubble-1 {
    width: 22px;
    height: 22px;
    left: 8%;
    bottom: -40px;
    animation-duration: 16s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 34px;
    height: 34px;
    left: 18%;
    bottom: -60px;
    animation-duration: 20s;
    animation-delay: 2s;
}

.bubble-3 {
    width: 18px;
    height: 18px;
    left: 28%;
    bottom: -30px;
    animation-duration: 14s;
    animation-delay: 4s;
}

.bubble-4 {
    width: 28px;
    height: 28px;
    left: 38%;
    bottom: -50px;
    animation-duration: 18s;
    animation-delay: 1s;
}

.bubble-5 {
    width: 42px;
    height: 42px;
    left: 48%;
    bottom: -70px;
    animation-duration: 22s;
    animation-delay: 5s;
}

.bubble-6 {
    width: 20px;
    height: 20px;
    left: 58%;
    bottom: -40px;
    animation-duration: 15s;
    animation-delay: 3s;
}

.bubble-7 {
    width: 30px;
    height: 30px;
    left: 68%;
    bottom: -55px;
    animation-duration: 19s;
    animation-delay: 6s;
}

.bubble-8 {
    width: 24px;
    height: 24px;
    left: 76%;
    bottom: -45px;
    animation-duration: 17s;
    animation-delay: 7s;
}

.bubble-9 {
    width: 36px;
    height: 36px;
    left: 84%;
    bottom: -65px;
    animation-duration: 21s;
    animation-delay: 2.5s;
}

.bubble-10 {
    width: 16px;
    height: 16px;
    left: 92%;
    bottom: -35px;
    animation-duration: 13s;
    animation-delay: 4.5s;
}

.bubble-11 {
    width: 26px;
    height: 26px;
    left: 5%;
    bottom: -50px;
    animation-duration: 18s;
    animation-delay: 8s;
}

.bubble-12 {
    width: 32px;
    height: 32px;
    left: 63%;
    bottom: -55px;
    animation-duration: 23s;
    animation-delay: 9s;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }

    10% {
        opacity: 0.85;
    }

    50% {
        transform: translateY(-50vh) translateX(15px) scale(1);
        opacity: 0.7;
    }

    85% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100vh) translateX(-20px) scale(0.4);
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 8px #FFD700, 0 0 15px rgba(255, 215, 0, 0.6);
    animation: sparkleRise 10s linear infinite;
    opacity: 0;
}

.sparkle-1 {
    left: 22%;
    bottom: -10px;
    animation-duration: 8s;
    animation-delay: 1s;
}

.sparkle-2 {
    left: 44%;
    bottom: -10px;
    animation-duration: 11s;
    animation-delay: 3s;
}

.sparkle-3 {
    left: 62%;
    bottom: -10px;
    animation-duration: 9s;
    animation-delay: 5s;
}

.sparkle-4 {
    left: 78%;
    bottom: -10px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.sparkle-5 {
    left: 35%;
    bottom: -10px;
    animation-duration: 10s;
    animation-delay: 7s;
}

@keyframes sparkleRise {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateY(-20vh) scale(1.5);
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-90vh) scale(0.5);
        opacity: 0;
    }
}

/* ---------- Footer Content (4 columns) ---------- */
.footer-content {
    position: relative;
    z-index: 3;
}

.footer-widget {
    position: relative;
}

.widget-title {
    color: #FFD700;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

    .widget-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #FFD700, #FF8C00);
        border-radius: 2px;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    }

/* ---------- Logo ---------- */
.footer-logo .logo-orb {
    width: 135px;
    height: 45px;
    background: linear-gradient(135deg, #FFD700 0%, #F9A826 50%, #FF8C00 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 15px rgba(255, 140, 0, 0.4);
    animation: borderPulse 3s ease-in-out infinite alternate;
}

    .footer-logo .logo-orb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 15px;
    }

.logo-text h3 {
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFB347 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.35));
    font-size: 1.4rem;
}

.tagline {
    font-size: 0.65rem;
    color: #FFD700;
    letter-spacing: 2px;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.4), 0 4px 15px rgba(255, 140, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.85), 0 6px 25px rgba(255, 140, 0, 0.5);
    }
}

/* ---------- Contact ---------- */
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700 0%, #F9A826 50%, #FF8C00 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #071a10;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

    .contact-icon:hover {
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    }

.contact-text h6 {
    color: #FFC857;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-text p {
    color: rgba(255, 245, 214, 0.82);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* ---------- Links ---------- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: rgba(255, 245, 214, 0.78);
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
    }

        .footer-links a i {
            font-size: 0.7rem;
            transition: all 0.3s ease;
            color: #F9A826;
        }

        .footer-links a:hover {
            color: #FFD700;
            transform: translateX(5px);
            text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
        }

            .footer-links a:hover i {
                transform: translateX(3px);
                color: #FFD700;
                text-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
            }

.products-links a i {
    width: 18px;
}

/* ---------- Newsletter ---------- */
.newsletter-form .input-group {
    background: rgba(255, 215, 0, 0.06);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.08);
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #FFF5D6;
    padding: 11px 18px;
    font-size: 0.88rem;
}

    .newsletter-form .form-control::placeholder {
        color: rgba(255, 215, 0, 0.5);
    }

    .newsletter-form .form-control:focus {
        box-shadow: none;
        background: rgba(255, 215, 0, 0.04);
    }

.btn-newsletter {
    background: linear-gradient(135deg, #FFD700 0%, #F9A826 50%, #FF8C00 100%);
    border: none;
    color: #071a10;
    font-weight: 700;
    padding: 11px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

    .btn-newsletter:hover {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
        color: #071a10;
    }

/* ---------- Social ---------- */
.social-links-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-footer {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

    .social-footer.facebook {
        background: linear-gradient(135deg, #1877f2, #00a2ff);
    }

    .social-footer.whatsapp {
        background: linear-gradient(135deg, #25d366, #128c7e);
    }

    .social-footer.youtube {
        background: linear-gradient(135deg, #ff0000, #ff6b6b);
    }

    .social-footer.linkedin {
        background: linear-gradient(135deg, #0077b5, #00a0dc);
    }

    .social-footer.instagram {
        background: linear-gradient(135deg, #e4405f, #ffd93d);
    }

    .social-footer:hover {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }

    .social-footer[data-tooltip]::before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(7, 26, 16, 0.95);
        color: #FFD700;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.7rem;
        white-space: nowrap;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        border: 1px solid rgba(255, 215, 0, 0.4);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }

    .social-footer:hover::before {
        opacity: 1;
        bottom: -30px;
    }

/* ---------- Footer Bottom ---------- */
.footer-bottom {
    background: rgba(0, 0, 0, 0.45);
    padding: 18px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 3;
}

    .footer-bottom p {
        color: rgba(255, 245, 214, 0.7);
        margin: 0;
        font-size: 0.82rem;
    }

    .footer-bottom a {
        color: #FFD700;
        text-decoration: none;
        font-weight: 600;
        text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
    }

        .footer-bottom a:hover {
            color: #FFE57F;
            text-decoration: underline;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
        }

.footer-badges {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

    .footer-badges .badge {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
        color: #FFD700;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
        gap: 5px;
        border: 1px solid rgba(255, 215, 0, 0.35);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
    }

        .footer-badges .badge i {
            margin-right: 5px;
            font-size: 0.7rem;
            color: #FFD700;
        }

/* ---------- Floating Energy Elements ---------- */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-element {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 215, 0, 0.45);
    font-size: 1.2rem;
    animation: floatRandom 15s infinite linear;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.ele-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.ele-2 {
    top: 45%;
    left: 8%;
    animation-delay: 2s;
    width: 35px;
    height: 35px;
}

.ele-3 {
    top: 70%;
    left: 3%;
    animation-delay: 4s;
}

.ele-4 {
    top: 25%;
    right: 8%;
    animation-delay: 6s;
    width: 45px;
    height: 45px;
}

.ele-5 {
    top: 55%;
    right: 5%;
    animation-delay: 8s;
    width: 35px;
    height: 35px;
}

.ele-6 {
    top: 80%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes floatRandom {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    20% {
        transform: translateY(-30px) rotate(72deg);
    }

    40% {
        transform: translateY(20px) rotate(144deg);
    }

    60% {
        transform: translateY(-15px) rotate(216deg);
    }

    80% {
        transform: translateY(25px) rotate(288deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.back-to-top-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFD700 0%, #F9A826 50%, #FF8C00 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #071a10;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 15px rgba(255, 140, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    font-weight: 700;
}

    .back-to-top-btn.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top-btn:hover {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
        color: #071a10;
    }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .footer-badges {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-bottom .text-md-end {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .footer-hero-strip {
        padding: 40px 0 25px;
    }

    .footer-logo {
        text-align: center;
    }

        .footer-logo .d-flex {
            justify-content: center;
        }

    .widget-title {
        text-align: center;
    }

        .widget-title::after {
            left: 50%;
            transform: translateX(-50%);
        }

    .footer-links {
        text-align: center;
    }

        .footer-links a {
            justify-content: center;
        }

    .contact-item {
        justify-content: center;
    }

    .social-links-footer {
        justify-content: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .footer-logo .logo-orb {
        width: 110px;
        height: 38px;
    }

    .footer-badges .badge {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .float-element {
        display: none;
    }

    /* Reduce bubbles on mobile for performance */
    .bubble-4, .bubble-7, .bubble-9, .bubble-10, .bubble-12,
    .sparkle-3, .sparkle-5 {
        display: none;
    }

    .sun-orb-1 {
        width: 160px;
        height: 160px;
        top: -60px;
        left: -60px;
    }

    .sun-orb-2 {
        width: 100px;
        height: 100px;
    }

    .sun-orb-3 {
        display: none;
    }
}

/* ---------- Accessibility: Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .footer-premium::before,
    .footer-hero-title .title-icon,
    .sun-orb,
    .energy-bubble,
    .sparkle,
    .float-element,
    .footer-logo .logo-orb {
        animation: none !important;
    }

    .energy-bubble,
    .sparkle {
        display: none;
    }
}
