@tailwind base;
@tailwind components;
@tailwind utilities;

:root {

    --base-space: 6px;

    --radius: 8px;
    --radius-xl: 12px;


    --color-white: white;
    --color-background: #F3F3F3;


    --color-grey-light: #E6E6E6;
    --color-grey-strong: #989898;
    --color-grey-dark: #343434;



    --color-text-sub: #a8a8a8;

    --color-lieux: #B4E256;
    --color-evenement: #F685F8;
    --color-personnes: #46A4FF;

    --shadow-center: 0 0 12px rgba(0, 0, 0, 0.2);

    --fs-fiches: 18px;
    --fs-titles: 16px;
    --fs-text: 14px;
    --fs-sub: 12px;

    --trans-normal: all .3s ease-in-out;
}

body {
    background-color: var(--color-background);
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--fs-text);
}


h1,
h2,
h3,
h4,
h5 {
    font-size: var(--fs-text);

    font-weight: 400;
}

button:hover {
    cursor: pointer;
}

.content {
    height: 100vh;
    width: 100vw;

    padding: calc(var(--base-space) * 2);

    display: grid;
    grid-template-columns: 1fr auto;
    gap: calc(var(--base-space) * 2);
}

/* MAP */

#map {
    height: 100%;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-center);

    position: relative;
}

.backButton {
    height: 40px;
    width: 40px;

    position: absolute;
    z-index: 998;
    top: calc(var(--base-space)*1.5);
    right: calc(var(--base-space)*1.5);

    background-color: var(--color-grey-strong);
    color: white;
    border-radius: var(--radius);
    border: none;

    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--trans-normal);
}




/* PANEL */

#side {
    /* background-color: khaki; */
    height: 100%;
    width: 400px;
    border-radius: var(--radius);
    overflow-y: hidden;

    position: relative;

    display: flex;
    flex-direction: column;
    gap: var(--base-space);
}


/* TODAY PANEL SECTION */
.todayPanel {
    /* height: 80px; */
    display: flex;
    gap: var(--base-space);
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-grey-light);
    padding: calc(var(--base-space) * 2);
    border-radius: var(--radius);
}

.todayPanel>div:nth-child(1) {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: calc(var(--base-space)*2);

}

.todayPanel>div:nth-child(2) {
    width: 70px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow-center);
}

#todayTime {
    background-color: var(--color-white);
    padding: 2px var(--base-space);
    border-radius: var(--radius);
}

#timeSeparator {
    animation: separator 1s infinite;
    padding: 0 2px;
}

@keyframes separator {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;

    }

    100% {
        opacity: 1;
    }
}

#todayDate {
    color: var(--color-text-sub);
    text-transform: capitalize;
}

#todayWelcoming {
    font-size: 22px;
    line-height: 1;
}



.panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--base-space);

    justify-content: space-between;
    position: relative;
}


.panelContent {
    height: 100%;

    overflow-y: scroll;
    /* scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none; */
}

.headerList {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    gap: var(--base-space);
    background: rgb(243, 243, 243);

}

.headerEvent {
    top: 0px;
    position: sticky;
    z-index: 10;
}

.headerLieux {
    top: 50px;
    position: sticky;
    z-index: 10;
}

.headerPersonnes {
    top: 100px;
    position: sticky;
    z-index: 10;
}

.contentHeader {
    padding-left: calc(var(--base-space)*1);
    padding-right: calc(var(--base-space)*2);
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    font-size: var(--fs-titles);
}

.contentHeader svg {}

.addHeader {
    aspect-ratio: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: var(--radius);
    border: none;
}

.eventList {
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: var(--base-space);

    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}



.lieuxContent {
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: var(--base-space);
}


.line {
    background-color: var(--color-white);
    height: 50px;
    width: 100%;
    border-radius: var(--radius);

    display: flex;

    overflow: hidden;
}



.lineIndicator {
    background-color: gray;
    height: 100%;
    width: 6px;
}

.indicatorLieux {
    background-color: var(--color-lieux);
}

.indicatorEvent {
    background-color: var(--color-evenement);
}

.indicatorPersonnes {
    background-color: var(--color-personnes);
}

.lineContent {
    width: 100%;
    display: flex;
    align-items: center;
    gap: calc(var(--base-space)*1);

    padding: var(--base-space);
    padding-right: calc(var(--base-space)*1.5);

}

.lineActivity {
    height: 100%;
    max-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 100%;

    font-size: 18px;

    background-color: var(--color-white);

    box-shadow: var(--shadow-center);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lineInfo {
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.lineAditional {
    width: 100%;
    overflow: hidden;
    font-size: var(--fs-sub);
    display: flex;
    justify-content: space-between;
    gap: var(--base-space);
}

.lineDescription {
    /* white-space: nowrap; */
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    max-width: 80%;

    color: var(--color-text-sub);

    font-size: var(--fs-sub);
}


.lineConseils {
    color: var(--color-text-sub);
    display: flex;
    filter: brightness(0) saturate(100%) invert(52%) sepia(98%) saturate(5%) hue-rotate(355deg) brightness(105%) contrast(99%);
}


.lineTitle {
    font-size: var(--fs-text);
}



/* FICHE */
.ficheLieux {
    display: none;
    height: 100%;
    flex-direction: column;
    gap: calc(var(--base-space)*2);
}

.ficheHeader {
    display: flex;
    height: 60px;
    border-radius: var(--radius);
    align-items: center;
    padding: calc(var(--base-space)*1.5);
    gap: var(--base-space);
}

.ficheHeaderLieux {
    background-color: var(--color-lieux);
}

.ficheHeaderEvent {
    background-color: var(--color-evenement);
}

.ficheHeader h1 {
    font-size: var(--fs-fiches);
}

.ficheActivity {
    height: 100%;
    max-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 100%;

    font-size: 20px;

    background-color: var(--color-white);

    box-shadow: var(--shadow-center);
}

.ficheImage {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}