/* Shared footer styles — extracted from index.html so standalone pages
   (privacy-policy, terms-of-service, documentation, etc.) render the footer
   correctly instead of raw unstyled links. Keep in sync with index.html. */

/* ========================================
   FOOTER STYLES - Enhanced Design
   ======================================== */

.footer {
    padding: 80px 0 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(0, 212, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse at 0% 0%, rgba(255, 107, 0, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, #0a0a0a 100%);
    color: var(--starlight);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

/* Animated Background Particles */
.footer-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.footer-particle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.03;
    animation: floatParticle 20s infinite ease-in-out;
}

.footer-particle:nth-child(1) {
    background: radial-gradient(circle, var(--electric-blue), transparent);
    top: -150px;
    left: 10%;
    animation-delay: 0s;
}

.footer-particle:nth-child(2) {
    background: radial-gradient(circle, var(--electric-orange), transparent);
    top: 50%;
    right: 5%;
    animation-delay: 5s;
    animation-duration: 25s;
}

.footer-particle:nth-child(3) {
    background: radial-gradient(circle, var(--electric-blue), transparent);
    bottom: -100px;
    left: 50%;
    animation-delay: 10s;
    animation-duration: 30s;
}

.footer-particle:nth-child(4) {
    background: radial-gradient(circle, var(--electric-orange), transparent);
    top: 20%;
    left: 70%;
    animation-delay: 15s;
    animation-duration: 22s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* Footer Container */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Main Footer Content */
/* FP-P89 footer rebalance: tighten brand column + shrink gap so the link
   grid spreads into the empty space next to the Aedan Rose block instead
   of bunching on the right. */
.footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 3fr);
    gap: 48px;
    padding-bottom: 60px;
}
@media (max-width: 1180px) {
    .footer-main {
        grid-template-columns: minmax(220px, 0.75fr) minmax(0, 3fr);
        gap: 36px;
    }
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo-wrapper {
    position: relative;
    width: fit-content;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.footer-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

.footer-logo-wrapper:hover .footer-logo-image {
    transform: scale(1.05);
}

.footer-brand-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin: 0;
}

.highlight-text {
    color: var(--electric-blue);
    font-weight: 600;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.social-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 212, 255, 0.95);
    color: #0a0a0a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.social-link:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--electric-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.footer-heading i {
    font-size: 1.125rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link i {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
    opacity: 0;
}

.footer-link:hover {
    color: var(--electric-orange);
    padding-left: 12px;
}

.footer-link:hover i {
    opacity: 1;
    transform: translateX(5px);
}

/* Compare column — categorized collapsible groups (replaces long vertical list) */
.footer-link-strong {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
}
.footer-link-strong i {
    opacity: 1 !important;
    color: var(--electric-blue);
    font-size: 0.75rem !important;
}
.footer-compare-top {
    gap: 4px;
}
.footer-compare-groups {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    border-top: 1px solid rgba(0, 212, 255, 0.12);
    padding-top: 14px;
}
.footer-compare-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.footer-compare-group[open] {
    border-color: rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.04);
}
.footer-compare-group > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    user-select: none;
    transition: color 0.2s ease;
}
.footer-compare-group > summary::-webkit-details-marker { display: none; }
.footer-compare-group > summary:hover { color: var(--electric-blue); }
.footer-compare-group > summary > i:first-child {
    color: var(--electric-blue);
    font-size: 0.85em;
    width: 16px;
    text-align: center;
}
.footer-compare-group > summary > span { flex: 1; }
.footer-compare-chevron {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}
.footer-compare-group[open] > summary .footer-compare-chevron {
    transform: rotate(180deg);
    color: var(--electric-blue);
}
.footer-compare-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
    padding: 4px 12px 12px 38px;
}
.footer-compare-links a {
    display: block;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 4px;
}
.footer-compare-links a:hover {
    color: var(--electric-orange);
    transform: translateX(3px);
}
@media (max-width: 600px) {
    .footer-compare-links {
        grid-template-columns: 1fr;
        padding-left: 32px;
    }
}

/* Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.05) 50%,
        transparent 100%);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.footer-copyright i {
    font-size: 0.75rem;
}

/* Powered By Badge */
.footer-powered {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
}

.powered-text {
    color: rgba(255, 255, 255, 0.5);
}

.aedan-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 107, 0, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--electric-blue);
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.aedan-badge:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(255, 107, 0, 0.25));
    border-color: var(--electric-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.aedan-badge i {
    font-size: 1rem;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: 16px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

.badge-item i {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1180px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px;
    }
}
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 0;
    }

    .footer-main {
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}
