/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: #f4f5f6;
    color: #101820;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: #168acb;
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: #f15a24;
    text-decoration: underline;
}

.site-footer {
    margin-top: 50px;
    padding: 25px 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e5e8;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}


/* =========================================================
   LOGO
========================================================= */

.site-logo a {
    display: inline-block;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

.logo-basket {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #071a2b;
}

.logo-ozols {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #f36c21;
}

.logo-net {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #071a2b;
}

.logo-ball {
    font-size: 42px;
    margin-right: 6px;
    vertical-align: -5px;
}


/* =========================================================
   HEADER INFO
========================================================= */

.header-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-info-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #29343d;
    font-size: 15px;
    white-space: nowrap;
}

.header-info-item i {
    color: #f36c21;
    font-size: 17px;
}

.tournament-title {
    max-width: 1340px;
    margin: 20px auto 15px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    padding: 15px 15px;
}

.tournament-title h1 {
    margin: 0;
    font-size: 2rem;
}

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 40px;
}

.category-title {
    margin: 35px 0 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
}

.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tournament-list-item {
    background: #fff;
    border: 1px solid #e1e4e7;
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .15s ease;
}

.tournament-list-item:hover {
    border-color: #f36c21;
    transform: translateX(3px);
}

.tournament-list-item strong {
    font-size: 17px;
}

.tournament-list-item span {
    color: #777;
    font-size: 14px;
}


.tournament-layout {
    display: grid;
    gap: 25px;
}

.tournament-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.tournament-layout.full-width {
    grid-template-columns: 1fr;
}

.tournament-main,
.tournament-sidebar {
    min-width: 0;
}

.tournament-widget {
    margin-bottom: 30px;
}

.tournament-widget:last-child {
    margin-bottom: 0;
}

.widget {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    padding: 15px 15px;
}


/* =========================
   MENU
   ========================= */

.main-menu {
    width: 100%;
    background: #f4f5f6;
    border-bottom: 1px solid #e2e5e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.menu-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-item {
    position: relative;
}

.menu-category {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 15px;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.menu-category a {
    color: inherit;
    text-decoration: none;
}

.menu-sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.menu-arrow {
    margin-left: 5px;
    font-size: 12px;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
    z-index: 1000;
}

.menu-dropdown a {
    display: block;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.menu-dropdown a:hover {
    background: #f3f3f3;
}

.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 5rem;
    font-weight: 700;
    color: #168acb;
    line-height: 1;
}

.error-page h1 {
    margin: 15px 0 10px;
}

.error-page p {
    color: #666;
    margin-bottom: 25px;
}

.error-home {
    font-weight: 600;
}


/* Desktop — atveras ar peli */

@media (min-width: 769px) {

    .menu-item:hover .menu-dropdown {
        display: block;
    }

    .menu-toggle {
        display: none;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        border: 0;
        background: none;
        font-size: 26px;
        cursor: pointer;
        padding: 8px 10px;
    }

    .menu-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .main-menu.menu-open .menu-list {
        display: flex;
    }

    .menu-item {
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .menu-category {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 14px 10px;
    }

    .menu-dropdown {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #f7f7f7;
    }

    .menu-item.menu-open .menu-dropdown {
        display: block;
    }

    .menu-dropdown a {
        padding: 12px 25px;
    }

    .menu-item.menu-open .menu-arrow {
        transform: rotate(180deg);
    }
	
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .header-inner {
        min-height: 90px;
        padding: 0 22px;
    }

    .logo-basket,
    .logo-ozols,
    .logo-net {
        font-size: 30px;
    }

    .header-info {
        gap: 18px;
    }

    .header-info-item {
        font-size: 14px;
    }

    .menu-inner {
        padding: 0 22px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .header-inner {
        min-height: auto;

        padding: 16px 18px;

        flex-direction: column;
        align-items: flex-start;

        gap: 12px;
    }

    .site-logo {
        width: 100%;
    }

    .logo-basket,
    .logo-ozols,
    .logo-net {
        font-size: 30px;
    }

    .header-info {
        width: 100%;

        display: flex;
        justify-content: space-between;

        gap: 10px;
    }

    .header-info-item {
        font-size: 13px;
        gap: 5px;
    }

    .header-info-item i {
        font-size: 15px;
    }

    .logo-ball {
        font-size: 38px;
    }
	
	
    .site-container {
        padding: 25px 15px;
    }

    .tournament-title {
        padding: 25px 15px;
    }

    .tournament-list-item {
        padding: 14px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .tournament-layout.has-sidebar {
        grid-template-columns: 1fr;
    }

    .tournament-sidebar {
        margin-top: 5px;
    }
    .menu-inner {
        padding: 0 18px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .header-inner {
        padding: 14px 15px;
    }

    .logo-basket,
    .logo-ozols,
    .logo-net {
        font-size: 27px;
    }

    .header-info {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 18px;
    }

    .header-info-item {
        font-size: 12px;
    }

    .menu-inner {
        padding: 0 15px;
    }

}