@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@font-face {
    font-family: 'Marlboro';
    src: url('/public/fonts/Marlboro.ttf');
}

@font-face {
    font-family: 'FerroRosso';
    src: url('/public/fonts/ferro-rosso.regular.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    background-color: #ffffff;
    min-height: 100vh;
}

.header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #d9d9d9;
    align-items: center;
    position: relative;
}

.logo-section {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.logo {
    width: 60px;
    height: auto;
}

.logo-text{
    width: 230px;
    height: 60px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    color: #1e1e1e;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.nav-button:hover {
    background-color: #36393D;
    color: #fff;
}

.nav-button-active {
    background-color: #f5f5f5;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    /*white-space: nowrap;*/
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-secondary {
    background-color: #e3e3e3;
    border-color: #767676;
    color: #1e1e1e;
}

.btn-secondary:hover {
    background-color: #d4d4d4;
}

.btn-primary {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: #f5f5f5;
}

.btn-primary:hover {
    background-color: #1a1a1a;
}

.hero {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 20px 64px 25px 64px;
    width: 100%;
    min-height: 600px;
    background-color: #f5f5f5;
    justify-content: center;
}

.news-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px 64px 25px 64px;
    width: 100%;
    min-height: 765px;
    background-color: #f5f5f5;
    border: black solid 1px;
    /*justify-content: space-between;*/
}

.news-hero-header{
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}
.news-hero-cols{
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.news-column{
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news {
    display: flex;
    flex-direction: column;
    border: #0B1223 3px solid;
    border-radius: 15px;
    margin: 5px;
    box-sizing: border-box;
}
.news-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #000000;
    padding-left: 10px;
    padding-right: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-family: Marlboro, serif;
    font-size: 1.2em;
    color: #f5f5f5;
}
.news-text {
    background-color: #f5f5f5;
    color: #000000;
    padding-left: 5px;
    padding-right: 5px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}


.hero-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
h1 {
    font-size: 42px;
    font-weight: 400;
    color: #1e1e1e;
    text-align: center;
    letter-spacing: 2.5px;
    line-height: 1;
    margin: 0;
    font-family: Marlboro, serif;
}
.subtitle{
    font-size: 42px;
    font-weight: 200;
    color: #757575;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    font-family: FerroRosso, serif;
}

.motto{
    font-size: 32px;
    font-weight: 100;
    color: #757575;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    font-family: Marlboro, serif;
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 32px 32px 32px;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #d9d9d9;
}

.footer-logo {
    width: 263.75px;
    height: auto;
}

.use-cases {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 300px;
    gap: 12px;
}

.use-cases-header {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 16px;
}

.use-cases-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.4;
    white-space: nowrap;
    margin: 0;
}

.use-case-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    font-weight: 400;
    color: #1e1e1e;
    line-height: 1.4;
    white-space: nowrap;
}
.racingSeriesSelectorMain{
    display: flex;
    flex-direction: row;
}
.racingSeriesSelector{
    padding-left: 30px;
    display: flex;
    flex-direction: column;
}


/* Alap: hamburger elemek desktopon rejtve */
.rsMenuToggle { display: none; }
.rsHamburger { display: none; }
.rsPanel { display: flex; }

.image-block {
    text-align: center;        /* középre igazítás */
    margin: 20px 0;
}

.image-block img {
    max-width: 100%;
    height: auto;
}

.image-block figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

.statistics-table {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 5px;
    box-sizing: border-box;
    gap: 8px;

}
.statistics-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 300px;
    border: #0B1223 3px solid;
    border-radius: 15px;
    margin: 5px;
    box-sizing: border-box;
}

.statistics-title{
    display: flex;
    align-content: center;
    text-align: center;
    background-color: #000000;
    padding-left: 10px;
    padding-right: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-family: Marlboro, serif;
    font-size: 1.2em;
    color: #f5f5f5;
}

