﻿:root {
    --football-bg: #0f172a;
    --football-card: #1e293b;
    --football-text: #f8fafc;
    --football-text-secondary: #94a3b8;
    --football-border: rgba(255,255,255,.08);
    --football-accent: #3b82f6;
}

.football-app {
    min-height: 100vh;
    background: var(--football-bg);
    color: var(--football-text);
}

.football-brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.football-brand-link {
    transition: all .25s ease;
}

    .football-brand-link:hover {
        transform: translateY(-2px);
    }

        .football-brand-link:hover .football-brand-name {
            color: #60a5fa;
        }

.football-logo-img,
.football-brand-name {
    transition: all .25s ease;
}

.football-brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--football-text);
    letter-spacing: -.5px;
}

.football-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.football-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    background: rgba(15,23,42,.96);
    border-bottom: 1px solid var(--football-border);
    backdrop-filter: blur(10px);
}

.football-header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 2rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.football-header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.football-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

    .football-logo i {
        color: #22c55e;
    }

.football-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.football-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

    .football-nav > a,
    .football-nav-about {
        position: relative;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--football-text-secondary);
        text-decoration: none;
        transition: all .25s ease;
    }

        .football-nav > a::after,
        .football-nav-about::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: #60a5fa;
            transition: width .25s ease;
        }

        .football-nav > a:hover,
        .football-nav-about:hover {
            color: white;
        }

            .football-nav > a:hover::after,
            .football-nav-about:hover::after {
                width: 100%;
            }

.football-nav-about {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

    .football-nav-about i {
        font-size: 0.7rem;
        transition: transform 0.25s ease;
    }

.football-nav-dropdown {
    position: relative;
}

.football-nav-submenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    background: var(--football-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

@media (min-width: 769px) {

    .football-nav-dropdown:hover .football-nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .football-nav-dropdown:hover .football-nav-about i {
        transform: rotate(180deg);
    }
}

.football-nav-dropdown.open .football-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.football-nav-dropdown.open .football-nav-about i {
    transform: rotate(180deg);
}

.football-nav-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--football-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

    .football-nav-submenu a:hover {
        color: #3b82f6;
        background-color: rgba(59, 130, 246, 0.1);
        transform: translateX(4px);
    }

    .football-nav-submenu a i {
        width: 18px;
        text-align: center;
    }

.football-theme-btn {
    border: none;
    background: transparent;
    color: var(--football-text-secondary);
    font-size: 1.25rem;
    transition: all .25s ease;
}

    .football-theme-btn:hover {
        color: #60a5fa;
        transform: rotate(20deg);
    }


/* floating bar */
.matchlens-floating-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    z-index: 9999;
}

.matchlens-floating-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 50%;
    box-sizing: border-box;
    color: var(--football-text-secondary);
    font-size: 1.35rem;
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

    .matchlens-floating-link.active {
        color: #93c5fd;
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(96, 165, 250, 0.7);
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
    }

        .matchlens-floating-link.active i {
            color: #93c5fd;
        }

        .matchlens-floating-link.active:hover {
            background: rgba(59, 130, 246, 0.3);
            box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
        }

    .matchlens-floating-link:hover {
        color: #60a5fa;
        transform: translateY(-4px) scale(1.1);
    }

    .matchlens-floating-link::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: calc(100% + 12px);
        left: 50%;
        transform: translate(-50%, 4px);
        padding: 6px 10px;
        border-radius: 7px;
        background: rgba(59, 130, 246, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .matchlens-floating-link:hover::after,
    .matchlens-floating-link:focus-visible::after {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .matchlens-floating-link:focus-visible {
        outline: 2px solid #60a5fa;
        outline-offset: 5px;
        border-radius: 4px;
    }

/* floating bar icon is clicked */
@keyframes matchlens-icon-click {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

.matchlens-floating-link:active {
    transform: scale(0.9);
}

    .matchlens-floating-link:active i {
        animation: matchlens-icon-click 0.35s ease;
    }

/* Mobile */
@media (max-width: 768px) {
    .matchlens-floating-nav {
        bottom: 15px;
        gap: 18px;
        padding: 10px 20px;
    }

    .matchlens-floating-link {
        font-size: 1.2rem;
    }
}

/* footer */
.matchlens-footer {
    width: 100%;
    box-sizing: border-box;
    margin-top: 60px;
    padding: 45px 24px 20px;
    background: #0b1220;
    border-top: 1px solid #263449;
    color: #94a3b8;
    font-family: inherit;
}

.matchlens-footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
    gap: 60px;
}

.matchlens-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

    .matchlens-footer-brand:hover {
        color: #60a5fa;
        transform: translateY(-2px);
    }

.matchlens-footer-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.matchlens-footer-description {
    max-width: 430px;
    margin: 18px 0 0;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
}

.matchlens-footer-sitemap h5 {
    margin-bottom: 18px;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 700;
}

.matchlens-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

    .matchlens-footer-links a {
        position: relative;
        width: fit-content;
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .matchlens-footer-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 100%;
            height: 2px;
            background: #3b82f6;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.25s ease;
        }

        .matchlens-footer-links a:hover {
            color: #60a5fa;
        }

            .matchlens-footer-links a:hover::after {
                transform: scaleX(1);
            }

.matchlens-footer-bottom {
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 18px;
    border-top: 1px solid #263449;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #64748b;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .matchlens-footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .matchlens-footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .matchlens-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

}

