/* Modern CBC Footer Styling */

.globalFooter {
    background: #ffffff;
    color: #333333;
    margin-top: 50px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-top: 1px solid #e0e0e0;
}

.footerBody {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.footerColumn {
    padding: 0;
}

.footerHeading {
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    display: inline-block;
}

.footerList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footerItem {
    margin-bottom: 8px;
}

.footerLink {
    color: #0550c8;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.footerLink:hover,
.footerLink:focus {
    color: #cc0000;
    text-decoration: none;
}

.privacyPreferences {
    background: none;
    border: none;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.privacyPreferences:hover,
.privacyPreferences:focus {
    color: #cc0000;
}

/* Contact section specific styling */
.footerColumn.contact p {
    color: #666666;
    font-size: 14px;
    line-height: 1.4;
    margin: 15px 0;
}

/* Accessibility section specific styling */
.footerColumn.accessibility .footerColumnBody p {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0;
}

/* Basic footer (bottom section) */
.basicFooter {
    background: #1a1a1a;
    border-top: 1px solid #333333;
    padding: 20px 0;
}

.basicFooter .footerBody {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.basicFooter .extendedLogo img {
    max-height: 40px;
    width: auto;
}

.basicFooter .copyright {
    color: #ffffff;
    font-size: 14px;
}

.basicFooter .radioCanada a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.basicFooter .radioCanada a:hover {
    color: #ffffff;
}

/* Screen reader only text */
.a11y {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 768px) {
    .footerBody {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 30px 15px;
    }
    
    .basicFooter .footerBody {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footerHeading {
        font-size: 15px;
    }
    
    .footerLink,
    .privacyPreferences,
    .footerColumn.contact p,
    .footerColumn.accessibility .footerColumnBody p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footerBody {
        grid-template-columns: 1fr;
        padding: 25px 10px;
        text-align: center;
    }
    
    .footerColumn {
        text-align: center;
    }
    
    .footerHeading {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 auto 15px auto;
    }
    
    .footerList {
        text-align: center;
    }
    
    .footerColumn.contact p {
        text-align: center;
    }
    
    .footerColumn.accessibility .footerColumnBody {
        text-align: center;
    }
    
    .footerColumn.accessibility .footerColumnBody p {
        text-align: center;
    }
    
    .basicFooter .footerBody {
        padding: 0 10px;
    }
}

/* Logo styling */
.imageMedia {
    margin: 0;
}

.imageMedia img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.extendedLogoLink:hover .imageMedia img {
    opacity: 1;
}

/* Logo styling for dark basicFooter */
.basicFooter .imageMedia img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.basicFooter .extendedLogoLink:hover .imageMedia img {
    opacity: 1;
}

/* Focus states for accessibility */
.footerLink:focus,
.privacyPreferences:focus,
.extendedLogoLink:focus,
.radioCanada:focus {
    outline: 2px solid #cc0000;
    outline-offset: 2px;
}

/* Persistent player styling */
.persistent-player-persist-container {
    background: #1a1a1a;
    color: #ffffff;
    border-top: 1px solid #333333;
}

.persistent-player-inner-container {
    background: #1a1a1a;
}

.persistent-player {
    background: #1a1a1a;
}

.persistent-player-video-ui {
    background: #1a1a1a;
    color: #ffffff;
}

.close-persistent-player-button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-persistent-player-button:hover {
    color: #cc0000;
}

.media-showname,
.media-timestamp {
    color: #ffffff;
}
