* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    max-width: 100vw;
}

body {
    max-width: 100vw;
    background-color: rgb(255, 244, 239);
    color: #010e08;
    font-family: "Google Sans Flex", sans-serif;
    line-height: 1.5;
}

img, svg, canvas, video {
    max-width: 100%;
    height: auto;
}

.macro-bar-container {
    margin: 0 auto 1rem;
    max-width: 560px;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.macro-bar-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.macro-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #ececec;
    margin-bottom: 0.6rem;
}

.macro-segment {
    height: 100%;
}

.macro-segment.protein {
    background: #2d9cdb;
}

.macro-segment.carbs {
    background: #27ae60;
}

.macro-segment.fats {
    background: #f2994a;
}

.macro-bar-legend {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4f4f4f;
    flex-wrap: wrap;
}

.title {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: #379D60;
    color: rgb(255, 255, 255);
    padding: 12px 20px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 1);
    z-index: 20;
    gap: 12px;
    flex-wrap: wrap;
    
}

.title-card {
    padding-top: 0;
    font-family: Google Sans Flex;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin: 0;
    padding-left: 0;
    margin-left: 0;
}

.schedule-link {
    color: #ffffff;
    text-decoration: none;
    font-family: Google Sans Flex;
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-left: 70%;
    margin-top: 10px;
}

.schedule-link:hover {
    text-decoration: underline;
    color: #e0f2e9;
}


.logo {
    height: clamp(44px, 8vw, 60px);
    width: auto;
    margin-left: 0;
    margin-right: 0;
    display: block;
}

.home-button {
    background-color: #379D60;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.home-button:hover {
    cursor: pointer;
}

.big-text {
    margin: 120px 0 10px;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: bold;
    font-family: Google Sans Flex;
}

.slogan {
    color: #010e08;
    margin: 20px 0 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-family: Google Sans Flex;
    max-width: 560px;
}

.start-button {
    background-color: #ffffff;
    color: #379D60;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.start-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.5s ease;
}

.start-button:hover {
    background-color: #ffffffcb;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0);
    transform: translateY(-3px);
}

.start-button:hover::before {
    left: 100%;
}

.start {
    background-color: #379D60;
    color: #ffffff;
    padding: 18px 24px;
    width: 250px;
    max-width: 100%;
    height: 75px;
    border: none;
    border-radius: 50px;
    font-size: clamp(1.5rem, 2vw, 1.25rem);
    font-family: Google Sans Flex;
    cursor: pointer;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.start::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s ease;
}

.start:hover {
    background-color: #2d794b;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.start:hover::before {
    left: 100%;
}

.grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

.col1 {
    max-width: 560px;
}

.cards,
.howcard {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1220px;
    margin: 24px auto 0;
    padding: 0 20px 30px;
    margin-bottom: 50px;
}




.card-title,
.small-title {
    max-width: 1220px;
    margin: 110px auto 0;
    padding: 0 20px;
    font-family: Google Sans Flex;
    text-decoration: underline;
    text-decoration-color: #379D60;
}

.small-title h1 a {
    color: rgb(0, 0, 0);
    text-decoration: underline;
    text-decoration-color: #379d60;
}

.card1,
.card2,
.card3,
.howcard1,
.howcard2,
.howcard3 {
    border: 5px solid #379D60;
    border-radius: 30px;
    padding: 20px;
    font-family: Google Sans Flex;
    width: 100%;
    box-shadow: 0 0 20px rgb(139, 139, 139);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card1:hover,
.card2:hover,
.card3:hover,
.howcard1:hover,
.howcard2:hover,
.howcard3:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: #2d794b;
}

.card1,
.card2,
.card3 {
    margin-top: 20px;
}

.howcard1,
.howcard2,
.howcard3 {
    margin-top: 20px;
}


.card-title {
    margin-top: 250px;    
}

