/* ============================================================================
 * Footer Component Styles
 *
 * Purpose: Reusable footer component for SNLab Code Copilot
 *
 * Features:
 * - Professional, minimal design
 * - Matches application dark theme
 * - Responsive layout
 * - Sticky footer positioning
 * - Social media icons
 * - Quick links
 *
 * Author: iDevOpsLLC
 * Date: 2025-11-19
 * Version: 1.1 - Enhanced with social media and quick links
 * ============================================================================ */

/* Footer Container */
.app-footer {
    background-color: #1E1E1E; /* Background color from schema */
    border-top: 1px solid rgba(62, 62, 66, 0.3); /* Subtle horizontal rule - low opacity */
    padding: 20px 0;
    text-align: center;
    margin-top: 0; /* Removed auto margin to eliminate gap */
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Footer Content Wrapper */
.app-footer__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Copyright Text */
.app-footer__copyright {
    color: #858585; /* Text Secondary color from schema */
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

/* Support Email Link */
.app-footer__email {
    color: #569CD6; /* Accent/Links color from schema */
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-footer__email:hover {
    color: #CCCCCC; /* Text Primary color from schema */
    opacity: 0.95;
    text-decoration: underline;
    transform: scale(1.03);
    filter: brightness(1.2);
}

.app-footer__email:focus {
    outline: 2px solid #569CD6;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Divider between copyright and email (optional) */
.app-footer__divider {
    color: #3E3E42; /* Border color from schema */
    margin: 0 12px;
    font-weight: 300;
}

/* Responsive - Single column layout */
@media (max-width: 768px) {
    .app-footer__content {
        font-size: 13px;
    }

    .app-footer__copyright,
    .app-footer__email {
        font-size: 13px;
    }

    .app-footer__divider {
        display: none;
    }
}

/* Alternative horizontal layout (if preferred) */
.app-footer--horizontal .app-footer__content {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ensure body takes full height for sticky footer */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content should grow to push footer down */
main,
.main-content,
.container {
    flex: 1;
}

/* ============================================================================
 * ENHANCED FOOTER STYLES - Social Media & Quick Links
 * ============================================================================ */

/* Footer Links Section */
.app-footer__links {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.app-footer__link {
    color: #858585;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-footer__link:hover {
    color: #569CD6;
    text-decoration: underline;
}

.app-footer__link:focus {
    outline: 2px solid #569CD6;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Social Media Icons */
.app-footer__social {
    display: flex;
    gap: 15px;
    margin: 12px 0;
    justify-content: center;
    align-items: center;
}

.app-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #252526;
    border: 1px solid #3E3E42;
    border-radius: 50%;
    color: #858585;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-footer__social-link:hover {
    background-color: #3E3E42;
    border-color: #569CD6;
    color: #569CD6;
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.2);
    opacity: 0.95;
}

.app-footer__social-link:focus {
    outline: 2px solid #569CD6;
    outline-offset: 2px;
}

.app-footer__social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer Info Section */
.app-footer__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Version Badge */
.app-footer__version {
    color: #569CD6;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    margin-top: 8px;
}

/* Enhanced Footer Layout - Multi-row */
.app-footer--enhanced .app-footer__content {
    gap: 15px;
}

/* Footer Disclaimer */
.app-footer__disclaimer {
    color: var(--text-secondary, #a0a0a0); /* Brighter gray for better readability */
    font-size: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(62, 62, 66, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-style: normal; /* Removed italic for better readability */
    line-height: 1.5;
}

/* Responsive - Enhanced Footer */
@media (max-width: 768px) {
    .app-footer__links {
        gap: 15px;
    }

    .app-footer__link {
        font-size: 13px;
    }

    .app-footer__social {
        gap: 12px;
    }

    .app-footer__social-link {
        width: 32px;
        height: 32px;
    }

    .app-footer__social-link svg {
        width: 16px;
        height: 16px;
    }

    .app-footer__disclaimer {
        font-size: 10px;
        max-width: 90%;
    }
}
