/* ==========================================
   VM SPORTS CANADA
   CUSTOM STYLES
   ========================================== */


/* ==========================================
   1. FOOTER - SOCIAL MEDIA ICONS
   ========================================== */

footer .wp-block-social-links
.wp-social-link a {
    color: #ffffff !important;
}

footer .wp-block-social-links
.wp-social-link svg,
footer .wp-block-social-links
.wp-social-link svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}


/* ==========================================
   2. FOOTER - HEADINGS
   ========================================== */

footer .wp-block-heading,
footer .widget-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}


/* ==========================================
   3. FOOTER - NAVIGATION
   ========================================== */

footer .wp-block-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

footer .wp-block-list li {
    margin-bottom: 6px;
    line-height: 1.4;
}

footer .wp-block-list a,
footer .wp-block-list a:link,
footer .wp-block-list a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

footer .wp-block-list a:hover,
footer .wp-block-list a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}


/* ==========================================
   4. FOOTER - RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {

    footer .widget-area,
    footer .wp-block-group {
        max-width: 100%;
        box-sizing: border-box;
    }

}


/* ==========================================
   5. GOOGLE PREFERRED SOURCES CARD
   ========================================== */

.vms-google-card {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 16px;

    padding: 26px 20px;
    margin: 0 0 25px;

    text-align: center;
    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}


/* ==========================================
   6. GOOGLE CARD - LOGOS
   ========================================== */

.vms-google-card .vms-google-logos {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 0 22px !important;
    padding: 0 !important;
}

.vms-google-card .vms-google-logos img {
    display: block !important;
    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.vms-google-card
.vms-google-logos img.vms-google-logo {
    width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
}

.vms-google-card
.vms-google-logos img.vms-brand-logo {
    width: 110px !important;
    max-width: 110px !important;
    height: 65px !important;
    max-height: 65px !important;
}

.vms-google-card .vms-google-divider {
    display: block !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 48px !important;

    background: #d1d5db !important;
    flex-shrink: 0 !important;
}


/* ==========================================
   7. GOOGLE CARD - MESSAGE
   ========================================== */

.vms-google-card .vms-google-message {
    display: block;

    color: #4b5563 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;

    text-align: center !important;

    margin: 0 0 22px !important;
    padding: 0 !important;
}


/* ==========================================
   8. GOOGLE CARD - OFFICIAL BUTTON
   ========================================== */

.vms-google-card .vms-google-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100%;
    min-height: 44px;

    margin: 0 auto;
    padding: 0;
}


/* ==========================================
   9. GOOGLE CARD - MOBILE
   ========================================== */

