/*
Theme Name: SportClub Modern
Version:1.8.6
*/

:root {
    --highlight: #00c853;
}

/* GLOBAL */

/* Smooth black to green transition */
body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(180deg,
            var(--gradient-start) 0%,
            var(--gradient-start) 15%,
            var(--gradient-end) 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
}

/* HEADER */

.site-header {
    background: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.shrink {
    padding: 12px 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* LOGO STRICT 1/3 */

.header-logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.header-logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

/* NAV 2/3 */

.main-nav {
    flex-grow: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-wrap: nowrap;
}

.main-nav li {
    position: relative;
    margin: 0 !important;
    /* Ensure no floating items */
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-family: 'Rubik', sans-serif;
    color: #ffffff;
    padding: 8px 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .06em;
    transition: all 0.3s ease;
    border-radius: 50px;
    white-space: nowrap;
    display: block;
    text-decoration: none;
}

.main-nav a:hover {
    background: #0b6230;
    color: #ffffff;
}

.current-menu-item>a,
.current_page_item>a {
    background: rgba(11, 98, 48, 0.3);
    border: 1px solid #0b6230;
}

/* DESKTOP DROPDOWN */

/* Dropdown container */
.main-nav ul ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 10px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 200px;
    z-index: 1001;
}

/* Show on hover */
.main-nav li:hover>ul {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Dropdown links */
.main-nav ul ul li a {
    color: #111;
    padding: 10px 18px;
    display: block;
}

/* Hover effect */
.main-nav ul ul li a:hover {
    background: var(--gradient-end);
    color: #fff;
}

/* HAMBURGER */

.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    position: absolute;
    right: 30px;
    top: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: .3s;
    border-radius: 3px;
}

/* Animate to X */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* CONTENT */

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* GREEN TITLE BAR */

.page-title {
    background: var(--highlight);
    padding: 20px 30px;
    border-radius: 16px;
    color: white;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

/* FOOTER */

.site-footer {
    background: var(--footer-bg);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* OFF-CANVAS MOBILE */

@media(max-width:900px) {

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 100px;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
    }

    .main-nav li {
        width: 100%;
        text-align: left;
    }

    .main-nav ul ul {
        position: relative;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        transform: none;
        left: 0;
        width: 100%;
        min-width: unset;
        box-shadow: none;
        border-radius: 10px;
        margin-top: 5px;
        padding: 5px 0;
    }

    .main-nav li.open>ul {
        display: block;
    }

    .main-nav a {
        padding: 15px 0;
        display: block;
        border-radius: 0;
    }

    .main-nav a:hover {
        background: none;
        color: var(--highlight);
    }

    .main-nav ul ul a {
        color: #ccc;
        padding: 10px 20px;
        text-transform: none;
        font-weight: 500;
        font-size: 0.9em;
    }

    .main-nav ul ul a:hover {
        color: #fff;
    }

    /* caret */

    .menu-item-has-children>a:after {
        content: " ▾";
        float: right;
        transition: 0.3s;
    }

    .menu-item-has-children.open>a:after {
        transform: rotate(180deg);
    }
}

/* MATCHES PAGE STYLES */

.matches-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-select-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.team-select-form label {
    font-weight: 600;
    color: #333;
}

.team-select-form select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    font-family: inherit;
    font-size: 1rem;
    min-width: 100px;
}

.btn-submit {
    background: var(--highlight);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 200, 83, 0.3);
    background: #00b34a;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.matches-table th {
    text-align: left;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #eee;
}

.matches-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.matches-table tr:hover {
    background: rgba(0, 200, 83, 0.03);
}

.match-id {
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
}

.match-datetime {
    display: flex;
    flex-direction: column;
}

.match-datetime .date {
    font-weight: 600;
    color: #333;
}

.match-datetime .time {
    font-size: 0.85rem;
    color: #888;
}

.home-team,
.away-team {
    font-weight: 500;
}

.is-olsene {
    color: var(--highlight);
    font-weight: 700;
}

.vs {
    text-align: center;
    color: #bbb;
    font-style: italic;
    font-size: 0.8rem;
    width: 30px;
}

.score-badge {
    background: #444;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    display: inline-block;
    min-width: 45px;
    text-align: center;
}

.no-matches {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
}

/* RESPONSIVE TABLE */
@media screen and (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }

    .matches-table th,
    .matches-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .team-select-form {
        flex-direction: column;
        align-items: stretch;
    }
}