/* ===================================
   RiderX Footer Styles
   Created: 2026-02-10
   Purpose: Overhauled footer with proper bottom positioning
   =================================== */

/* Footer Container - FIXED TO ALWAYS STAY AT BOTTOM */
.riderx-footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, #0F172A 0%, #020617 100%);
    color: #ffffff;
    padding: 3rem 2rem 1.5rem;
    margin-top: auto; /* Push footer to bottom */
    margin-left: 60px; /* Account for sidebar */
    width: calc(100% - 60px); /* Adjust width for sidebar */
    z-index: 10;
    border-top: 3px solid #DC2626;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.riderx-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer Grid */
.riderx-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

/* Brand Column */
.riderx-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.riderx-footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.riderx-footer-logo-link:hover {
    transform: translateY(-3px);
}

.riderx-footer-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.riderx-footer-logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.5));
}

.riderx-footer-logo-text {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.5rem;
    font-family: 'texgyreadventor-bold', sans-serif;
    letter-spacing: -0.5px;
}

.riderx-footer-tagline {
    color: #94A3B8;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Google Play Button */
.riderx-google-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    max-width: fit-content;
}

.riderx-google-play-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: #DC2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    text-decoration: none;
    color: #ffffff;
}

.riderx-google-play-icon {
    width: 40px;
    height: 40px;
    fill: #DC2626;
}

.riderx-google-play-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.riderx-google-play-small {
    font-size: 0.7rem;
    color: #94A3B8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.riderx-google-play-large {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: -0.125rem;
    font-family: 'texgyreadventor-bold', sans-serif;
}

/* Footer Columns */
.riderx-footer-column {
    display: flex;
    flex-direction: column;
}

/* Certifications column specific alignment */
.riderx-footer-column:has(.riderx-footer-certifications) {
    align-items: flex-end; /* Align the entire column to the right */
    justify-content: flex-start;
}

.riderx-footer-column h4 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-size: 16px;
    font-family: 'texgyreadventor-bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.riderx-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.riderx-footer-links li {
    margin: 0;
}

.riderx-footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.riderx-footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #DC2626;
}

.riderx-footer-links a:hover {
    color: #DC2626;
    padding-left: 20px;
    text-decoration: none;
}

.riderx-footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Certifications Column */
.riderx-footer-certifications {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.riderx-cert-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.riderx-cert-link:hover {
    transform: scale(1.1);
}

.riderx-cert-img {
    display: block;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
    max-width: 100%;
    height: auto;
}

.riderx-cert-link:hover .riderx-cert-img {
    filter: brightness(1.1);
}

/* Footer Bottom */
.riderx-footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
}

.riderx-footer-bottom p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
/* Desktop - ensure certifications stay right-aligned */
@media (min-width: 769px) {
    .riderx-footer-certifications {
        justify-content: flex-end !important;
        margin-left: auto; /* Push to the right */
    }

    .riderx-footer-column:has(.riderx-footer-certifications) {
        align-items: flex-end !important;
    }
}

@media (max-width: 1024px) {
    .riderx-footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .riderx-footer {
        padding: 2.5rem 1.5rem 1.5rem;
        margin-left: 50px;
        width: calc(100% - 50px);
    }

    .riderx-footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .riderx-footer-brand {
        align-items: center;
    }

    .riderx-footer-column {
        align-items: center;
    }

    .riderx-footer-links {
        align-items: center;
    }

    .riderx-footer-certifications {
        justify-content: center;
    }

    .riderx-google-play-btn {
        margin: 0 auto;
    }

    .riderx-footer-links a::before {
        display: none;
    }

    .riderx-footer-links a:hover {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .riderx-footer {
        padding: 2rem 1rem 1rem;
        margin-left: 45px;
        width: calc(100% - 45px);
    }

    .riderx-footer-logo-text {
        font-size: 1.25rem;
    }

    .riderx-footer-logo-img {
        width: 45px;
        height: 45px;
    }

    .riderx-footer-column h4 {
        font-size: 14px;
    }

    .riderx-footer-links a {
        font-size: 13px;
    }

    .riderx-google-play-btn {
        padding: 0.625rem 1rem;
    }

    .riderx-google-play-icon {
        width: 35px;
        height: 35px;
    }
}

/* Utility Classes */
.riderx-no-decor {
    text-decoration: none !important;
}

.riderx-text-center {
    text-align: center;
}