@media (max-width: 767px) {

    .vms-google-card {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .vms-google-card .vms-google-logos {
        gap: 14px !important;
        margin-bottom: 18px !important;
    }

    .vms-google-card
    .vms-google-logos img.vms-google-logo {
        width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
    }

    .vms-google-card
    .vms-google-logos img.vms-brand-logo {
        width: 95px !important;
        max-width: 95px !important;
        height: 58px !important;
    }

    .vms-google-card .vms-google-message {
        font-size: 16px !important;
    }

}


/* VM Sports - Google Preferred Sources CTA */

.vms-google-card a.vms-google-cta,
.vms-google-card a.vms-google-cta:visited {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #c9252c;
    color: #ffffff !important;
    padding: 15px 18px;
    border-radius: 7px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.vms-google-card a.vms-google-cta:hover,
.vms-google-card a.vms-google-cta:focus {
    background: #a91e25;
    color: #ffffff !important;
    text-decoration: none !important;
}


/* VM Sports - Footer layout refinement */
/* Desktop only */

@media (min-width: 1025px) {

  footer .footer-widgets .container,
  footer .footer-widget-area .container,
  footer .footer-widget-wrapper {
    column-gap: 32px;
  }

  /* Reduce excessive spacing after the widgets */
  footer .footer-widgets,
  footer .footer-widget-area {
    padding-bottom: 35px;
  }

}

/* Social icon spacing */

footer .wp-block-social-links {
    gap: 14px !important;
    margin-top: 14px !important;
}

footer .wp-block-social-links .wp-social-link {
    margin: 0 !important;
}

/* VM Sports - NHL Compact Sidebar */

/* Hide W, L and OT columns */
.vms-nhl-compact .vms-nhl-v3 th:nth-child(4),
.vms-nhl-compact .vms-nhl-v3 td:nth-child(4),
.vms-nhl-compact .vms-nhl-v3 th:nth-child(5),
.vms-nhl-compact .vms-nhl-v3 td:nth-child(5),
.vms-nhl-compact .vms-nhl-v3 th:nth-child(6),
.vms-nhl-compact .vms-nhl-v3 td:nth-child(6) {
    display: none !important;
}

/* Compact table */
.vms-nhl-compact .vms-nhl-v3 {
    padding: 14px 10px;
}

.vms-nhl-compact .vms-nhl-v3 th,
.vms-nhl-compact .vms-nhl-v3 td {
    padding: 9px 4px;
    font-size: 12px;
}

/* Team names and logos */
.vms-nhl-compact .vms-nhl-v3-team {
    min-width: 0;
    gap: 6px;
    white-space: normal;
}

.vms-nhl-compact .vms-nhl-v3-team img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
}

/* Compact heading */
.vms-nhl-compact .vms-nhl-v3-header h3 {
    font-size: 19px;
}

/* Division navigation */
.vms-nhl-compact .vms-nhl-v3-nav {
    gap: 5px;
}

.vms-nhl-compact .vms-nhl-v3-nav a {
    font-size: 11px;
    padding: 7px 8px;
}


/* VM Sports - NHL Full Standings Button */
/* Fix for WordPress paragraph block */

p.vms-nhl-full-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;

    margin: 14px 0 20px !important;
    padding: 12px 16px !important;

    background: linear-gradient(
        135deg,
        #020229 0%,
        #1e60d2 100%
    ) !important;

    border-radius: 8px !important;
    box-shadow: none !important;

    text-align: center !important;
    line-height: 1.4 !important;
}

p.vms-nhl-full-button a,
p.vms-nhl-full-button a:visited {
    display: inline-block !important;
    width: auto !important;

    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
}

p.vms-nhl-full-button:hover {
    background: #003e7e !important;
}

p.vms-nhl-full-button a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}


/* VM Sports - NHL Mobile Standings */

@media (max-width: 767px) {

    /* Compact NHL table on mobile */
    .vms-nhl-v3 th:nth-child(4),
    .vms-nhl-v3 td:nth-child(4),
    .vms-nhl-v3 th:nth-child(5),
    .vms-nhl-v3 td:nth-child(5),
    .vms-nhl-v3 th:nth-child(6),
    .vms-nhl-v3 td:nth-child(6) {
        display: none !important;
    }

    /* Improve team readability */
    .vms-nhl-v3-team {
        min-width: 0 !important;
        white-space: normal !important;
    }

    /* Comfortable table spacing */
    .vms-nhl-v3 th,
    .vms-nhl-v3 td {
        padding: 10px 5px !important;
        font-size: 12px !important;
    }

    /* Smaller team logos */
    .vms-nhl-v3-team img {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
    }
}


/* VM Sports - Hide duplicate NHL widget on Sports Hub only */

body.page-id-6783 .widget-area .vms-nhl-compact,
body.page-id-6783 #secondary .vms-nhl-compact,
body.page-id-6783 .sidebar .vms-nhl-compact {
    display: none !important;
}


/* VM Sports - Clean Header Social Icons */

.top-masthead .social-navigation ul#social-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
}

/* Remove all branded backgrounds */
.top-masthead .social-navigation ul#social-menu li a,
.top-masthead .social-navigation ul#social-menu li a:hover,
.top-masthead .social-navigation ul#social-menu li a:focus {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* White icons and consistent sizing */
.top-masthead .social-navigation ul#social-menu li a {
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 30px !important;
    padding: 0 !important;
    font-size: 17px !important;
    text-decoration: none !important;
}

/* Icons inherit white */
.top-masthead .social-navigation ul#social-menu li a i,
.top-masthead .social-navigation ul#social-menu li a::before,
.top-masthead .social-navigation ul#social-menu li a svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Hover effect */
.top-masthead .social-navigation ul#social-menu li a:hover {
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 767px) {
    .top-masthead .social-navigation ul#social-menu {
        justify-content: center !important;
        gap: 22px !important;
    }
}