﻿/* PetsHelping - Footer CSS */

.site-footer {
    background-color: var(--color-surface);
    border-top: none;
    padding: 0 0 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* === Rocket animation === */
.footer-rocket {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-100% - -35px));
    left: -120px;
    z-index: 2;
    pointer-events: none;
    animation: rocketFly 9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 2s;
}

.rocket-body {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.rocket-body .fa-rocket {
    font-size: 1.4rem;
    color: var(--color-primary);
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.9))
        drop-shadow(0 0 14px rgba(0, 212, 255, 0.5));
    transform: rotate(45deg);
}

/* Ate�/iz efekti */
.rocket-trail {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
        to left,
        rgba(0, 212, 255, 0.9),
        rgba(123, 47, 255, 0.6),
        transparent
    );
    animation: trailGrow 9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 2s;
    filter: blur(1px);
}

@keyframes rocketFly {
    0% {
        left: -120px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 80px);
        opacity: 0;
    }
}

@keyframes trailGrow {
    0% {
        width: 0px;
    }
    5% {
        width: 40px;
    }
    50% {
        width: 90px;
    }
    92% {
        width: 90px;
    }
    100% {
        width: 20px;
    }
}

/* Star field overlay � 3 layers at different speeds */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Small stars � fastest */
    background-image:
        radial-gradient(circle, rgba(0, 212, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(123, 47, 255, 0.6) 1px, transparent 1px);
    background-size:
        120px 80px,
        95px 110px,
        140px 70px;
    background-position:
        0 0,
        40px 20px,
        80px 50px;
    animation: starDrift1 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Medium + large stars � slower */
    background-image:
        radial-gradient(
            circle,
            rgba(0, 212, 255, 0.5) 1.5px,
            transparent 1.5px
        ),
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 2px, transparent 2px),
        radial-gradient(
            circle,
            rgba(0, 255, 136, 0.45) 1.5px,
            transparent 1.5px
        );
    background-size:
        200px 130px,
        170px 150px,
        230px 100px;
    background-position:
        20px 10px,
        90px 60px,
        150px 30px;
    animation: starDrift2 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starDrift1 {
    from {
        background-position:
            0 0,
            40px 20px,
            80px 50px;
    }
    to {
        background-position:
            120px 0,
            135px 20px,
            220px 50px;
    }
}

@keyframes starDrift2 {
    from {
        background-position:
            20px 10px,
            90px 60px,
            150px 30px;
    }
    to {
        background-position:
            220px 10px,
            260px 60px,
            380px 30px;
    }
}

/* Footer content above stars */
.site-footer > * {
    position: relative;
    z-index: 1;
}

/* Beam line at top of footer */
.footer-border-top {
    width: 100%;
    height: 2px;
    margin-top: 4rem;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        var(--color-primary) 50%,
        var(--color-accent) 100%
    );
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
    overflow: hidden;
    position: relative;
}
.footer-border-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.95) 50%,
        transparent 100%
    );
    animation: slideLight 2s linear infinite;
}

/* Beam line above navigation columns */
.footer-border-nav {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        var(--color-primary) 50%,
        var(--color-accent) 100%
    );
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    position: relative;
    overflow: visible;
    margin-bottom: 2.5rem;
}
.footer-border-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.95) 50%,
        transparent 100%
    );
    animation: slideLight 2s linear 0.4s infinite;
}

/* Logo */
.footer-logo {
    height: 36px;
    max-width: 150px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

/* Footer site-logo isimlendirme override (footer i�in biraz k���k) */
.footer-brand.site-logo .site-logo-name {
    font-size: 19px;
}

.footer-description {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 280px;
}

/* Social */
.footer-social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-btn:hover {
    background: var(--color-primary-dim);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Headings */
.footer-heading {
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}
.footer-links a i {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-right: 0.25rem;
}

/* Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.6rem;
}
.footer-contact-list i {
    color: var(--color-primary);
    font-size: 0.9rem;
    width: 18px;
    flex-shrink: 0;
}
.footer-contact-list a {
    color: var(--color-text-muted);
    transition: var(--transition);
}
.footer-contact-list a:hover {
    color: var(--color-primary);
}

/* Bottom bar */
.footer-bottom {
    margin-top: 0;
    padding: 1rem 0 1rem;
    border-top: none;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Second rocket � inside footer-border-mid beam */
.footer-rocket-2 {
    transform: translateY(-35px) !important;
    animation-name: rocketFly2 !important;
    animation-delay: 6s !important;
}

@keyframes rocketFly2 {
    0% {
        left: -120px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 80px);
        opacity: 0;
    }
}

/* Mid beam � between columns and bottom bar */
.footer-border-mid {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        var(--color-primary) 50%,
        var(--color-accent) 100%
    );
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    position: relative;
    overflow: visible;
    margin-top: 2.5rem;
}
.footer-border-mid::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.95) 50%,
        transparent 100%
    );
    animation: slideLight 2s linear 0.8s infinite;
}

/* Bottom beam � below footer */
.footer-border-bottom {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        var(--color-primary) 50%,
        var(--color-accent) 100%
    );
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    position: relative;
    overflow: hidden;
}
.footer-border-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.95) 50%,
        transparent 100%
    );
    animation: slideLight 2s linear 1.2s infinite;
}
.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}
.footer-copyright a {
    color: var(--color-primary);
    font-weight: 600;
}
.footer-copyright a:hover {
    color: #fff;
}

/* Language flags in footer */
.footer-lang-flags {
    display: flex;
    gap: 0.3rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}
.footer-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 26px;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    color: var(--color-text-muted);
    opacity: 0.7;
}
.footer-flag:hover,
.footer-flag.active {
    opacity: 1;
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-primary-dim);
}

/* Akan ���k animasyonu */
@keyframes slideLight {
    0% {
        left: -70%;
    }
    100% {
        left: 120%;
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 2rem;
        margin-top: 2.5rem;
    }
    .footer-lang-flags {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
    .footer-description {
        max-width: 100%;
    }
}
