/* =========================================================
   THULTHUL — DIET DETAIL
   Compact nutrition-first experience
========================================================= */

.tt-diet-page {
    background: #111113;
    color: #f5f5f7;
}


/* =========================================================
   CONTAINER
========================================================= */

.tt-diet-page .tt-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


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

.tt-diet-hero {
    padding: 48px 0 0;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(79, 70, 255, .14),
            transparent 32%
        ),
        #111113;

    border-bottom: 1px solid rgba(255,255,255,.08);
}


.tt-diet-back {
    display: inline-block;

    margin-bottom: 40px;

    color: #777781;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}


.tt-diet-back:hover {
    color: #ffffff;
}


.tt-diet-hero-main {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;
}


.tt-diet-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: #8f86ff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.7px;
}


.tt-diet-hero h1 {
    margin: 0;

    max-width: 850px;

    color: #ffffff;

    font-size: clamp(42px, 6vw, 72px);

    line-height: .98;

    letter-spacing: -3px;
}


.tt-diet-hero-copy p {
    max-width: 680px;

    margin: 20px 0 0;

    color: #92929b;

    font-size: 16px;

    line-height: 1.7;
}


.tt-diet-hero-badges {
    display: flex;

    gap: 7px;

    flex-shrink: 0;
}


.tt-diet-badge {
    padding: 7px 10px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;
}


.tt-diet-badge.featured {
    color: #ffffff;

    background: #5148ff;
}


.tt-diet-badge.premium {
    color: #c9c5ff;

    background: #202025;

    border: 1px solid #34343c;
}


/* =========================================================
   QUICK STATS
========================================================= */

.tt-diet-quick-stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    margin-top: 48px;

    border-top: 1px solid rgba(255,255,255,.08);
}


.tt-diet-quick-stats > div {
    padding: 20px 22px;

    border-right: 1px solid rgba(255,255,255,.08);
}


.tt-diet-quick-stats > div:last-child {
    border-right: 0;
}


.tt-diet-quick-stats span {
    display: block;

    margin-bottom: 6px;

    color: #686871;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.2px;
}


.tt-diet-quick-stats strong {
    color: #ffffff;

    font-size: 20px;
}


.tt-diet-quick-stats small {
    color: #6f6f78;

    font-size: 9px;
}


/* =========================================================
   OVERVIEW
========================================================= */

.tt-diet-overview {
    padding: 24px 0;

    background: #151517;

    border-bottom: 1px solid rgba(255,255,255,.07);
}


.tt-diet-overview-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}


.tt-diet-overview-grid > div {
    padding: 15px 18px;

    background: #1a1a1e;

    border: 1px solid rgba(255,255,255,.06);
}


.tt-diet-overview-grid span {
    display: block;

    margin-bottom: 6px;

    color: #676770;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.1px;
}


.tt-diet-overview-grid strong {
    color: #dedee2;

    font-size: 13px;
}


/* =========================================================
   WEEK
========================================================= */

.tt-diet-week {
    padding: 70px 0 100px;
}


.tt-diet-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 25px;
}


.tt-diet-section-heading > div > span {
    color: #8d84ff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.tt-diet-section-heading h2 {
    margin: 7px 0 0;

    color: #ffffff;

    font-size: 34px;

    letter-spacing: -1.5px;
}


.tt-diet-section-heading p {
    margin: 0;

    color: #777781;

    font-size: 12px;
}


/* =========================================================
   DAY NAVIGATION
========================================================= */

.tt-diet-days {
    width: 100%;
}


/* Navigation */

.tt-diet-day-navigation {
    display: flex;

    gap: 6px;

    width: 100%;

    margin-bottom: 12px;
}


