/**
 * ============================================
 * FOOTER
 * ============================================
 */

.footer-enhanced {
    background: var(--bg-dark);
    color: var(--text-light);
    /* padding: var(--space-10) 0 var(--space-6); */
    font-family: 'Roboto', sans-serif;
}

/* Headings */
.footer-enhanced h5 {
    color: #ffffff;
    margin-bottom: var(--space-6);
    font-size: 20px;
    font-weight: 700;
    font-size: 16px !important;
}

/* Footer link sections - left align */
.footer-links > div {
    text-align: left;
}

.footer-links p {
    margin: 0 0 var(--space-2) 0;
}

/* Links */
.footer-enhanced a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-block;
}

.footer-enhanced a:hover {
    color: var(--color-primary);
    padding-left: var(--space-1);
}

/* Divider */
.footer-divider {
    border-color: var(--border-color);
    margin: var(--space-8) 0;
}

/* Logo */
.footer-logo {
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Social */
.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}

.footer-social a {
    padding:5px !important;
    font-size: 22px;
    margin: 0 var(--space-2);
    color: var(--text-muted);
    transition: var(--transition-normal);
    flex-shrink: 0;
    border: 2px solid var(--text-muted);
    border-radius: 8px;
    background:white;
    border-radius:50%;
}

.footer-social a[uk-icon="facebook"]:hover {
    color: #1877F2;
    border-color: #1877F2;
    transform: scale(1.2);
    background-color: #ffffff;
}

.footer-social a[uk-icon="twitter"]:hover {
    color: #1DA1F2;
    border-color: #1DA1F2;
    transform: scale(1.2);
    background-color: #ffffff;
}

.footer-social a[uk-icon="youtube"]:hover {
    color: #FF0000;
    border-color: #FF0000;
    transform: scale(1.2);
    background-color: #ffffff;
}

.footer-social a[uk-icon="instagram"]:hover {
    color: #FF0000;
    border-color: #FF0000;
    transform: scale(1.2);
    background-color: #ffffff;
}
/* Download Buttons */
.footer-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-download img {
    height: 38px;
    width: auto;
    max-width: 120px;
    min-width: 100px;
    margin: 5px 0;
    object-fit: contain;
    transition: var(--transition-normal);
}

.footer-download img:hover {
    transform: scale(1.1);
}

/* Copyright */
.footer-copy {
    text-align: start;
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: #888;
}

/* Cloud TV below social icons */
.footer-cloudtv {
    margin-top: var(--space-3);
    text-align: center;
}

.footer-cloudtv img {
    height: 38px;
    transition: var(--transition-normal);
}

.footer-cloudtv img:hover {
    transform: scale(1.1);
}

/* Footer Bottom - Desktop */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom > div {
    flex: 1;
    min-width: 150px;
}

.footer-bottom .footer-logo-column {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-bottom .footer-logo {
    text-align: left;
}

.footer-bottom h5 {
    text-align: center;
}

.footer-social,
.footer-download,
.footer-cloudtv {
    align-items: center;
}

/* Connect + Download inner grid */
.footer-connect-download {
    display: flex !important;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    margin: 0 !important;
}

/* Override uk-grid for inner sections */
.footer-connect-download.uk-grid {
    display: flex !important;
}

.footer-connect-section,
.footer-download-section {
    flex: 1;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    min-height: 120px;
    padding: 0px 15px 0px 15px;
    box-sizing: border-box;
}

.footer-connect-section h5,
.footer-download-section h5 {

    font-size: 20px;
    font-weight: 700;
}

.footer-social {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    flex-wrap: nowrap;
     gap: 25px; 
    width: 100%;
}

.footer-cloudtv {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.footer-download {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */

/* Tablet */
@media (max-width: 960px) {
    .footer-enhanced {
        /* padding: var(--space-8) var(--space-4); */
    }
    
    .footer-bottom {
        justify-content: center;
        gap: 30px;
    }
    
    .footer-bottom > div {
        flex: 0 0 45%;
        min-width: 120px;
    }
    
    .footer-logo {
        text-align: center;
        width: auto;
        max-width: 100%;
    }
}

/* Mobile Large (≤840px) - Logo centered, Connect+Downloads side by side */
@media (max-width: 840px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    /* Row 1: Logo centered */
    .footer-logo-column {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-4);
    }
    
    .footer-logo-column .footer-logo {
        display: inline-block;
        margin: 0 auto;
    }
    
    /* Row 2: Connect + Downloads side by side */
    .footer-connect-download {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 30px;
    }
    
    .footer-connect-section,
    .footer-download-section {
        width: auto;
        margin-bottom: 0;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-download {
        justify-content: center;
    }
}

/* Mobile Large */
@media (max-width: 640px) {
    .footer-enhanced {
        /* padding: var(--space-6) var(--space-4); */
        text-align: center;
    }

    .footer-links div {
        margin-bottom: var(--space-6);
    }

    .footer-logo {
        height: 70px;
    }
    
    .footer-logo-column {
        padding-left:0px !important;
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-4);
    }
    
    .footer-logo-column .footer-logo {
        display: block;
        margin: 0 auto;
    }

    /* Connect + Download - stack vertically on mobile */
    .footer-connect-download {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-connect-section,
    .footer-download-section {
        width: 100%;
        margin-bottom: var(--space-4);
    }
    
    .footer-social {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
	gap:0px;
        margin-bottom: var(--space-3);
    }
    
    .footer-social a {
        margin: 0 var(--space-2);
    }

    .footer-download {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-download img {
        height: 50px;
        width: auto;
        max-width: 150px;
        min-width: 100px;
        object-fit: contain;
    }
    
    .footer-cloudtv {
        margin-top: var(--space-2);
    }
    
    .footer-cloudtv img {
        height: 32px;
    }

    .footer-copy {
        font-size: var(--text-xs);
        margin-top: var(--space-6);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom > div {
        padding-left:0px !important;
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-4);
    }
    
    .footer-bottom .footer-logo {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-enhanced {
        /* padding: var(--space-5) var(--space-3); */
	        margin-bottom: 75px !important;
    }
    
    .footer-logo {
        height: 55px;
        display: block;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    
    .footer-download img {
        height: 32px;
        width: auto;
        max-width: 100px;
        min-width: 80px;
        object-fit: contain;
    }
    
    .footer-cloudtv img {
        height: 32px;
    }
    
    .footer-enhanced h5 {
        font-size: var(--text-sm);
    }
}

/* 2 columns layout below 540px for links */
@media (max-width: 540px) {
    .footer-links {
        display: flex !important;
        flex-wrap: wrap;
    }

    .footer-links > div {
        width: 50%;
        padding: var(--space-2);
        box-sizing: border-box;
    }
}