footer {
    background-color: #379D60;
    color: #ffffff;
    text-align: center;
    font-family: Google Sans Flex;
    margin-top: 50px;
    padding: 20px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-trigger {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    color: #ffffff;
}

.image-stack {
    position: relative;
    width: min(94vw, 500px);
    height: min(94vw, 500px);
    margin: 20px auto 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: min(90vw, 440px);
    height: min(90vw, 440px);
    object-fit: cover;
    border-radius: 50%;
    border: 24px solid #ffffff;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    opacity: 0;
    will-change: opacity, transform;
    animation: image-cycle 12s ease-in-out infinite;
    animation-fill-mode: both;
}

.hero-image.is-paused {
    animation-play-state: paused;
}

/* Scroll reveal for homepage cards and sections */
.card-title,
.cards,
.small-title,
.howcard {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.cards > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cards > .card1,
.cards > .card2,
.cards > .card3 {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cards.reveal-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.cards > *:hover {
    transform: translateY(-4px);
}

.cards.reveal-visible > *:nth-child(1) {
    transition-delay: 0.1s;
}

.cards.reveal-visible > *:nth-child(2) {
    transition-delay: 0.2s;
}

.cards.reveal-visible > *:nth-child(3) {
    transition-delay: 0.3s;
}

.howcard.reveal-visible {
    transition-delay: 0.15s;
}

.image-caption {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f4d2d;
    font-family: Google Sans Flex;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
    max-width: 90%;
    text-align: center;
    white-space: normal;
}

.image-caption.show {
    opacity: 1;
}

.gymshark {
    animation-delay: 0s;
}

.fat {
    animation-delay: 3s;
}

.black {
    animation-delay: 6s;
}

.happy {
    animation-delay: 9s;
}

@keyframes image-cycle {
    0% {
        transform: translate(0, 0) rotate(-8deg) scale(0.86);
        z-index: 1;
        opacity: 0;
    }
    8% {
        opacity: 0.2;
        transform: translate(18px, -10px) rotate(-4deg) scale(0.92);
        z-index: 2;
    }
    16% {
        opacity: 0.7;
        transform: translate(32px, -16px) rotate(0deg) scale(1);
        z-index: 3;
    }
    24% {
        opacity: 1;
        transform: translate(42px, -8px) rotate(4deg) scale(0.96);
        z-index: 4;
    }
    32% {
        opacity: 0.95;
        transform: translate(54px, -6px) rotate(4deg) scale(0.94);
        z-index: 4;
    }
    40% {
        opacity: 0.2;
        transform: translate(72px, 8px) rotate(6deg) scale(0.88);
        z-index: 2;
    }
    100% {
        opacity: 0;
        transform: translate(90px, 20px) rotate(10deg) scale(0.8);
        z-index: 1;
    }
}

.emoji-flood-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: auto;
    overflow: hidden;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.2s ease;
}

/* Hacker Typer overlay */
.hacker-overlay {
    position: fixed;
    inset: 0;
    background: #071019;
    color: #33ff88;
    font-family: 'Courier New', Courier, monospace;
    padding: 28px;
    z-index: 1100;
    overflow: auto;
}

.hacker-close {
    position: fixed;
    top: 18px;
    right: 18px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1101;
}

.hacker-pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.45;
    color: #33ff88;
}

.hacker-pre::after {
    content: '\u2588';
    display: inline-block;
    margin-left: 2px;
    animation: hacker-caret 1s steps(1) infinite;
    color: #33ff88;
}

@keyframes hacker-caret {
    50% { opacity: 0; }
}

/* Survivor game styles */
.game-ui { position: fixed; inset: 0; pointer-events: none; z-index: 1200; }
.game-top { display:flex; gap:12px; padding:12px; color:#e6fff2; font-family: Arial, sans-serif; font-weight:700; flex-wrap: wrap; }
.game-top > div { background: rgba(0,0,0,0.35); padding:6px 10px; border-radius:6px; pointer-events: auto; }
#paused { color: #ffdd57; }
#gameCanvas { display:block; max-width: 100%; height: auto; }

/* health bar */
.health-bar-outer { width: 180px; max-width: 40vw; height: 14px; background: rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; align-self: center; }
.health-bar-inner { height: 100%; width: 100%; background: linear-gradient(90deg,#ff6b6b,#ffb38c); transition: width 0.15s ease; }

/* upgrade modal */
.upgrade-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1300; padding: 16px; }
.upgrade-card { background: #071019; color: #e6fff2; padding: 18px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.6); width: 420px; max-width: 92vw; max-height: 90vh; overflow-y: auto; }
.upgrade-options { display:flex; gap:12px; margin-top:12px; flex-wrap: wrap; }
.upgrade-option { flex:1 1 120px; background: rgba(255,255,255,0.04); padding:12px; border-radius:8px; cursor:pointer; text-align:center; }
.upgrade-option:hover { background: rgba(255,255,255,0.08); }
.game-over { position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; z-index:1400; font-size: clamp(1.75rem, 6vw, 2.5rem); text-align: center; padding: 0 16px; }

.emoji-flood-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    border-radius: 50%;
    height: 42px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.emoji-flood-piece {
    position: absolute;
    display: inline-block;
    animation: emoji-float 2.4s linear forwards;
    user-select: none;
    pointer-events: none;
}

@keyframes emoji-float {
    0% {
        transform: translate3d(0, -20vh, 0) scale(0.9);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 120vh, 0) scale(1.1);
        opacity: 1;
    }
}

.celebration-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.celebration-piece {
    position: absolute;
    width: 10px;
    height: 18px;
    border-radius: 2px;
    animation: confetti-fall 4s linear forwards;
}

.celebration-emoji {
    position: absolute;
    font-size: 1.5rem;
    animation: emoji-fall 4s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translate3d(0, -20px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 110vh, 0) rotate(720deg);
        opacity: 0;
    }
}

@keyframes emoji-fall {
    0% {
        transform: translate3d(0, -20px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 110vh, 0) rotate(360deg);
        opacity: 0;
    }
}

/* QUIZ PAGE */

.quiz-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 30px 15px;
    background: #f0f8f3;
    font-family: "Google Sans Flex", sans-serif;
}

.question-box {
    width: min(100%, 550px);
    min-height: 420px;
    padding: 35px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

#progressText {
    color: #66736b;
    font-size: 14px;
}

.progress-background {
    width: 100%;
    height: 8px;
    margin: 10px 0 35px;
    background: #dfe9e2;
    border-radius: 20px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 0;
    background: #379D60;
    border-radius: 20px;
    transition: width 0.3s;
}

#question {
    margin-bottom: 25px;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
}

