/* Pro-Monty - Vital Mountain Huisstijl */
:root {
    --vital-green: #4CAF7D;
    --slate-blue: #2C4A6E;
    --coral-orange: #E8845A;
    --light-green: #E8F5EE;
    --light-blue: #EEF2F7;
    --white: #FFFFFF;
    --text-dark: #1A2E3B;
    --text-muted: #6B8299;
    --shadow: 0 4px 16px rgba(44, 74, 110, 0.15);
    --shadow-card: 0 6px 24px rgba(44, 74, 110, 0.18);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--vital-green);
    background-image: linear-gradient(135deg, #4CAF7D 0%, #3D9E6E 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Header */
header {
    background: var(--slate-blue);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
}

.logo-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--coral-orange);
}

.logo-slogan {
    color: var(--vital-green);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}

nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--coral-orange);
}

/* Main layout */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Profielen balk */
.profiles-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    flex: 1;
    min-width: 140px;
    text-align: center;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border: 3px solid transparent;
    text-decoration: none;
    color: inherit;
}

.profile-card:hover {
    transform: translateY(-2px);
}

.profile-card.active {
    border-color: var(--coral-orange);
}

.profile-card.inactive {
    opacity: 0.45;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.avatar-gbp       { background: #E8F5EE; }
.avatar-histamine { background: #FFF3E8; }
.avatar-kracht    { background: #E8EEF5; }
.avatar-basketbal { background: #F5EBE8; }

.profile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--slate-blue);
}

.profile-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sectietitel */
.section-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

/* Maaltijd kaarten */
.meals-grid {
    display: grid;
    gap: 14px;
}

.meal-card {
    background: var(--coral-orange);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.meal-slot-badge {
    background: rgba(255,255,255,0.25);
    color: var(--white);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.meal-info {
    flex: 1;
}

.meal-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.meal-meta {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
}

.meal-protein {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.bypass-bite-badge {
    background: var(--slate-blue);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Receptenlijst */
.recipe-grid {
    display: grid;
    gap: 14px;
}

.recipe-card {
    background: var(--white);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}

.recipe-name {
    font-weight: 700;
    color: var(--slate-blue);
    font-size: 1rem;
    margin-bottom: 4px;
}

.recipe-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--light-green);
    color: var(--vital-green);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tag.histamine { background: #FFF3E8; color: var(--coral-orange); }
.tag.gbp       { background: #E8F5EE; color: #2E7D4F; }
.tag.kracht    { background: #E8EEF5; color: var(--slate-blue); }
.tag.bite      { background: var(--slate-blue); color: var(--white); }

/* Admin */
.admin-section {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

.admin-title {
    font-weight: 700;
    color: var(--slate-blue);
    font-size: 1rem;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

th {
    text-align: left;
    color: var(--text-muted);
    padding: 8px 10px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

td {
    padding: 10px 10px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-dark);
}

/* Profiel pagina */
.profiel-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.profiel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profiel-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.profiel-naam {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-blue);
}

.profiel-type {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-block {
    background: var(--light-green);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.info-block h3 {
    color: var(--slate-blue);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-block p, .info-block li {
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.6;
}

.info-block ul {
    padding-left: 16px;
}

.info-block.warning {
    background: #FFF3E8;
    border-left: 4px solid var(--coral-orange);
}

/* Eiwit progress bar */
.protein-bar-wrap {
    background: var(--light-green);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.protein-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--slate-blue);
    font-weight: 600;
}

.protein-bar {
    background: rgba(76, 175, 125, 0.2);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.protein-bar-fill {
    background: var(--vital-green);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Responsive */
@media (max-width: 600px) {
    .profiles-bar {
        gap: 8px;
    }
    .profile-card {
        min-width: 100px;
        padding: 12px 8px;
    }
    header {
        padding: 12px 16px;
    }
    nav a {
        margin-left: 12px;
        font-size: 0.8rem;
    }
}
