/**
 * GlobalStudyLab Footer - Modern, Clean Styling
 * Professional footer with full-width downloads and social rows
 *
 * @package    local_gsl_core
 * @copyright  2025 GlobalStudyLab
 * @license    MIT
 */

/* ============================================
   GLOBAL FOOTER STYLES
   ============================================ */

.gsl-footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-top: 4rem;
}

.gsl-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gsl-footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.gsl-footer a:hover {
    color: #60a5fa;
}

/* ============================================
   MAIN NAVIGATION COLUMNS
   ============================================ */

.gsl-footer-main {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gsl-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.gsl-footer-column-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gsl-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gsl-footer-links li {
    margin-bottom: 0.875rem;
}

.gsl-footer-links a {
    font-size: 0.9375rem;
    color: #cbd5e0;
    display: inline-block;
}

.gsl-footer-links a:hover {
    color: #60a5fa;
    transform: translateX(4px);
}

/* ============================================
   APP DOWNLOADS ROW - FULL WIDTH
   ============================================ */

.gsl-footer-downloads-row {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gsl-footer-downloads-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.gsl-footer-downloads-text {
    flex-shrink: 0;
}

.gsl-footer-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.gsl-footer-section-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
}

.gsl-footer-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gsl-footer-download-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gsl-footer-download-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.gsl-footer-download-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.gsl-footer-download-text-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gsl-footer-download-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: #a0aec0;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.gsl-footer-download-store {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

/* ============================================
   SOCIAL MEDIA ROW - FULL WIDTH
   ============================================ */

.gsl-footer-social-row {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gsl-footer-social-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.gsl-footer-social-text {
    flex-shrink: 0;
}

.gsl-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gsl-footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.gsl-footer-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.25);
}

.gsl-footer-social-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.gsl-footer-social-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
}

/* Platform-specific social colors on hover */
.gsl-footer-social-facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.15);
}

.gsl-footer-social-twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.15);
}

.gsl-footer-social-linkedin:hover {
    border-color: #0a66c2;
    background: rgba(10, 102, 194, 0.15);
}

.gsl-footer-social-instagram:hover {
    border-color: #e4405f;
    background: rgba(228, 64, 95, 0.15);
}

.gsl-footer-social-youtube:hover {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.15);
}

.gsl-footer-social-tiktok:hover {
    border-color: #00f2ea;
    background: rgba(0, 242, 234, 0.15);
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */

.gsl-footer-bottom {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.25);
}

.gsl-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.gsl-footer-copyright {
    font-size: 0.9375rem;
    color: #94a3b8;
}

.gsl-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
}

.gsl-footer-bottom-links a {
    color: #94a3b8;
}

.gsl-footer-bottom-links a:hover {
    color: #60a5fa;
}

.gsl-footer-separator {
    color: #475569;
}

.gsl-footer-language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.gsl-footer-language-toggle:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .gsl-footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .gsl-footer-downloads-content,
    .gsl-footer-social-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .gsl-footer-download-buttons,
    .gsl-footer-social-links {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .gsl-footer-container {
        padding: 0 1.5rem;
    }

    .gsl-footer-main {
        padding: 3rem 0 2rem;
    }

    .gsl-footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gsl-footer-downloads-row,
    .gsl-footer-social-row {
        padding: 2.5rem 0;
    }

    .gsl-footer-section-title {
        font-size: 1.25rem;
    }

    .gsl-footer-download-buttons,
    .gsl-footer-social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .gsl-footer-download-btn,
    .gsl-footer-social-link {
        width: 100%;
        justify-content: center;
    }

    .gsl-footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gsl-footer-section-title {
        font-size: 1.125rem;
    }

    .gsl-footer-download-btn {
        padding: 1rem;
    }

    .gsl-footer-social-link {
        padding: 1rem;
    }

    .gsl-footer-social-name {
        font-size: 0.875rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .gsl-footer *,
    .gsl-footer *::before,
    .gsl-footer *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.gsl-footer a:focus,
.gsl-footer button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .gsl-footer-downloads-row,
    .gsl-footer-social-row {
        display: none;
    }

    .gsl-footer {
        background: white;
        color: black;
    }

    .gsl-footer a {
        color: black;
        text-decoration: underline;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: light) {
    .gsl-footer {
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
        color: #1e293b;
    }

    .gsl-footer a {
        color: #1e293b;
    }

    .gsl-footer a:hover {
        color: #2563eb;
    }

    .gsl-footer-downloads-row,
    .gsl-footer-social-row {
        background: rgba(0, 0, 0, 0.02);
    }

    .gsl-footer-download-btn,
    .gsl-footer-social-link {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .gsl-footer-bottom {
        background: rgba(0, 0, 0, 0.03);
    }

    .gsl-footer-language-toggle {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.1);
    }
}