.statistics-count {

    background-color: #f5f5f5;
    color: #000000;
    padding-left: 5px;
    padding-right: 5px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav {
        justify-content: flex-start;
        width: 100%;
    }

    .auth-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .btn {
        flex: 1;
    }

    .hero {
        padding: 80px 32px;
        min-height: 400px;
    }

    h1 {
        font-size: 48px;
    }
    .hero-title {
        letter-spacing: -1.44px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .footer {
        padding: 32px 32px 32px 32px;
    }

    .footer-logo {
        width: 100%;
        max-width: 263.75px;
    }

    .use-cases {
        width: 100%;
    }
    @font-face {
        font-family: 'Marlboro';
        src: url('/public/fonts/Marlboro.ttf');
    }
}

@media (max-width: 480px) {
    h1{
         font-size: 36px;
    }
    .logo{
        display: none;
    }
    .header {
        padding: 16px;
    }

    .hero{
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 20px 16px 25px 16px; /* felülírja a korábbi 60px 16px-et, ha kell */
    }
    .hero-title {
        letter-spacing: -1.08px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .footer {
        padding: 16px 16px 16px 16px;
    }
    .news-hero-cols{
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    @font-face {
        font-family: 'Marlboro';
        src: url('/public/fonts/Marlboro.ttf');
    }

    /* ====== HAMBURGER: racingSeriesSelectorMain ====== */
    .racingSeriesSelectorMain{
        width: 100%;
        flex-direction: column;   /* eddig row */
        position: relative;
    }

    .rsHamburger{
        display: inline-flex;
        flex-direction: column;   /* ⬅️ EZ HIÁNYZOTT */
        gap: 4px;                 /* ⬅️ ez ad teret a csíkok között */
        width: 44px;
        height: 38px;
        align-items: center;
        justify-content: center;
        border: 1px solid #bdbdbd;
        background: #fff;
        border-radius: 10px;
        cursor: pointer;
    }

    .rsHamburger span{
        display: block;
        width: 18px;
        height: 2px;
        background: #1e1e1e;
        margin: 2px 0;
    }

    /* Panel alapállapotban csukva */
    .rsPanel{
        display: none;
        border: 1px solid #d0d0d0;
        border-radius: 12px;
        background: #fff;
        padding: 10px;
    }

    /* Checkbox bepipálva => panel nyit */
    .rsMenuToggle:checked + .racingSeriesSelectorMain .rsPanel{
        display: block;
    }

    /* A két oszlop mobilon legyen 1 oszlop */
    .racingSeriesSelector{
        padding-left: 0;          /* eddig 30px */
        width: 100%;
    }

    /* rs-item-ek legyenek szélesebbek, jobban tappolhatók */
    .rs-item{
        width: 100%;
        max-width: none;
        margin: 6px 0;
        justify-content: flex-start;
    }

    /* ====== CALENDAR: táblázat -> lista ======
   A te naptárad a #calendarContainer-ben egy .calendar-table <table> :contentReference[oaicite:3]{index=3}
*/

    #calendarContainer .calendar-table,
    #calendarContainer .calendar-table thead,
    #calendarContainer .calendar-table tbody,
    #calendarContainer .calendar-table tr,
    #calendarContainer .calendar-table th,
    #calendarContainer .calendar-table td{
        display: block;
        width: 100%;
    }

    /* Fejléc eltüntetése (Mon..Sun), helyette cellánként címke */
    #calendarContainer .calendar-table thead{
        display: none;
    }

    /* Sorok közti tér */
    #calendarContainer .calendar-table tr{
        margin: 0 0 10px 0;
    }

    /* Cellák listakártya-szerűen */
    #calendarContainer .calendar-table td.calendar-cell{
        height: auto;             /* felülírja a fix 110px-et */
        min-height: 56px;
        border-radius: 12px;
        background: #fff;
        overflow: visible;
        padding: 10px;
    }

    /* Outside napok (üres) rejtése mobilon */
    #calendarContainer .calendar-table td.calendar-outside{
        display: none;
    }

    /* Nap-sorszám + események elrendezése */
    #calendarContainer .calendar-daynum{
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* NAPNEVE címke oszlop alapján (Mon..Sun) */
    #calendarContainer .calendar-table td.calendar-cell::before{
        display: inline-block;
        font-size: 12px;
        font-weight: 600;
        opacity: 0.75;
        margin-right: 10px;
        content: "";
    }
    #calendarContainer .calendar-table tr > td.calendar-cell:nth-child(1)::before { content: "Mon"; }
    #calendarContainer .calendar-table tr > td.calendar-cell:nth-child(2)::before { content: "Tue"; }
    #calendarContainer .calendar-table tr > td.calendar-cell:nth-child(3)::before { content: "Wed"; }
    #calendarContainer .calendar-table tr > td.calendar-cell:nth-child(4)::before { content: "Thu"; }
    #calendarContainer .calendar-table tr > td.calendar-cell:nth-child(5)::before { content: "Fri"; }
    #calendarContainer .calendar-table tr > td.calendar-cell:nth-child(6)::before { content: "Sat"; }
    #calendarContainer .calendar-table tr > td.calendar-cell:nth-child(7)::before { content: "Sun"; }

    /* Tooltip mobilon hover nélkül is ok, de ne lógjon rá a menüre */
    .global-tooltip{
        max-width: 260px;
    }

    .statistics-table {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin: 5px;
        box-sizing: border-box;
    }
    .statistics-col {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        border: #0B1223 3px solid;
        border-radius: 15px;
        margin: 5px;
        box-sizing: border-box;
        min-width: 100%;
    }
}
