@import url('/css/global.css');

.top {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;

    .top-title {
        font-family: var(--star-bold);
        font-size: 32px;
    }

    .top-desc {
        font-family: var(--pret-bold);
        font-size: 16px;
        color: var(--gray);
    }
}

.caffeine-bar {
    width: 100%;
    padding: 16px 24px;
    box-sizing: border-box;

    .bar {
        width: 100%;
        height: 12px;
        background-color: var(--bg-gray);
        border-radius: 20px;

        .bar-progress {
            height: 12px;
            background-color: var(--primary);
            border-radius: 20px;
            width: 10%;
            max-width: 100%;
            transition: 0.3s ease;
        }
    }

    .caption {
        margin-top: 8px;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        color: var(--gray);
        div {
            font-family: var(--star-bold);
            font-size: 12px;
        }
        .caption-today {
            transition: 0.3s ease;
            width: 10%;
            max-width: 85%;
            color: var(--primary);
            text-align: right;
        }
    }
}



.caffeine-stat {
    padding: 8px 16px;
    padding-top: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 8px;

    .caffeine-stat-item {
        width: 100%;
        background-color: var(--bg-gray);
        border-radius: 12px;
        padding: 12px 16px;

        display: flex;
        flex-direction: column;
        gap: 4px;

        .caffeine-stat-title {
            font-family: var(--pret-bold);
            font-size: 12px;
            color: var(--gray);
        }

        .caffeine-stat-number {
            font-family: var(--star-bold);
            font-size: 32px;
        }

        .caffeine-stat-desc {
            color: var(--gray);
            font-size: 10px;
        }
    }
}

.caffeine-recent {
    width: 100%;
    padding: 8px 16px;
    box-sizing: border-box;

    .caffeine-recent-title {
        padding: 16px 8px;
        font-size: 20px;
        font-family: var(--pret-bold);
    }
    
    .caffeine-recent-container {
        width: calc(100vw);
        margin-left: -16px;
        display: flex;
        flex-direction: row;
        overflow-y: auto;
        gap: 8px;
        padding-bottom: 8px;

        .caffeine-recent-item-init {
            min-width: calc(16px - 4px);
            height: 1px;
        }

        .caffeine-recent-item {
            width: 128px;
            min-width: 128px;
            height: 180px;
            text-align: center;
            padding: 10px;
            padding-top: 16px;
            box-sizing: border-box;

            border-radius: 12px;
            background-color: var(--bg-gray);

            overflow-y: hidden;

            .caffeine-recent-top {
                .caffeine-recent-brand {
                    font-family: var(--star-bold);
                    font-size: 20px;
                }

                .caffeine-recent-flavor {
                    font-family: var(--star-reg);
                    font-size: 12px;
                }

                .caffeine-recent-caffeine {
                    font-family: var(--pret-reg);
                    font-size: 12px;
                    color: var(--gray);
                }
            }

            .caffeine-recent-image {
                margin-top: 16px;
                width: 64px;
            }
        }
    }
}

.caffeine-7 {
    padding: 24px 16px;
    box-sizing: border-box;
    width: 100%;

    .caffeine-7-title {
        padding: 16px 8px;
        font-family: var(--pret-bold);
        font-size: 20px;
    }
}