.tt-diet-day-input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.tt-diet-day-tab {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-width: 82px;
    height: 46px;

    padding: 0 15px;

    cursor: pointer;

    color: #777781;

    background: #17171a;

    border: 1px solid rgba(255,255,255,.07);

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.tt-diet-day-tab span {
    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


.tt-diet-day-tab strong {
    font-size: 14px;
}


.tt-diet-day-tab:hover {
    color: #ffffff;

    border-color: rgba(255,255,255,.16);
}


/* ACTIVE DAY */

.tt-diet-day-input:checked + .tt-diet-day-tab {
    color: #ffffff;

    background: #5148ff;

    border-color: #5148ff;
}


/* =========================================================
   DAY PANELS
========================================================= */

.tt-diet-day-panels {
    width: 100%;
}


.tt-diet-day-panel {
    display: none;

    width: 100%;

    background: #18181b;

    border: 1px solid rgba(255,255,255,.08);
}


/*
   JS will control the active panel.
*/

.tt-diet-day-panel.active {
    display: block;
}


/* =========================================================
   DAY SUMMARY
========================================================= */

.tt-diet-day-summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 24px 26px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}


.tt-diet-day-summary > div:first-child > span {
    display: block;

    margin-bottom: 5px;

    color: #8d84ff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.tt-diet-day-summary h3 {
    margin: 0;

    color: #ffffff;

    font-size: 21px;
}


.tt-diet-day-summary p {
    margin: 6px 0 0;

    color: #707079;

    font-size: 11px;
}


.tt-diet-day-total {
    text-align: right;
}


.tt-diet-day-total > strong {
    color: #ffffff;

    font-size: 25px;
}


.tt-diet-day-total > span {
    margin-left: 4px;

    color: #71717a;

    font-size: 9px;
}


.tt-diet-day-total > div {
    margin-top: 5px;

    color: #777781;

    font-size: 9px;
}
/* =========================================================
   DAY PANEL
========================================================= */

.tt-diet-day-panel {
    display: none;

    background: #18181b;

    border: 1px solid rgba(255,255,255,.08);
}


/*
    Because every day input + label + panel is a sibling,
    the selected radio reveals its corresponding panel.
*/

.tt-diet-day-input:checked + .tt-diet-day-tab + .tt-diet-day-panel {
    display: block;
}


/* =========================================================
   DAY SUMMARY
========================================================= */

.tt-diet-day-summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 24px 26px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}


.tt-diet-day-summary > div:first-child > span {
    display: block;

    margin-bottom: 5px;

    color: #8d84ff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.tt-diet-day-summary h3 {
    margin: 0;

    color: #ffffff;

    font-size: 21px;
}


.tt-diet-day-summary p {
    margin: 6px 0 0;

    color: #707079;

    font-size: 11px;
}


.tt-diet-day-total {
    text-align: right;
}


.tt-diet-day-total > strong {
    color: #ffffff;

    font-size: 25px;
}


.tt-diet-day-total > span {
    margin-left: 4px;

    color: #71717a;

    font-size: 9px;
}


.tt-diet-day-total > div {
    margin-top: 5px;

    color: #777781;

    font-size: 9px;
}


/* =========================================================
   MEALS
========================================================= */

.tt-diet-meals {
    display: flex;

    flex-direction: column;

    gap: 7px;

    padding: 10px;
}


.tt-diet-meal {
    background: #111113;

    border: 1px solid rgba(255,255,255,.06);
}


.tt-diet-meal-main {
    min-width: 0;
}


.tt-diet-meal-type {
    margin-bottom: 5px;

    color: #8178ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;
}


.tt-diet-meal h4 {
    margin: 0;

    color: #eeeeef;

    font-size: 15px;
}


/* =========================================================
   MEAL HEADER
========================================================= */

.tt-diet-meal {
    display: grid;

    grid-template-columns: 1fr auto;

    align-items: center;

    column-gap: 25px;
}


.tt-diet-meal-main {
    padding: 17px 18px;
}


.tt-diet-meal-summary {
    display: flex;

    align-items: baseline;

    gap: 5px;

    padding-right: 18px;
}


.tt-diet-meal-summary strong {
    color: #ffffff;

    font-size: 17px;
}


.tt-diet-meal-summary > span {
    color: #686870;

    font-size: 8px;

    font-weight: 700;
}


.tt-diet-meal-summary .tt-meal-protein {
    margin-left: 9px;

    color: #8d84ff;

    font-size: 9px;
}


/* =========================================================
   FOOD DETAILS
========================================================= */

.tt-diet-food-details {
    grid-column: 1 / -1;

    border-top: 1px solid rgba(255,255,255,.06);
}