#answerInput {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    border: 2px solid #d5dfd8;
    border-radius: 12px;
    font-size: 17px;
    outline: none;
    box-sizing: border-box;
}

#answerInput:focus {
    border-color: #379D60;
}

.option-button {
    width: calc(50% - 12px);
    min-height: 55px;
    margin: 6px;
    padding: 10px;
    border: 2px solid #d5dfd8;
    border-radius: 12px;
    background: white;
    color: #17251c;
    font-size: 16px;
    cursor: pointer;
}

.option-button:hover {
    border-color: #379D60;
    background: #edf8f1;
}

.option-button.selected {
    border-color: #379D60;
    background: #379D60;
    color: white;
}

#error {
    min-height: 22px;
    margin-top: 12px;
    color: #c52c2c;
}

.quiz-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

#backButton,
#nextButton {
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    flex: 1 1 140px;
}

#backButton {
    border: 2px solid #379D60;
    background: white;
    color: #379D60;
}

#nextButton {
    margin-left: auto;
    border: 2px solid #379D60;
    background: #379D60;
    color: white;
}

#nextButton:hover {
    background: #287747;
}

.complete-message {
    padding: 30px;
    border-radius: 15px;
    background: #edf8f1;
    text-align: center;
}

.results-page {
    min-height: 100vh;
    background: #f7fdf9;
}

