/**
 * ArteJC Footer Styles
 * File: /assets/custom-css/footer.css
 * Compatible with PicoStrap 5 / Bootstrap 5
 * Version: 1.0
 */

:root {
    --artejc-primary: #00d4ff;
    --artejc-primary-rgb: 0, 212, 255;
    --artejc-dark: #0a0a0a;
    --artejc-dark-secondary: #1a1a1a;
    --artejc-transition: all 0.3s ease;
}

/* Main Footer Container */
.artejc-footer {
    background: #161f31;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 5rem !important;
}

.artejc-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--artejc-primary), transparent);
    z-index: 1;
}

/* Brand Section */
.footer-brand-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--artejc-transition);
}

.footer-logo-img:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
}

.footer-tagline {
    font-size: 1.125rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    color: #888;
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

/* Social Links */
.social-links .btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: var(--artejc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.social-links .btn:hover,
.social-links .btn:focus {
    background: rgba(var(--artejc-primary-rgb), 0.1);
    border-color: var(--artejc-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--artejc-primary-rgb), 0.2);
    color: #ffffff;
}

.social-links .btn:active {
    transform: translateY(-1px);
}

/* Footer Columns */
.footer-column {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0s; }
.footer-column:nth-child(2) { animation-delay: 0.1s; }
.footer-column:nth-child(3) { animation-delay: 0.2s; }
.footer-column:nth-child(4) { animation-delay: 0.3s; }

.footer-column h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--artejc-primary), transparent);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--artejc-transition);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--artejc-primary);
    transform: translateX(5px);
    text-decoration: none;
}

.footer-links a i {
    margin-right: 0.5rem;
    width: 16px;
    font-size: 0.875rem;
    opacity: 0.7;
    transition: var(--artejc-transition);
}

.footer-links a:hover i {
    opacity: 1;
    color: var(--artejc-primary);
}

/* Contact Information */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: #b0b0b0;
    font-size: 0.9375rem;
}

.contact-info i {
    margin-right: 0.75rem;
    margin-top: 2px;
    color: var(--artejc-primary);
    width: 16px;
    flex-shrink: 0;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: var(--artejc-transition);
}

.contact-info a:hover,
.contact-info a:focus {
    color: var(--artejc-primary);
    text-decoration: none;
}

/* Newsletter Form */
.newsletter-form {
    position: relative;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: var(--artejc-transition);
}

.newsletter-input::placeholder {
    color: #888;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--artejc-primary);
    box-shadow: 0 0 0 3px rgba(var(--artejc-primary-rgb), 0.1);
    color: #ffffff;
    outline: none;
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--artejc-primary), #0099cc);
    border: none;
    border-radius: 8px;
    transition: var(--artejc-transition);
    color: #ffffff;
}

.newsletter-btn:hover,
.newsletter-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--artejc-primary-rgb), 0.3);
    color: #ffffff;
}

.newsletter-btn:active {
    transform: translateY(-1px);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    padding: 0;
}

.footer-bottom-links {
    margin: 0;
    padding: 0;
}

.footer-bottom-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--artejc-transition);
    padding: 0.25rem 0;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus {
    color: var(--artejc-primary);
    text-decoration: none;
}