.tt-diet-food-details summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 11px 18px;

    cursor: pointer;

    list-style: none;

    color: #777781;

    font-size: 10px;

    font-weight: 700;
}


.tt-diet-food-details summary::-webkit-details-marker {
    display: none;
}


.tt-diet-food-details summary:hover {
    color: #b8b8c0;
}


.tt-details-arrow {
    transition: transform .2s ease;
}


.tt-diet-food-details[open] .tt-details-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   FOOD LIST
========================================================= */

.tt-diet-food-list {
    padding: 0 18px;
}


.tt-diet-food-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 12px 0;

    border-top: 1px solid rgba(255,255,255,.05);
}


.tt-diet-food-name strong {
    display: block;

    color: #dddddf;

    font-size: 12px;
}


.tt-diet-food-name span {
    display: block;

    margin-top: 3px;

    color: #66666e;

    font-size: 10px;
}


.tt-diet-food-macros {
    display: flex;

    gap: 12px;

    color: #74747d;

    font-size: 9px;

    white-space: nowrap;
}


/* =========================================================
   MEAL FOOTER
========================================================= */

.tt-diet-meal-footer {
    display: flex;

    gap: 22px;

    padding: 11px 18px;

    border-top: 1px solid rgba(255,255,255,.05);

    color: #686870;

    font-size: 9px;
}


.tt-diet-meal-footer strong {
    margin-left: 3px;

    color: #bdbdc5;
}


/* =========================================================
   EMPTY
========================================================= */

.tt-diet-empty {
    padding: 30px;

    color: #6f6f78;

    text-align: center;

    font-size: 12px;
}


/* =========================================================
   FINAL
========================================================= */

.tt-diet-final {
    padding: 70px 0;

    border-top: 1px solid rgba(255,255,255,.07);
}


.tt-diet-final-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 38px 42px;

    background: #18181b;

    border: 1px solid rgba(255,255,255,.08);
}


.tt-diet-final-inner > div > span {
    color: #8d84ff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.tt-diet-final-inner h2 {
    margin: 7px 0;

    color: #ffffff;

    font-size: 29px;

    letter-spacing: -1px;
}


.tt-diet-final-inner p {
    margin: 0;

    color: #777781;

    font-size: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .tt-diet-hero-main {
        flex-direction: column;
    }


    .tt-diet-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .tt-diet-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }


    .tt-diet-quick-stats > div:nth-child(2) {
        border-right: 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .tt-diet-page .tt-container {
        width: min(100% - 28px, 600px);
    }


    .tt-diet-hero {
        padding-top: 35px;
    }


    .tt-diet-hero h1 {
        font-size: 43px;

        letter-spacing: -2px;
    }


    .tt-diet-hero-copy p {
        font-size: 14px;
    }


    .tt-diet-quick-stats > div {
        padding: 15px;
    }


    .tt-diet-section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .tt-diet-section-heading h2 {
        font-size: 29px;
    }


    .tt-diet-day-tabs {
        grid-template-columns:
            repeat(4, 1fr);
    }


    .tt-diet-day-tab {
        gap: 3px;

        padding: 8px 5px;
    }


    .tt-diet-day-tab span {
        display: none;
    }


    .tt-diet-day-summary {
        align-items: flex-start;

        flex-direction: column;

        padding: 20px;
    }


    .tt-diet-day-total {
        width: 100%;

        text-align: left;
    }


    .tt-diet-food-item {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }


    .tt-diet-food-macros {
        flex-wrap: wrap;
    }


    .tt-diet-final-inner {
        align-items: flex-start;

        flex-direction: column;

        padding: 28px 22px;
    }

}


@media (max-width: 420px) {

    .tt-diet-day-tabs {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .tt-diet-overview-grid {
        grid-template-columns: 1fr;
    }


    .tt-diet-quick-stats {
        grid-template-columns: 1fr;
    }


    .tt-diet-quick-stats > div {
        border-right: 0;

        border-bottom: 1px solid rgba(255,255,255,.07);
    }


    .tt-diet-quick-stats > div:last-child {
        border-bottom: 0;
    }

}