.results-container {
    max-width: 760px;
    margin: 40px auto;
    padding: 30px 20px 50px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.results-container h1,
.results-container h2 {
    margin-bottom: 12px;
    color: #1f4d2d;
}

.results-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.meal-card {
    padding: 16px 18px;
    border: 2px solid #d7ebe0;
    border-radius: 16px;
    background: #f8fffb;
}


.body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.results-container {
    background: #ffffff;
    max-width: 600px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

h1#calorieGoal {
    text-align: center;
    color: #222;
    margin-bottom: 30px;
}

.meal-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.meal-card h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meal-name {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin: 0 0 4px 0;
}

.meal-cals {
    color: #777;
    margin: 0;
}

#totalCalories {
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    color: #444;
}

#regenerateButton, .quiz-link {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #2f855a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

#regenerateButton:hover, .quiz-link:hover {
    background: #276749;
}

.no-data-message {
    text-align: center;
    color: #555;
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .col1 {
        max-width: 100%;
        text-align: center;
    }

    .cards,
    .howcard {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .image-stack {
        width: min(88vw, 420px);
        height: min(88vw, 420px);
    }

    .hero-image {
        width: min(84vw, 380px);
        height: min(84vw, 380px);
    }
}

@media (max-width: 700px) {
    .title {
        justify-content: center;
        text-align: center;
        padding: 12px 14px;
    }

    .title-card {
        width: 100%;
    }

    .logo {
        height: 48px;
    }

    .big-text {
        margin-top: 70px;
        font-size: clamp(1.7rem, 6vw, 2.3rem);
    }

    .slogan {
        margin-top: 14px;
        font-size: 1rem;
    }

    .start,
    .start-button {
        width: 100%;
        max-width: 260px;
        height: auto;
        padding: 12px 18px;
    }

    .cards,
    .howcard {
        grid-template-columns: 1fr;
        padding: 0 14px 30px;
    }

    .card-title,
    .small-title {
        margin-top: 80px;
        padding: 0 14px;
    }

    .question-box {
        width: 100%;
        min-height: auto;
        padding: 25px 20px;
    }

    .option-button {
        width: 100%;
        margin: 6px 0;
    }

    .quiz-buttons {
        flex-direction: column;
    }

    #backButton,
    #nextButton {
        width: 100%;
        margin-left: 0;
    }

    .results-container {
        margin: 20px 12px 30px;
        padding: 24px 14px 32px;
    }

    .macro-bar-container {
        padding: 0.8rem 0.75rem;
    }

    .macro-bar-legend {
        flex-direction: column;
        gap: 0.25rem;
    }

    .meal-card {
        padding: 14px;
    }

    #workoutDays,
    #athleteSessions {
        grid-template-columns: 1fr;
    }

    .upgrade-card {
        padding: 14px;
    }

    .upgrade-options {
        flex-direction: column;
    }

    .hacker-overlay {
        padding: 16px;
    }

    .game-top {
        padding: 8px;
        gap: 8px;
        font-size: 0.85rem;
    }

    .health-bar-outer {
        width: 120px;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.45;
    }

    .title {
        gap: 8px;
    }

    .home-button {
        margin: 0 auto;
    }

    .image-stack {
        width: min(90vw, 320px);
        height: min(90vw, 320px);
    }

    .hero-image {
        width: min(84vw, 300px);
        height: min(84vw, 300px);
        border-width: 16px;
    }

    .question-box {
        padding: 20px 15px;
        border-radius: 18px;
    }

    #question {
        font-size: 1.2rem;
    }

    #answerInput {
        height: 50px;
        font-size: 15px;
    }

    .game-top {
        font-size: 0.75rem;
    }

    .hacker-pre {
        font-size: 12px;
    }
}

@media (min-width: 1600px) {
    .grid,
    .cards,
    .howcard,
    .card-title,
    .small-title {
        max-width: 1440px;
    }
}