/* AI Badge */
.ai-badge {
    background: rgba(var(--artejc-primary-rgb), 0.1);
    border: 1px solid rgba(var(--artejc-primary-rgb), 0.3);
    color: var(--artejc-primary);
    font-size: 0.75rem;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ai-badge i {
    font-size: 0.7rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading Animation for Newsletter */
.newsletter-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Newsletter Messages */
.artejc-message {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-logo-img {
        height: 35px;
    }
    
    .footer-tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        text-align: center;
        min-height: 70px;
        padding-bottom: 1.5rem;
    }
    
    .copyright-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .footer-logo-img {
        height: 32px;
    }
    
    .social-links .btn {
        width: 40px;
        height: 40px;
    }
}

/* Accessibility Improvements */
.footer-links a:focus,
.social-links .btn:focus,
.newsletter-btn:focus,
.contact-info a:focus {
    outline: 2px solid var(--artejc-primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .footer-column {
        animation: none;
    }
    
    .footer-links a:hover,
    .social-links .btn:hover,
    .newsletter-btn:hover {
        transform: none;
    }
    
    .newsletter-btn .fa-spinner {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .artejc-footer {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .artejc-footer * {
        color: #000000 !important;
    }
    
    .social-links,
    .newsletter-form {
        display: none;
    }
    
    .ai-badge {
        border: 1px solid #000000 !important;
        color: #000000 !important;
    }
}


/* ========== MOBILE VERTICAL FOOTER LAYOUT ========== */

/* Mobile-first approach - stack everything vertically and center */
@media (max-width: 767.98px) {
    /* Override grid layout to single column */
    .artejc-footer .row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .artejc-footer .col-lg-6,
    .artejc-footer .col-lg-3,
    .artejc-footer .col-md-6,
    .artejc-footer .col-xl-5,
    .artejc-footer .col-xl-4 {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2.5rem !important;
    }
    
    /* Center all footer columns */
    .footer-column {
        text-align: center !important;
        max-width: 300px !important;
        margin: 0 auto 2.5rem auto !important;
    }
    
    /* Brand section centering */
    .footer-brand-logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-tagline {
        text-align: center !important;
        margin-bottom: 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .footer-description {
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Center social links */
    .social-links {
        justify-content: center !important;
        margin-bottom: 0 !important;
    }
    
    /* Footer headings centered */
    .footer-column h3 {
        text-align: center !important;
        margin-bottom: 1.25rem !important;
        font-size: 0.95rem !important;
    }
    
    .footer-column h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Footer links centered */
    .footer-links {
        text-align: center !important;
    }
    
    .footer-links li {
        margin-bottom: 0.875rem !important;
    }
    
    .footer-links a {
        justify-content: center !important;
        display: inline-flex !important;
        padding: 0.375rem 0 !important;
        font-size: 0.9rem !important;
    }
    
    .footer-links a:hover {
        transform: translateY(-2px) !important; /* Change horizontal to vertical movement */
    }
    
    /* Contact info centered */
    .contact-info {
        text-align: center !important;
    }
    
    .contact-info li {
        justify-content: center !important;
        margin-bottom: 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Newsletter form centered */
    .newsletter-form {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .newsletter-form .input-group {
        justify-content: center !important;
    }
    
    .newsletter-input {
        text-align: center !important;
        font-size: 0.9rem !important;
    }
    
    /* Footer bottom centered */
    .footer-bottom {
        text-align: center !important;
        padding-top: 2rem !important;
        margin-top: 2rem !important;
    }
    
    .footer-bottom .row {
        justify-content: center !important;
    }
    
    .footer-bottom .col-12 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .copyright-text {
        margin-bottom: 0 !important;
        font-size: 0.85rem !important;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 575.98px) {
    .artejc-footer {
        padding-top: 4rem !important;
    }
    
    .footer-column {
        max-width: 260px !important;
        margin-bottom: 2rem !important;
    }
    
    .footer-description {
        max-width: 240px !important;
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
    }
    
    .footer-links a {
        font-size: 0.85rem !important;
        padding: 0.25rem 0 !important;
    }
    
    .contact-info li {
        font-size: 0.85rem !important;
    }
    
    .newsletter-form {
        max-width: 240px !important;
    }
    
    .newsletter-input {
        font-size: 0.85rem !important;
        padding: 0.625rem 0.875rem !important;
    }
    
    .newsletter-btn {
        padding: 0.625rem 0.75rem !important;
    }
    
    .footer-bottom {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
    }
    
    .copyright-text {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 767.98px) and (orientation: landscape) and (max-height: 500px) {
    .artejc-footer {
        padding-top: 2rem !important;
    }
    
    .footer-column {
        margin-bottom: 1.5rem !important;
    }
    
    .footer-bottom {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .footer-column {
        max-width: 220px !important;
    }
    
    .footer-description {
        max-width: 200px !important;
    }
    
    .newsletter-form {
        max-width: 200px !important;
    }
    
    .social-links .btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.875rem !important;
    }
    
    .footer-logo-img {
        height: 28px !important;
    }
}