/* ===================================================================
   SPLITKUN FOOTER STYLES
   Mobile-first responsive design
   =================================================================== */

/* ===================================================================
   FOOTER BASE STYLES
   =================================================================== */

.split-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 0 1.5rem;
    margin-top: auto;
}

.split-footer-container {
    padding: 0 1rem;
}

/* ===================================================================
   TOP SECTION - LOGO & DOWNLOAD BUTTONS
   =================================================================== */

.split-footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.split-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Download Buttons */
.split-footer-downloads {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.split-download-btn {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.split-download-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.split-download-btn:active {
    transform: translateY(0);
}

.split-download-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Specific styling for Google Play badge (PNG) to ensure consistent appearance */
.split-google-play-btn .split-download-img {
    filter: brightness(1.1);
    border-radius: 6px;
}

/* ===================================================================
   DIVIDER LINE
   =================================================================== */

.split-footer-divider {
    height: 1px;
    background-color: #333333;
    margin: 0 1.25rem 2rem;
}

/* ===================================================================
   BOTTOM SECTION - COPYRIGHT & LINKS
   =================================================================== */

.split-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.split-footer-copyright {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 400;
}

.split-footer-copyright p {
    margin: 0;
}

/* Legal Links */
.split-footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Legal Links */
.split-footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    appearance: none;
}

/* Single animated underline - merge wipe effect */
.split-footer-link::after {
    content: "";
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* On hover: wipe in from right to left */
.split-footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.split-footer-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===================================================================
   TABLET BREAKPOINT - 576px and up
   =================================================================== */

@media (min-width: 576px) {
    .split-footer-downloads {
        flex-direction: row;
        gap: 1rem;
    }

    .split-footer-divider {
        margin: 0 2rem 2rem;
    }
}

/* ===================================================================
   DESKTOP BREAKPOINT - 768px and up
   =================================================================== */

@media (min-width: 768px) {
    .split-footer {
        padding: 2.5rem 0 2rem;
    }

    .split-footer-container {
        padding: 0 2rem;
    }

    .split-footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2.5rem;
    }

    .split-footer-brand {
        justify-content: flex-start;
    }

    .split-footer-downloads {
        gap: 1.25rem;
    }

    .split-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .split-footer-divider {
        margin: 0 2.5rem 2.5rem;
    }

    .split-download-img {
        height: 44px;
    }
}

/* ===================================================================
   LARGE DESKTOP BREAKPOINT - 1024px and up
   =================================================================== */

@media (min-width: 1024px) {
    .split-footer-container {
        padding: 0 3rem;
    }

    .split-footer-divider {
        margin: 0 3rem 2.5rem;
    }

    .split-download-img {
        height: 48px;
    }
}

/* ===================================================================
   ACCESSIBILITY & FOCUS STATES
   =================================================================== */

.split-download-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .split-download-btn,
    .split-footer-link::after {
        transition: none;
    }
}
