/* Footer Component Styles */

:root {
    --footer-bg: #f9fafb;
    --footer-border: #e5e7eb;
    --footer-text-primary: #111827;
    --footer-text-secondary: #6b7280;
    --footer-text-muted: #9ca3af;
    --footer-link-color: #3b82f6;
    --footer-link-hover: #2563eb;
    --status-online: #10b981;
    --status-offline: #ef4444;
    --footer-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.1), 0 -1px 2px 0 rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer Container */
.app-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    box-shadow: var(--footer-shadow);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem;
}

/* Main Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer Brand Section */
.footer-brand {
    text-align: center;
}

.brand-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--footer-link-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    margin: 0.5rem 0;
}

.brand-description {
    font-size: 0.875rem;
    color: var(--footer-text-secondary);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Footer Links Section */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.link-group {
    text-align: center;
}

.link-group-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link-list li a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.link-list li a:hover {
    color: var(--footer-link-hover);
    text-decoration: none;
}

/* Footer Info Section */
.footer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.info-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--footer-text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Company Details */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--footer-text-secondary);
}

.contact-item i {
    color: var(--footer-link-color);
    margin-top: 0.125rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* System Status */
.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--footer-text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.status-dot.status-online {
    background-color: var(--status-online);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-dot.status-offline {
    background-color: var(--status-offline);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.version-info {
    font-size: 0.75rem;
    color: var(--footer-text-muted);
    margin-top: 0.5rem;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--footer-border);
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    color: var(--footer-text-secondary);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--footer-link-hover);
    text-decoration: none;
}

.separator {
    color: var(--footer-text-muted);
    font-size: 0.75rem;
}

/* Error State */
.footer-error {
    padding: 1rem;
    background-color: #fef2f2;
    color: #ef4444;
    font-size: 0.875rem;
    text-align: center;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Responsive Design */
@media (min-width: 640px) {
    .footer-container {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
    
    .footer-brand {
        text-align: left;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .link-group {
        text-align: left;
    }
    
    .footer-info {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .contact-item {
        justify-content: flex-start;
    }
    
    .status-indicators {
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .footer-container {
        padding: 4rem 2rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 4rem;
    }
    
    .brand-description {
        max-width: none;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        gap: 5rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
}

/* Status Indicator Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-dot.status-online {
    animation: pulse 2s ease-in-out infinite;
}

/* Link Hover Effects */
.link-list li a {
    position: relative;
}

.link-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--footer-link-hover);
    transition: var(--transition);
    transform: translateX(-50%);
}

.link-list li a:hover::after {
    width: 100%;
}

@media (min-width: 640px) {
    .link-list li a::after {
        left: 0;
        transform: none;
    }
}

/* Focus States for Accessibility */
.footer-link:focus,
.link-list li a:focus {
    outline: 2px solid var(--footer-link-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Print Styles */
@media print {
    .app-footer {
        background: white;
        color: black;
        box-shadow: none;
        border-top: 1px solid #ccc;
    }
    
    .footer-links,
    .status-indicators {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-brand,
    .contact-info {
        text-align: center;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --footer-bg: #ffffff;
        --footer-text-primary: #000000;
        --footer-text-secondary: #000000;
        --footer-link-color: #0000ee;
        --footer-link-hover: #0000aa;
        --footer-border: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .status-dot.status-online {
        animation: none;
    }
} 