/* =========================================================
   Workout Plan Section
   ========================================================= */

.workout-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.workout-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

#workoutSplitInfo {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

#workoutDays {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.workout-day-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.workout-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.workout-day-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #222;
}

.suggestions-heading {
    margin-bottom: 30px;
}

.workout-day-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.workout-day-card li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #e5e5e5;
    font-size: 0.92rem;
    color: #444;
}

.workout-day-card li:last-child {
    border-bottom: none;
}

/* =========================================================
   Athlete Plan Section
   ========================================================= */

.athlete-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.athlete-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

#athleteInfo {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

#athleteSessions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.athlete-session-card {
    background: #fff5f0;
    border: 1px solid #f0d5c5;
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.athlete-session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.athlete-session-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    color: #b5502e;
}

.athlete-session-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.athlete-session-card li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #f0d5c5;
    font-size: 0.92rem;
    color: #444;
}

.athlete-session-card li:last-child {
    border-bottom: none;
}

/* ===== Meal recipe dropdown (add to styles.css) ===== */

.meal-dropdown {
    margin-top: 8px;
}

.meal-dropdown summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    list-style: none;
    padding: 4px 0;
}

/* hide the default triangle marker and add our own arrow */
.meal-dropdown summary::-webkit-details-marker {
    display: none;
}

.meal-dropdown summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.15s ease;
}

.meal-dropdown[open] summary::before {
    transform: rotate(90deg);
}

.meal-ingredients {
    margin: 8px 0 0 0;
    padding: 10px 14px;
    list-style: disc;
    list-style-position: inside;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

.meal-ingredients li {
    padding: 2px 0;
}

.meal-ingredients-calories {
    list-style: none;
    margin-top: 6px;
    font-weight: 600;
    opacity: 0.8;
}

/* =========================================================
   Save Schedule button (results.html) + Weekly Schedule page
   Colors match the existing green/cream theme above.
   ========================================================= */

.save-schedule-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

#saveScheduleButton {
    display: block;
    width: 100%;
    padding: 12px;
    background: #379D60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#saveScheduleButton:hover {
    background: #2d794b;
}

#saveScheduleButton:active {
    transform: scale(0.98);
}

.save-status {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #379D60;
    font-weight: 600;
    min-height: 1.2rem;
}

/* ---- Weekly Schedule page (schedule.html) ---- */

h1#scheduleHeading {
    text-align: center;
    color: #1f4d2d;
    margin-bottom: 4px;
}

h1#scheduleCalorieGoal {
    text-align: center;
    color: #222;
    margin: 20px 0 24px;
}

#scheduleSavedAt {
    text-align: center;
    color: #66736b;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

#scheduleWorkoutInfo {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

#weekDays {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

/* Rest day cards reuse .workout-day-card but read as calmer / inactive */
.workout-day-card:has(> h3:only-child) {
    background: #f3f6f4;
    border-style: dashed;
}

.workout-day-card:has(> h3:only-child) h3 {
    color: #66736b;
    font-weight: 600;
}

#noScheduleMessage {
    text-align: center;
    background: #f0f8f3;
    border: 2px dashed #379D60;
    border-radius: 16px;
    padding: 40px 20px;
    margin-top: 20px;
}

#noScheduleMessage p {
    color: #444;
    margin-bottom: 18px;
    font-size: 1rem;
}

#noScheduleMessage button {
    display: inline-block;
    width: auto;
    padding: 12px 28px;
    background: #379D60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#noScheduleMessage button:hover {
    background: #2d794b;
}

#clearScheduleButton {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 12px;
    background: white;
    color: #c52c2c;
    border: 2px solid #e6b3b3;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#clearScheduleButton:hover {
    background: #fdf2f2;
    border-color: #c52c2c;
}

@media (max-width: 700px) {
    #weekDays {
        grid-template-columns: 1fr;
    }
}