/* Font Face Declarations */
@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Italic variants */
@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/Funnel_Sans/static/FunnelSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color__brand: #f25c00;
    --color__primary: #f25c00;
    --color__primary--light: #ff8147;
    --color__primary--lighter: #ffb999;
    --color__primary--lightest: #ffdccc;
    --color__primary--dark: #c73e00;
    --color__secondary: #4b7281;
    --color__secondary--light: #bee7ef;
    --color__secondary--lighter: #bee7ef;
    --color__secondary--lightest: #ebf8fa;
    --color__secondary--white: #ecf2f5;
    --color__secondary--dark: #263940;
    --color__secondary--overlay: rgba(222,232,237,.85);
    --color__secondary--accent: #2ea1b8;
    --color__light: #fff;
    --color__white: #fff;
    --color__black: #263940;
    --color__dark: #263940;
    --color__text: #263940;
    --color__border: #263940;
    --color__border--light: #bee7ef;
    --color__border--grey: #d2dee1;
    --color__facebook: #1877f2;
    --color__twitter: #55acee;
    --color__instagram: #d92680;
    --color__paypal: #ffc439;
    --color__linkedin: #0073b1;
    --color__xing: #006567;
    --color__error: #dc3545;
    --color__warning: #fff3cd;
    --color__border--warning: #ffeeba;
    --color__grey: #e6e6e6;
    --color__green--success: #00c78b;
    --color__green--hover: #06bc8e;
    --color_green-rp: #d9f6cb;
    --color_green-rp-text: #16461e;
    --color_green-rp-text-darker: #262c29;
    --color_green-rp-soft: #3b872c;
    --color_green-rp-background: rgba(79,181,59,.08);
    --aa-font-family__sans-serif: "Funnel Sans",system-ui,-apple-system,"Segoe UI",roboto,"Helvetica Neue","Noto Sans","Liberation Sans",arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --containerMaxWidth: 75rem;
    --articleMaxWidth: 45rem;
    --minColWidth: 17.5rem;
    --gridGapSmall: 1rem;
    --gridGap: 2rem;
    --gridGapLarge: 3rem;
    --navHeight: 3rem;
    --fsSmall: .75rem;
    --fsSmallRegular: .875rem;
    --fsRegular: 1rem;
    --fsRegularMedium: 1.125rem;
    --fsMedium: 1.25rem;
    --fsMediumLarge: 1.5rem;
    --fsLarge: 2rem;
    --fsExtraLarge: 2.5rem;
    --fwLight: 300;
    --fwRegular: 400;
    --fwBold: 700;
    --cFooterSpacing: 2rem;
    --borderRadius: .25rem;
    --borderRadiusButton: .375rem;
    --borderRadiusCard: .5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: var(--aa-font-family__sans-serif);
    line-height: 1.6;
    color: var(--color__text);
    background: linear-gradient(135deg, var(--color__secondary--lightest) 0%, var(--color__secondary--white) 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(at 40% 20%, rgba(242, 92, 0, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(46, 161, 184, 0.06) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(255, 129, 71, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(75, 114, 129, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(242, 92, 0, 0.06) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(46, 161, 184, 0.08) 0px, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color__border--light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: var(--containerMaxWidth);
    margin: 0 auto;
    padding: var(--gridGapSmall) var(--gridGap);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--fsMediumLarge);
    font-weight: var(--fwBold);
    color: var(--color__primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: var(--gridGap);
}

.nav-links a {
    color: var(--color__secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color__primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color__primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hero-section {
    background: linear-gradient(135deg, var(--color__primary--light) 0%, var(--color__primary) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--color__white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content h1 {
    font-size: var(--fsExtraLarge);
    font-weight: var(--fwBold);
    margin-bottom: var(--gridGapSmall);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: var(--fsMediumLarge);
    margin-bottom: var(--gridGapSmall);
    opacity: 0.95;
}

.hero-description {
    font-size: var(--fsRegularMedium);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

.container {
    max-width: var(--containerMaxWidth);
    margin: 0 auto;
    padding: var(--gridGap);
    position: relative;
    z-index: 1;
}

.intro-section {
    text-align: center;
    padding: var(--gridGapLarge);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--borderRadiusCard);
    margin: var(--gridGap) 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.intro-section h2 {
    font-size: var(--fsLarge);
    color: var(--color__text);
    margin-bottom: var(--gridGapSmall);
}

.intro-section p {
    font-size: var(--fsRegularMedium);
    color: var(--color__secondary);
    max-width: 800px;
    margin: 0 auto var(--gridGap);
    line-height: 1.8;
}

.tdee-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gridGapSmall);
    max-width: 900px;
    margin: var(--gridGap) auto 0;
}

.component-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: var(--gridGapSmall);
    border-radius: var(--borderRadiusCard);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.component-card h3 {
    color: var(--color__primary);
    margin-bottom: 0.5rem;
    font-size: var(--fsRegularMedium);
}

.component-card p {
    color: var(--color__secondary);
    font-size: var(--fsSmallRegular);
    line-height: 1.6;
}

.calculator-section {
    padding: var(--gridGap) 0;
}

.calculator-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--borderRadiusCard);
    padding: var(--gridGapLarge);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.calculator-card h2 {
    font-size: var(--fsLarge);
    color: var(--color__text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.calculator-intro {
    text-align: center;
    color: var(--color__secondary);
    margin-bottom: var(--gridGap);
}

.unit-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--gridGap);
    border-radius: var(--borderRadiusButton);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.unit-btn {
    flex: 1;
    padding: 0.75rem 2rem;
    border: none;
    background: var(--color__secondary--lightest);
    color: var(--color__secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--fsRegular);
}

.unit-btn.active {
    background: var(--color__primary);
    color: var(--color__white);
}

.unit-btn:hover:not(.active) {
    background: var(--color__primary--lightest);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gridGapSmall);
    margin-bottom: var(--gridGapSmall);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--color__text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--color__secondary--light);
    color: var(--color__secondary);
    border-radius: 50%;
    font-size: var(--fsSmall);
    cursor: help;
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color__secondary--dark);
    color: var(--color__white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--borderRadius);
    font-size: var(--fsSmallRegular);
    white-space: nowrap;
    margin-bottom: 0.5rem;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.radio-group {
    display: flex;
    gap: var(--gridGapSmall);
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: var(--fwRegular);
    color: var(--color__text);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color__border--grey);
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--color__primary);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color__primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="number"],
input[type="text"],
select {
    padding: 0.75rem;
    border: 1px solid var(--color__border--grey);
    border-radius: var(--borderRadius);
    font-size: var(--fsRegular);
    transition: all 0.3s ease;
    background: var(--color__white);
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--color__primary);
    box-shadow: 0 0 0 3px rgba(242, 92, 0, 0.1);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    padding-right: 3rem;
    width: 100%;
}

.unit-label {
    position: absolute;
    right: 1rem;
    color: var(--color__secondary);
    font-weight: 500;
    pointer-events: none;
}

.height-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.activity-description {
    margin-top: 0.5rem;
    font-size: var(--fsSmallRegular);
    color: var(--color__secondary);
    font-style: italic;
}

.field-hint {
    font-size: var(--fsSmallRegular);
    color: var(--color__secondary);
    margin-top: 0.25rem;
}

.calculate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color__primary);
    color: var(--color__white);
    border: none;
    border-radius: var(--borderRadiusButton);
    font-size: var(--fsRegularMedium);
    font-weight: var(--fwBold);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--gridGap);
    box-shadow: var(--shadow-md);
}

