/* Aeris Theme - Footer Styles */

/* ========================================
   FOOTER BASE STYLES
======================================== */
.aeris-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--aeris-marble) 0%, var(--aeris-champagne) 30%, #ffffff 70%, rgba(212, 175, 55, 0.05) 100%);
}

/* ========================================
   FOOTER BACKGROUND ANIMATIONS
======================================== */
.aeris-footer-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aeris-footer-float {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(40px);
    opacity: 0.3;
    animation: aeris-footer-float 8s ease-in-out infinite;
}

.aeris-footer-float:nth-child(1) {
    top: 5rem;
    left: 5rem;
    width: 10rem;
    height: 10rem;
    background: var(--aeris-gold);
    animation-delay: 0s;
}

.aeris-footer-float:nth-child(2) {
    bottom: 5rem;
    right: 5rem;
    width: 8rem;
    height: 8rem;
    background: var(--aeris-accent);
    animation-delay: -2s;
}

.aeris-footer-float:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15rem;
    height: 15rem;
    background: var(--aeris-primary);
    animation-delay: -4s;
    filter: blur(60px);
    opacity: 0.15;
}

@keyframes aeris-footer-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(-1deg); 
    }
}

/* ========================================
   FOOTER CONTENT CONTAINER
======================================== */
.aeris-footer-content {
    position: relative;
    z-index: 10;
}

.aeris-footer-main {
    padding: 4rem 0 5rem;
}

.aeris-footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(248, 248, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 0;
}

/* ========================================
   FOOTER LOGO & BRANDING
======================================== */
.aeris-footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 300ms ease;
    margin-bottom: 1.5rem;
}

.aeris-footer-logo:hover {
    transform: translateY(-2px);
}

.aeris-footer-logo img {
    transition: all 300ms ease;
}

.aeris-footer-logo:hover img {
    filter: brightness(1.1);
}

.aeris-footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--aeris-gold), var(--aeris-gold-light));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aeris-primary);
    font-weight: 600;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    transition: all 300ms ease;
}

.aeris-footer-logo:hover .aeris-footer-logo-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.aeris-footer-logo-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--aeris-primary);
    transition: color 300ms ease;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.aeris-footer-logo:hover .aeris-footer-logo-text {
    color: var(--aeris-gold);
}

/* ========================================
   FOOTER DESCRIPTION & INFO
======================================== */
.aeris-footer-description {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.aeris-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aeris-footer-contact-item {
    display: flex;
    align-items: center;
    color: var(--aeris-charcoal);
    text-decoration: none;
    transition: all 300ms ease;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(248, 248, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    group: true;
}

.aeris-footer-contact-item:hover {
    color: var(--aeris-primary);
    background: rgba(247, 231, 206, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.aeris-footer-contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: all 300ms ease;
    flex-shrink: 0;
}

.aeris-footer-contact-item:hover .aeris-footer-contact-icon {
    transform: scale(1.1);
}

/* Contact icon specific colors */
.aeris-footer-contact-email .aeris-footer-contact-icon {
    background: linear-gradient(135deg, var(--aeris-accent), var(--aeris-accent-light));
}

.aeris-footer-contact-phone .aeris-footer-contact-icon {
    background: linear-gradient(135deg, var(--aeris-success), var(--aeris-gold));
}

/* ========================================
   FOOTER NAVIGATION
======================================== */
.aeris-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.aeris-footer-nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--aeris-primary);
    margin-bottom: 1rem;
    position: relative;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.aeris-footer-nav-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--aeris-gold), var(--aeris-gold-light));
    border-radius: 1px;
}

.aeris-footer-nav-link {
    display: flex;
    align-items: center;
    color: var(--aeris-charcoal);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}

.aeris-footer-nav-link::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background: var(--aeris-gold);
    border-radius: 50%;
    opacity: 0;
    transition: all 300ms ease;
}

.aeris-footer-nav-link:hover {
    color: var(--aeris-accent);
    padding-left: 1.5rem;
}

.aeris-footer-nav-link:hover::before {
    opacity: 0.7;
    left: 0;
    width: 0.375rem;
    height: 0.375rem;
}

.aeris-footer-nav-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateX(-0.5rem);
    transition: all 300ms ease;
    flex-shrink: 0;
}

.aeris-footer-nav-link:hover .aeris-footer-nav-icon {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   FOOTER BOTTOM BAR
======================================== */
.aeris-footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .aeris-footer-bottom-content {
        flex-direction: row;
        gap: 0;
    }
}

.aeris-footer-copyright {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .aeris-footer-copyright {
        text-align: left;
    }
}

.aeris-footer-license {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .aeris-footer-license {
        display: inline;
        margin-top: 0;
        margin-left: 0.5rem;
    }
    
    .aeris-footer-license::before {
        content: '|';
        margin-right: 0.5rem;
    }
}

