/* =========================================================
   P&M FLORBALOVY TURNAJ
   FINALNI VERZE STYLESHEETU
   ========================================================= */


/* =========================================================
   ZÁKLAD
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090b0a;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   HLAVIČKA
   ========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: rgba(9, 11, 10, 0.55);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    width: 130px;
    display: block;
}

.logo img {
    width: 100%;
    display: block;
}

.navigation {
    display: flex;
    gap: 35px;
}

.navigation a {
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.25s;
}

.navigation a:hover {
    color: #5fe06a;
}

/* Mobilní tlačítko je součástí HTML, ale v současné verzi
   navigace se na mobilu nezobrazuje. */
.menu-button {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
    background-image: url("images/turnaj.jpg");
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 7, 6, 0.96) 0%,
        rgba(5, 7, 6, 0.80) 40%,
        rgba(5, 7, 6, 0.35) 75%,
        rgba(5, 7, 6, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding-top: 70px;
}

.hero-main {
    margin-top: 55px;
}

.small-title {
    color: #5fe06a;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

h1 {
    font-size: clamp(75px, 11vw, 170px);
    line-height: 0.8;
    letter-spacing: -8px;
    font-weight: 900;
}

h1 span {
    color: transparent;
    -webkit-text-stroke: 1px white;
}

.hero-info {
    display: flex;
    gap: 45px;
    margin-top: 40px;
}

.hero-info div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hero-info span {
    font-size: 9px;
    letter-spacing: 3px;
    color: #858c87;
}

.hero-info strong {
    font-size: 25px;
}

.countdown {
    display: flex;
    gap: 1px;
    margin-top: 45px;
}

.countdown-box {
    min-width: 105px;
    padding: 17px 20px;
    background: rgba(8, 10, 9, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.countdown-box strong {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.countdown-box span {
    display: block;
    margin-top: 9px;
    color: #858c87;
    font-size: 8px;
    letter-spacing: 3px;
}

/* Hero tlačítko */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
    margin-top: 25px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 300px;
    padding: 18px 30px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2.5px;
    transition:
        background 0.25s,
        border-color 0.25s,
        color 0.25s;
}

.hero-button span {
    color: #5fe06a;
    font-size: 20px;
    line-height: 1;
}

.hero-button:hover {
    background: #5fe06a;
    border-color: #5fe06a;
    color: #090b0a;
}

.hero-button:hover span {
    color: #090b0a;
}


/* =========================================================
   SPOLEČNÝ LABEL SEKCE
   ========================================================= */

.section-label {
    color: #3b9f45;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 25px;
}


/* =========================================================
   PROPOZICE
   ========================================================= */

.propozice-section {
    position: relative;
    padding: 80px 8% 80px;
    background: #f4f5f2;
    color: #111;
}

.propozice-container {
    max-width: 1250px;
    margin: 0 auto;
}

.propozice-header {
    margin-bottom: 55px;
}

.propozice-header h2 {
    margin: 12px 0 15px;
    font-size: clamp(50px, 6vw, 76px);
    line-height: 0.9;
    letter-spacing: -4px;
    font-weight: 700;
}

.propozice-header p {
    max-width: 500px;
    margin: 0;
    color: #777d78;
    font-size: 15px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   ZÁKLADNÍ INFORMACE
   --------------------------------------------------------- */

.propozice-info-grid {
    display: grid;
    grid-template-columns:
        1.1fr
        1.1fr
        1.2fr
        0.7fr
        1.5fr;
    border-top: 1px solid #cfd3ce;
    border-bottom: 1px solid #cfd3ce;
}

.propozice-info-card {
    position: relative;
    min-height: 185px;
    padding: 26px 24px;
    border-right: 1px solid #cfd3ce;
    display: flex;
    flex-direction: column;
}

.propozice-info-card:last-child {
    border-right: none;
}

.propozice-info-label {
    margin-bottom: 28px;
    color: #777d78;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.propozice-date {
    font-size: 21px;
    line-height: 1.35;
}


/* Začátek */

.propozice-times {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.propozice-times strong {
    font-size: 20px;
}

.propozice-times span {
    display: block;
    margin-top: 4px;
    color: #777d78;
    font-size: 10px;
}


/* Google Calendar */

.calendar-mini {
    margin-top: auto;
    width: fit-content;
    color: #3b9f45;
    text-decoration: none;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.4px;
    transition: color 0.2s;
}

.calendar-mini:hover {
    color: #111;
}


/* Kontakt */

.contact-card {
    justify-content: flex-start;
}

.contact-card .propozice-info-label {
    position: absolute;
    top: 26px;
    left: 24px;
}

.propozice-contact {
    margin-top: 58px;
    align-self: center;
    text-align: center;
    color: #111;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    word-break: break-word;
    transition: color 0.2s;
}

.propozice-contact:hover {
    color: #3b9f45;
}


/* Počet týmů */

.teams-card {
    align-items: center;
    justify-content: center;
}

.teams-card .propozice-info-label {
    position: absolute;
    top: 26px;
    left: 24px;
}

.teams-number {
    font-size: 30px;
    line-height: 1;
}


/* Místo */

.venue-card {
    padding-right: 30px;
}

.propozice-venue {
    color: #111;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s;
}

.propozice-venue span {
    color: #3b9f45;
    margin-left: 4px;
}

.propozice-venue:hover {
    color: #3b9f45;
}

.venue-card p {
    margin-top: auto;
    margin-bottom: 0;
    color: #777d78;
    font-size: 10px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   TEXTOVÉ SEKCE PROPOZIC
   --------------------------------------------------------- */

.propozice-text-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 65px;
    padding: 24px 0;
    border-bottom: 1px solid #cfd3ce;
}

.propozice-section-title span {
    color: #777d78;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.propozice-section-title h3 {
    margin: 14px 0 0;
    font-size: 30px;
    line-height: 0.95;
    letter-spacing: -1.5px;
}


/* ---------------------------------------------------------
   ČÍSLOVANÉ BODY
   --------------------------------------------------------- */

.propozice-rules-list {
    border-top: 1px solid #cfd3ce;
}

.propozice-rule {
    display: grid;
    grid-template-columns: 55px 1fr;
    align-items: center;
    min-height: 70px;
    padding: 14px 0;
    border-bottom: 1px solid #cfd3ce;
    transition: padding-left 0.2s ease;
}

.propozice-rule:hover {
    padding-left: 8px;
}

.propozice-rule > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #3b9f45;
    border-radius: 50%;
    color: #3b9f45;
    font-size: 10px;
    font-weight: 700;
}

.propozice-rule p {
    margin: 0;
    color: #343934;
    font-size: 15px;
    line-height: 1.55;
}

.propozice-rule strong {
    color: #111;
}

.propozice-rule em {
    color: #777d78;
}

/* Odkaz na Na Mlýnku */
.map-link {
    color: #111 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #2aaa4a;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.map-link:hover {
    color: #2aaa4a !important;
    border-bottom-color: #2aaa4a;
}


/* Poslední blok */
.team-rules-section {
    border-bottom: none;
}


/* =========================================================
   HISTORIE
   ========================================================= */

.history-section {
    position: relative;
    padding: 100px 8% 100px;
    background: #090b0a;
}

.history-container {
    max-width: 1250px;
    margin: 0 auto;
}

.history-heading {
    margin-bottom: 65px;
}

.history-heading h2 {
    margin: 12px 0 15px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -2px;
    font-weight: 700;
}

.history-heading p {
    max-width: 500px;
    margin: 0;
    color: #858c87;
    font-size: 16px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   ROČNÍKY
   --------------------------------------------------------- */

.history-list {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.history-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    min-height: 105px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.history-year {
    color: #5fe06a;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.history-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 35px;
    padding: 0 40px;
}

.history-place {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-place span {
    color: #666d68;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.history-place strong {
    color: #f1f3f2;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 1px;
}


/* ---------------------------------------------------------
   ODKAZY FB / GALERIE
   --------------------------------------------------------- */

.history-links {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 35px;
}

.history-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 75px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #b8beb9;
    background: transparent;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.history-links a span {
    margin-left: 0;
    color: #5fe06a;
    font-size: 11px;
}

.history-links a:hover {
    background: #5fe06a;
    border-color: #5fe06a;
    color: #090b0a;
}

.history-links a:hover span {
    color: #090b0a;
}


/* =========================================================
   GALERIE
   ========================================================= */

.gallery-section {
    position: relative;
    min-height: 100vh;
    padding: 120px 8%;
    background: #f1f3ef;
    color: #111;
}

.gallery-container {
    max-width: 1400px;
    margin: auto;
}

.gallery-heading {
    margin-bottom: 40px;
}

.gallery-heading h2 {
    font-size: clamp(60px, 9vw, 130px);
    line-height: 0.8;
    letter-spacing: -7px;
    font-weight: 900;
}

.gallery-heading p {
    max-width: 550px;
    margin-top: 30px;
    color: #6d756f;
    font-size: 16px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   FOTKY
   --------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #d9ddd8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-large {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}


/* Popisky */

.gallery-caption {
    position: absolute;
    bottom: 18px;
    left: 18px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 9px;
    letter-spacing: 3px;
}


/* Tlačítko */

.gallery-button-wrap {
    margin-top: 45px;
}

.gallery-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 18px 25px;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    transition:
        background 0.3s,
        color 0.3s;
}

.gallery-button span {
    font-size: 18px;
}

.gallery-button:hover {
    background: #111;
    color: white;
}


/* =========================================================
   SPONZOŘI
   ========================================================= */

.partners-section {
    position: relative;
    min-height: 70vh;
    padding: 140px 8%;
    background: #090b0a;
}

.partners-container {
    max-width: 1400px;
    margin: auto;
}

.partners-heading {
    margin-bottom: 70px;
}

.partners-heading h2 {
    font-size: clamp(60px, 9vw, 130px);
    line-height: 0.8;
    letter-spacing: -7px;
    font-weight: 900;
}

.partners-heading p {
    max-width: 450px;
    margin-top: 30px;
    color: #858c87;
    font-size: 16px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   LOGA
   --------------------------------------------------------- */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.partner-card {
    height: 160px;
    padding: 45px;
    background: #101311;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.3s,
        transform 0.3s;
}

.partner-card:hover {
    background: #171b18;
}

.partner-card img {
    max-width: 60%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition:
        filter 0.3s,
        opacity 0.3s,
        transform 0.3s;
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}


/* Titulární partner */
.partner-main {
    grid-column: 1 / -1;
    height: 280px;
    position: relative;
}

.partner-main img {
    max-width: 45%;
    max-height: 180px;
    width: auto;
    height: auto;
}

.partner-label {
    position: absolute;
    top: 22px;
    left: 0;
    width: 100%;
    color: white;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
}


/* =========================================================
   RESPONZIVITA – HERO
   ========================================================= */

@media (max-width: 700px) {

    .header {
        height: 75px;
        padding: 0 20px;
    }

    .logo {
        width: 90px;
    }

    .navigation {
        display: none;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content {
        width: calc(100% - 40px);
        padding-top: 80px;
    }

    .hero-main {
        margin-top: 40px;
    }

    h1 {
        font-size: 67px;
        letter-spacing: -5px;
    }

    .hero-info {
        gap: 25px;
    }

    .countdown {
        width: 100%;
    }

    .countdown-box {
        min-width: 0;
        flex: 1;
        padding: 15px 5px;
        text-align: center;
    }

    .countdown-box strong {
        font-size: 25px;
    }

    .countdown-box span {
        font-size: 6px;
        letter-spacing: 2px;
    }
}


/* =========================================================
   RESPONZIVITA – HISTORIE / PROPOZICE / SPONZOŘI
   ========================================================= */

@media (max-width: 900px) {

    /* HISTORIE */
    .history-section {
        padding: 100px 6% 110px;
    }

    .history-row {
        grid-template-columns: 70px 1fr;
        padding: 25px 0;
    }

    .history-results {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 0;
    }

    .history-links {
        grid-column: 2;
        padding: 18px 0 0;
    }

    .history-links a {
        min-width: 70px;
        padding: 8px 10px;
    }


    /* PROPOZICE */
    .propozice-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .propozice-info-card {
        border-bottom: 1px solid #cfd3ce;
    }

    .propozice-info-card:nth-child(2n) {
        border-right: none;
    }

    .propozice-info-card:last-child {
        grid-column: 1 / -1;
    }

    .propozice-text-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 45px 0;
    }


    /* SPONZOŘI */
    .partners-section {
        padding: 50px 20px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-main {
        grid-column: 1;
        height: 240px;
    }

    .partner-main img {
        max-width: 75%;
        max-height: 130px;
    }

    .partner-card:not(.partner-main) {
        height: 170px;
    }
}


/* =========================================================
   RESPONZIVITA – GALERIE
   ========================================================= */

@media (max-width: 800px) {

    .results-section,
    .gallery-section {
        padding: 100px 20px;
    }

    .gallery-heading h2 {
        font-size: 65px;
        letter-spacing: -5px;
    }

    /* Na mobilu jsou fotografie záměrně jedna pod druhou.
       Zrušíme desktopové spanování a necháme stejný rozestup. */
    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .gallery-grid .gallery-item,
    .gallery-grid .gallery-large,
    .gallery-grid .gallery-wide {
        width: 100%;
        height: 240px;
        margin: 0;
        grid-column: auto;
        grid-row: auto;
        flex: none;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-caption {
        bottom: 12px;
        left: 12px;
        padding: 7px 10px;
        font-size: 8px;
    }
}


/* =========================================================
   RESPONZIVITA – PROPOZICE MENŠÍ MOBIL
   ========================================================= */

@media (max-width: 600px) {

    .propozice-section {
        padding: 85px 6% 100px;
    }

    .propozice-header {
        margin-bottom: 40px;
    }

    .propozice-header h2 {
        font-size: 50px;
    }

    .propozice-info-grid {
        grid-template-columns: 1fr;
    }

    .propozice-info-card,
    .propozice-info-card:nth-child(2n) {
        min-height: 155px;
        border-right: none;
        border-bottom: 1px solid #cfd3ce;
    }

    .propozice-info-card:last-child {
        grid-column: auto;
        border-bottom: none;
    }

    .propozice-info-label {
        margin-bottom: 25px;
    }

    .propozice-section-title h3 {
        font-size: 27px;
    }

    .propozice-rule {
        grid-template-columns: 45px 1fr;
        gap: 10px;
    }

    .propozice-rule p {
        font-size: 14px;
    }

    .history-heading h2 {
        font-size: 42px;
    }

    .history-row {
        grid-template-columns: 60px 1fr;
    }

    .history-year {
        font-size: 17px;
    }

    .history-place strong {
        font-size: 11px;
    }

    .history-links {
        gap: 20px;
    }
}


/* =========================================================
   HOTOVO
   ========================================================= */

/* =========================================================
   MOBILNÍ MENU
   ========================================================= */

@media (max-width: 700px) {

    .menu-button {
        display: flex;
        position: relative;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        z-index: 102;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-button span {
        display: block;
        width: 22px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .navigation {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        width: min(260px, calc(100vw - 40px));
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        background: rgba(9, 11, 10, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 10px;
        letter-spacing: 2px;
        text-align: right;
    }

    .navigation a + a {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-button.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-button.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-button.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