.calculate-btn:hover {
    background: var(--color__primary--dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.calculate-btn:active {
    transform: translateY(0);
}

.results-section {
    padding: var(--gridGapLarge) 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section h2 {
    font-size: var(--fsLarge);
    text-align: center;
    color: var(--color__text);
    margin-bottom: var(--gridGap);
}

.results-summary {
    margin-bottom: var(--gridGapLarge);
}

.result-main {
    display: flex;
    justify-content: center;
    margin-bottom: var(--gridGap);
}

.result-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: var(--gridGapSmall);
    border-radius: var(--borderRadiusCard);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.result-card.primary {
    background: linear-gradient(135deg, var(--color__primary) 0%, var(--color__primary--light) 100%);
    color: var(--color__white);
    padding: var(--gridGap);
    min-width: 250px;
}

.result-card h3,
.result-card h4 {
    margin-bottom: 0.5rem;
    font-weight: var(--fwBold);
}

.result-card.primary h3 {
    font-size: var(--fsMediumLarge);
}

.result-value {
    font-size: 3rem;
    font-weight: var(--fwBold);
    margin: 0.5rem 0;
}

.result-value.small {
    font-size: var(--fsLarge);
}

.result-label {
    font-size: var(--fsRegular);
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.result-desc {
    font-size: var(--fsSmallRegular);
    opacity: 0.8;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gridGapSmall);
    max-width: 700px;
    margin: 0 auto;
}

.goals-section {
    margin: var(--gridGapLarge) 0;
}

.goals-section h3 {
    font-size: var(--fsMediumLarge);
    text-align: center;
    color: var(--color__text);
    margin-bottom: var(--gridGap);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--gridGapSmall);
    max-width: 1000px;
    margin: 0 auto;
}

.goal-card {
    background: var(--color__white);
    padding: 1.25rem;
    border-radius: var(--borderRadiusCard);
    text-align: center;
    border: 2px solid var(--color__border--grey);
    transition: all 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.goal-card.loss-extreme {
    border-color: var(--color__error);
    background: linear-gradient(to bottom, #fef2f2, white);
}

.goal-card.loss-moderate {
    border-color: var(--color__primary);
    background: linear-gradient(to bottom, var(--color__primary--lightest), white);
}

.goal-card.loss-mild {
    border-color: var(--color__primary--light);
    background: linear-gradient(to bottom, #fefce8, white);
}

.goal-card.maintain {
    border-color: var(--color__green--success);
    background: linear-gradient(to bottom, #f0fdf4, white);
}

.goal-card.gain-mild {
    border-color: var(--color__secondary--accent);
    background: linear-gradient(to bottom, var(--color__secondary--lightest), white);
}

.goal-card.gain-moderate {
    border-color: var(--color__secondary);
    background: linear-gradient(to bottom, var(--color__secondary--white), white);
}

.goal-card h4 {
    font-size: var(--fsSmallRegular);
    color: var(--color__text);
    margin-bottom: 0.5rem;
    font-weight: var(--fwBold);
}

.goal-calories {
    font-size: var(--fsMediumLarge);
    font-weight: var(--fwBold);
    color: var(--color__text);
    margin: 0.25rem 0;
}

.goal-rate {
    font-size: var(--fsSmallRegular);
    color: var(--color__secondary);
    font-weight: 500;
}

.goal-desc {
    font-size: var(--fsSmall);
    color: var(--color__secondary);
    margin-top: 0.25rem;
}

.macros-section {
    background: linear-gradient(135deg, rgba(46, 161, 184, 0.05) 0%, rgba(75, 114, 129, 0.05) 100%);
    padding: var(--gridGap);
    border-radius: var(--borderRadiusCard);
    margin: var(--gridGapLarge) 0;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color__secondary--light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.macros-section h3 {
    font-size: var(--fsMediumLarge);
    text-align: center;
    color: var(--color__text);
    margin-bottom: 0.5rem;
}

.macros-intro {
    text-align: center;
    color: var(--color__secondary);
    margin-bottom: var(--gridGap);
}

.macros-display {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--gridGap);
    align-items: center;
}

.macro-chart {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.macros-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--gridGapSmall);
}

.macro-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: var(--gridGapSmall);
    border-radius: var(--borderRadiusCard);
    border-left: 4px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.macro-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.macro-item.protein {
    border-color: var(--color__primary);
}

.macro-item.carbs {
    border-color: var(--color__secondary--accent);
}

.macro-item.fats {
    border-color: #fbbf24;
}

.macro-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.macro-icon {
    font-size: var(--fsMedium);
}

.macro-header h4 {
    font-size: var(--fsRegular);
    color: var(--color__text);
}

.macro-values {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.macro-grams {
    font-size: var(--fsMedium);
    font-weight: var(--fwBold);
    color: var(--color__text);
}

.macro-percent {
    font-size: var(--fsRegular);
    color: var(--color__secondary);
    font-weight: 500;
}

.macro-calories {
    font-size: var(--fsSmallRegular);
    color: var(--color__secondary);
}

.macro-desc {
    font-size: var(--fsSmallRegular);
    color: var(--color__secondary);
}

.recalculate-btn {
    display: block;
    margin: var(--gridGap) auto;
    padding: 0.75rem 2rem;
    background: var(--color__white);
    color: var(--color__primary);
    border: 2px solid var(--color__primary);
    border-radius: var(--borderRadiusButton);
    font-size: var(--fsRegular);
    font-weight: var(--fwBold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.recalculate-btn:hover {
    background: var(--color__primary);
    color: var(--color__white);
}

.info-section {
    padding: var(--gridGapLarge) 0;
}

.info-section h2 {
    font-size: var(--fsLarge);
    text-align: center;
    color: var(--color__text);
    margin-bottom: var(--gridGap);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gridGap);
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    padding: var(--gridGap);
    border-radius: var(--borderRadiusCard);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    color: var(--color__primary);
    margin-bottom: var(--gridGapSmall);
    font-size: var(--fsMedium);
}

.info-card p {
    color: var(--color__secondary);
    line-height: 1.8;
    margin-bottom: var(--gridGapSmall);
}

.info-card ul {
    margin-left: 1.5rem;
    color: var(--color__secondary);
    line-height: 1.8;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.formulas-section {
    background: linear-gradient(135deg, rgba(242, 92, 0, 0.05) 0%, rgba(255, 129, 71, 0.05) 100%);
    padding: var(--gridGapLarge) var(--gridGap);
    border-radius: var(--borderRadiusCard);
    margin: var(--gridGapLarge) 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(242, 92, 0, 0.1);
}

.formulas-section h2 {
    font-size: var(--fsLarge);
    text-align: center;
    color: var(--color__text);
    margin-bottom: var(--gridGap);
}

.formula-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gridGapSmall);
    margin-bottom: var(--gridGapLarge);
}

.formula-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: var(--gridGapSmall);
    border-radius: var(--borderRadiusCard);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.formula-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.formula-card h3 {
    color: var(--color__primary);
    margin-bottom: 0.5rem;
    font-size: var(--fsRegularMedium);
}

.formula-desc {
    color: var(--color__secondary);
    font-size: var(--fsSmallRegular);
    margin-bottom: var(--gridGapSmall);
}

.formula-box {
    background: var(--color__secondary--lightest);
    padding: var(--gridGapSmall);
    border-radius: var(--borderRadius);
    border-left: 3px solid var(--color__primary);
}

.formula-box p {
    font-family: 'Courier New', monospace;
    font-size: var(--fsSmallRegular);
    color: var(--color__text);
    margin-bottom: 0.5rem;
}

.formula-box p:last-child {
    margin-bottom: 0;
}

.activity-multipliers {
    margin-top: var(--gridGap);
}

.activity-multipliers h3 {
    font-size: var(--fsMediumLarge);
    color: var(--color__text);
    margin-bottom: var(--gridGapSmall);
    text-align: center;
}

.multipliers-table {
    width: 100%;
    background: var(--color__white);
    border-radius: var(--borderRadiusCard);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.multipliers-table thead {
    background: var(--color__primary);
    color: var(--color__white);
}

.multipliers-table th,
.multipliers-table td {
    padding: var(--gridGapSmall);
    text-align: left;
}

.multipliers-table tbody tr {
    border-bottom: 1px solid var(--color__border--grey);
}

.multipliers-table tbody tr:last-child {
    border-bottom: none;
}

.multipliers-table tbody tr:hover {
    background: var(--color__primary--lightest);
}

.faq-section {
    padding: var(--gridGapLarge) 0;
}

.faq-section h2 {
    font-size: var(--fsLarge);
    text-align: center;
    color: var(--color__text);
    margin-bottom: var(--gridGap);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--gridGapSmall);
}

.faq-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: var(--gridGapSmall);
    border-radius: var(--borderRadiusCard);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--color__primary);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-item h3 {
    color: var(--color__text);
    margin-bottom: 0.75rem;
    font-size: var(--fsRegularMedium);
}

.faq-item p {
    color: var(--color__secondary);
    line-height: 1.8;
}

.footer {
    background: var(--color__secondary--dark);
    color: var(--color__white);
    padding: var(--gridGap);
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: var(--containerMaxWidth);
    margin: 0 auto;
}

.footer p {
    opacity: 0.9;
    font-size: var(--fsSmallRegular);
}

.footer a {
    color: var(--color__white);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
}

.metric-input {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color__white);
        flex-direction: column;
        padding: var(--gridGapSmall);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--color__border--light);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color__border--light);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .hero-content h1 {
        font-size: var(--fsLarge);
    }
    
    .hero-subtitle {
        font-size: var(--fsMedium);
    }
    
    .container {
        padding: var(--gridGapSmall);
    }
    
    .calculator-card {
        padding: var(--gridGapSmall);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tdee-components {
        grid-template-columns: 1fr;
    }
    
    .goals-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .macros-display {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .formula-cards {
        grid-template-columns: 1fr;
    }
    
    .multipliers-table {
        font-size: var(--fsSmallRegular);
    }
    
    .multipliers-table th,
    .multipliers-table td {
        padding: 0.5rem;
    }
}

/* Educational Links Styling */
.info-card a,
.formula-card a,
.faq-item a,
.result-card h4 a,
.macro-header h4 a,
.macros-section h3 a,
.component-card p a,
label a {
    color: var(--color__primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--color__primary);
    transition: all 0.3s ease;
}

.info-card a:hover,
.formula-card a:hover,
.faq-item a:hover,
.result-card h4 a:hover,
.macro-header h4 a:hover,
.macros-section h3 a:hover,
.component-card p a:hover,
label a:hover {
    color: var(--color__primary--dark);
    border-bottom-style: solid;
}

/* Keep headers with links looking clean */
h3 a,
h4 a {
    border-bottom: none !important;
}

h3 a:hover,
h4 a:hover {
    color: var(--color__primary--dark);
}

/* Resources Section */
.resources-section {
    background: linear-gradient(135deg, rgba(75, 114, 129, 0.05) 0%, rgba(71, 164, 189, 0.05) 100%);
    padding: var(--gridGapLarge) var(--gridGap);
    border-radius: var(--borderRadiusCard);
    margin: var(--gridGapLarge) 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 114, 129, 0.1);
}

.resources-section h2 {
    text-align: center;
    color: var(--color__primary);
    margin-bottom: var(--gridGapSmall);
    font-size: var(--fsXLarge);
}

.resources-intro {
    text-align: center;
    color: var(--color__secondary);
    max-width: 600px;
    margin: 0 auto var(--gridGapLarge);
    line-height: 1.6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gridGap);
    margin-bottom: var(--gridGapLarge);
}

.resource-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: var(--gridGap);
    border-radius: var(--borderRadiusBase);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.resource-category h3 {
    color: var(--color__primary);
    font-size: var(--fsMedium);
    margin-bottom: var(--gridGapSmall);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(242, 92, 0, 0.2);
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.resource-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color__primary);
    font-weight: bold;
}

.resource-list a {
    color: var(--color__secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.resource-list a:hover {
    color: var(--color__primary);
    text-decoration: underline;
}

.disclaimer-box {
    background: linear-gradient(135deg, rgba(255, 243, 224, 0.9) 0%, rgba(255, 239, 213, 0.9) 100%);
    padding: var(--gridGap);
    border-radius: var(--borderRadiusBase);
    border-left: 4px solid var(--color__primary);
    margin-top: var(--gridGapLarge);
}

.disclaimer-box p {
    color: var(--color__secondary);
    line-height: 1.6;
    margin: 0;
    font-size: var(--fsSmallRegular);
}

.disclaimer-box strong {
    color: var(--color__primary);
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-category {
        padding: var(--gridGapSmall);
    }
    
    .resource-list {
        font-size: var(--fsSmallRegular);
    }
}

/* Share Section Styles */
.share-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--borderRadiusCard);
    padding: var(--gridGap);
    margin: var(--gridGap) 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-section h3 {
    color: var(--color__primary);
    margin-bottom: var(--gridGapSmall);
    font-size: var(--fsLarge);
}

.share-intro {
    color: var(--color__text--secondary);
    margin-bottom: var(--gridGap);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gridGapSmall);
    justify-content: center;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--borderRadiusButton);
    font-size: var(--fsRegular);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-family: var(--aa-font-family__sans-serif);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
    background-color: #1DA1F2;
}

.share-btn.facebook {
    background-color: #1877F2;
}

.share-btn.linkedin {
    background-color: #0A66C2;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.copy {
    background-color: var(--color__secondary);
}

.share-btn.native {
    background-color: var(--color__primary);
}

/* Shared Message Style */
.shared-message {
    background: linear-gradient(135deg, var(--color__primary--light) 0%, var(--color__primary) 100%);
    color: white;
    padding: var(--gridGapSmall);
    text-align: center;
    border-radius: var(--borderRadiusButton);
    margin-bottom: var(--gridGap);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}