.aeris-footer-powered-by {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .aeris-footer-powered-by {
        text-align: right;
    }
}

.aeris-footer-powered-link {
    color: var(--aeris-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 300ms ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.aeris-footer-powered-link:hover {
    color: var(--aeris-gold);
    transform: translateX(2px);
}

.aeris-footer-powered-icon {
    width: 1rem;
    height: 1rem;
    transition: all 300ms ease;
}

.aeris-footer-powered-link:hover .aeris-footer-powered-icon {
    transform: translateX(2px);
}

/* ========================================
   FOOTER SOCIAL LINKS (if needed)
======================================== */
.aeris-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.aeris-footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(248, 248, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aeris-charcoal);
    text-decoration: none;
    transition: all 300ms ease;
}

.aeris-footer-social-link:hover {
    background: var(--aeris-gold);
    color: var(--aeris-primary);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.aeris-footer-social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ========================================
   FOOTER RESPONSIVE DESIGN
======================================== */
@media (max-width: 1023px) {
    .aeris-footer-main {
        padding: 3rem 0 4rem;
    }
    
    .aeris-footer-logo-text {
        font-size: 1.25rem;
    }
    
    .aeris-footer-logo-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .aeris-footer-nav-title {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .aeris-footer-nav-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .aeris-footer-contact {
        align-items: center;
    }
    
    .aeris-footer-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .aeris-footer-main {
        padding: 2rem 0 3rem;
    }
    
    .aeris-footer-bottom {
        padding: 1rem 0;
    }
    
    .aeris-footer-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .aeris-footer-contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .aeris-footer-nav-link {
        justify-content: center;
        padding: 0.75rem 0;
    }
    
    .aeris-footer-float {
        display: none; /* Hide floating elements on mobile */
    }
}

/* ========================================
   FOOTER LINK HOVER EFFECTS
======================================== */
.aeris-footer a {
    position: relative;
}

.aeris-footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease-out;
}

.aeris-footer a:hover::after {
    width: 100%;
}

/* External link icon styles */
.aeris-footer a[target="_blank"]::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity 300ms ease;
}

.aeris-footer a[target="_blank"]:hover::before {
    opacity: 1;
}

/* ========================================
   DARK MODE SUPPORT
======================================== */
@media (prefers-color-scheme: dark) {
    .aeris-footer {
        background: linear-gradient(135deg, #1f2937 0%, #111827 50%, rgba(59, 130, 246, 0.1) 100%);
    }
    
    .aeris-footer-bottom {
        background: rgba(17, 24, 39, 0.8);
        border-top-color: rgba(75, 85, 99, 0.3);
    }
    
    .aeris-footer-logo-text,
    .aeris-footer-nav-title {
        color: #f9fafb;
    }
    
    .aeris-footer-description,
    .aeris-footer-copyright,
    .aeris-footer-powered-by {
        color: #d1d5db;
    }
    
    .aeris-footer-license {
        color: #9ca3af;
    }
    
    .aeris-footer-contact-item,
    .aeris-footer-social-link {
        background: rgba(17, 24, 39, 0.5);
        border-color: rgba(75, 85, 99, 0.3);
        color: #d1d5db;
    }
    
    .aeris-footer-contact-item:hover,
    .aeris-footer-social-link:hover {
        background: rgba(17, 24, 39, 0.8);
    }
    
    .aeris-footer-nav-link {
        color: #d1d5db;
    }
}

/* ========================================
   HIGH CONTRAST MODE SUPPORT
======================================== */
@media (prefers-contrast: high) {
    .aeris-footer-contact-item,
    .aeris-footer-social-link {
        border-width: 2px;
        border-color: currentColor;
    }
    
    .aeris-footer-bottom {
        border-top-width: 2px;
        border-top-color: #000;
    }
    
    .aeris-footer-nav-title::after {
        background: #000;
        height: 3px;
    }
}

/* ========================================
   REDUCED MOTION SUPPORT
======================================== */
@media (prefers-reduced-motion: reduce) {
    .aeris-footer-float,
    .aeris-footer-logo,
    .aeris-footer-contact-item,
    .aeris-footer-nav-link,
    .aeris-footer-social-link,
    .aeris-footer-powered-link {
        animation: none !important;
        transition: none !important;
    }
    
    .aeris-footer-nav-link::before,
    .aeris-footer-nav-icon {
        transition: none !important;
    }
    
    .aeris-footer a::after {
        transition: none !important;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .aeris-footer {
        background: white !important;
        color: black !important;
    }
    
    .aeris-footer-float,
    .aeris-footer-social {
        display: none !important;
    }
    
    .aeris-footer-bottom {
        border-top: 1px solid black !important;
        background: white !important;
    }
    
    .aeris-footer a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .aeris-footer a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}