/* Fonts & Basic Resets */
.intro-page-body {
    background: #000 url("/img/background/background-intro.png") no-repeat center top !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #fff;
    font-family: "Manrope", sans-serif;
}

/* Page Layout Wrapper */
.intro-page-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    max-width: 1264px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 15px;
    box-sizing: border-box;
}

/* Header Area (Centered/Narrower) */
.intro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1164px;
    width: 100%;
    margin: 0 auto 50px auto;
    padding: 0;
    box-sizing: border-box;
}
.intro-logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* Desktop Social Media */
.intro-social-desktop {
    display: block;
}
.intro-social-desktop .social-media-container {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}
.intro-social-desktop .social-media-container li {
    display: inline-block;
}
.intro-social-desktop .social-media-container li a,
.intro-social-desktop .social-media-container li .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(25, 27, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #b3b3b3;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.intro-social-desktop .social-media-container li a:hover,
.intro-social-desktop .social-media-container li .btn:hover {
    border-color: #F7E008;
    color: #F7E008;
}

/* Mobile/Tablet Footer Social Media (Centered/Narrower) */
.intro-footer-social {
    display: none;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.intro-footer-social .social-media-container {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}
.intro-footer-social .social-media-container li {
    display: inline-block;
}
.intro-footer-social .social-media-container li a,
.intro-footer-social .social-media-container li .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(25, 27, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #b3b3b3;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.intro-footer-social .social-media-container li a:hover,
.intro-footer-social .social-media-container li .btn:hover {
    border-color: #F7E008;
    color: #F7E008;
}

/* Main Content Area (Spans 100% of the Wrapper) */
.intro-main {
    width: 100%;
    margin: 0 auto 60px auto;
    display: flex;
    justify-content: center;
}
.intro-main a {
    display: block;
    width: 100%;
}

/* Banner Styling - 100% width of container */
.intro-banner-picture {
    display: block;
    width: 100%;
}
.intro-banner-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: none;
    object-fit: cover;
}

/* Match Card (Narrower/Centered) */
.intro-match-card {
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 60px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.intro-match-title {
    font-family: "Teko", sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 15px 0;
}
.intro-match-title .yellow {
    color: #F7E008;
}

.intro-match-competition {
    margin-bottom: 30px;
}
.competition-pill {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Match Teams and Score Layout */
.intro-match-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 35px;
}

.intro-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.crest-border-box {
    position: relative;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    margin-bottom: 15px;
}
.crest-border-box img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

/* Bracket Corners */
.crest-border-box .corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: #F7E008;
    border-style: solid;
    border-width: 0;
}
.crest-border-box .corner-tl {
    top: 0;
    left: 0;
    border-top-width: 3px;
    border-left-width: 3px;
}
.crest-border-box .corner-tr {
    top: 0;
    right: 0;
    border-top-width: 3px;
    border-right-width: 3px;
}
.crest-border-box .corner-bl {
    bottom: 0;
    left: 0;
    border-bottom-width: 3px;
    border-left-width: 3px;
}
.crest-border-box .corner-br {
    bottom: 0;
    right: 0;
    border-bottom-width: 3px;
    border-right-width: 3px;
}

.team-name {
    font-family: "Teko", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.team-name .desktop-name {
    display: inline;
}
.team-name .mobile-name {
    display: none;
}

/* Score Display */
.intro-score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 200px;
}
.score-digit-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "Teko", sans-serif;
    font-size: 72px;
    font-weight: 800;
    color: #fff;
    width: 90px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.score-colon {
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

/* CTA Live Button */
.intro-match-cta {
    margin-top: 15px;
}
.btn-live-cta {
    display: inline-block;
    background: #F7E008;
    color: #000;
    font-family: "Teko", sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 14px 45px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(247, 224, 8, 0.3);
    transition: all 0.2s ease;
}
.btn-live-cta:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Navigation Grid (Centered/Narrower) */
.intro-navigation {
    max-width: 1164px;
    width: 100%;
    margin: 0 auto 60px auto;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .intro-header {
        padding: 0 15px;
    }
    .intro-navigation {
        padding: 0 15px;
    }
}
.intro-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}
.intro-nav-item {
    display: flex;
    align-items: stretch;
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.2s ease;
}
.intro-nav-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex-shrink: 0;
    font-size: 22px;
    background: rgba(0, 0, 0, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}
.intro-nav-item .nav-text {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-family: "Teko", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #b3b3b3;
    box-sizing: border-box;
    width: 100%;
}
.intro-nav-item:hover {
    border-color: #F7E008;
    background-color: rgba(247, 224, 8, 0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.intro-nav-item:hover .icon {
    color: #F7E008;
    background: rgba(247, 224, 8, 0.08);
    border-right-color: #F7E008;
}

/* RESPONSIVE MEDIA QUERIES */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .intro-page-container {
        max-width: 100%;
        padding: 30px 15px;
    }

    .intro-header {
        justify-content: center;
        max-width: 668px;
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .intro-social-desktop {
        display: none; /* Hide top-right social icons */
    }

    .intro-footer-social {
        display: flex; /* Show at the bottom */
        max-width: 668px;
    }

    /* Layout reflow for Tablet Match Card */
    .intro-match-card {
        max-width: 668px;
        padding: 30px 40px;
    }

    .intro-match-display {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .intro-team.home {
        width: 50%;
        flex: none;
        order: 1;
        align-items: flex-end;
        padding-right: 30px;
    }

    .intro-team.away {
        width: 50%;
        flex: none;
        order: 2;
        align-items: flex-start;
        padding-left: 30px;
    }

    .intro-score-container {
        width: 100%;
        order: 3;
        margin-top: 30px;
        justify-content: center;
    }

    /* Grid buttons for Tablet */
    .intro-navigation {
        max-width: 860px;
        padding: 0 15px;
    }
    .intro-nav-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .intro-nav-item .nav-text {
        padding: 14px 16px;
        font-weight: 600;
        font-size: 16px;
    }
}

/* Large Mobile to Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .intro-nav-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns, 4 rows */
    }
}

/* Mobile Devices (max-width: 576px) */
@media (max-width: 576px) {
    .intro-page-container {
        max-width: 100%;
        padding: 30px 15px;
    }
    
    .intro-header {
        max-width: 320px;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    .intro-logo img {
        height: 60px;
    }
    
    .intro-footer-social {
        max-width: 320px;
        padding: 0 10px;
        margin-top: 0;
    }
    
    /* Match Card Mobile */
    .intro-match-card {
        max-width: 320px;
        padding: 25px 20px;
    }
    
    .intro-match-title {
        font-size: 24px;
    }
    
    .competition-pill {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .crest-border-box {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    .crest-border-box img {
        max-width: 75px;
        max-height: 75px;
    }
    
    .team-name {
        font-size: 17px;
    }
    .team-name .desktop-name {
        display: none;
    }
    .team-name .mobile-name {
        display: inline;
    }
    
    .intro-team.home {
        padding-right: 15px;
    }
    .intro-team.away {
        padding-left: 15px;
    }
    
    .score-digit-box {
        font-size: 56px;
        width: 70px;
        height: 85px;
    }
    .score-colon {
        font-size: 36px;
    }
    
    .btn-live-cta {
        font-size: 18px;
        padding: 12px 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Navigation Grid Mobile */
    .intro-navigation {
        max-width: 520px;
        padding: 0 10px;
    }
    .intro-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .intro-nav-item {
        padding: 0;
    }
    .intro-nav-item .icon {
        width: 44px;
        font-size: 18px;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
    .intro-nav-item .nav-text {
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 700;
    }
}
