/* ===== DESIGN TOKENS ===== */
:root {
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-text-muted: #666666;
    --color-border: #e5e5e5;
    --color-accent: #1a1a1a;
    --color-accent-hover: #000000;
    --color-surface: #fafafa;
    --color-badge-bg: #f3f3f3;
    --color-star: #f5a623;
    --color-star-empty: #ddd;
    --color-error: #e53e3e;
    --color-success: #38a169;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-logo: 'Dancing Script', cursive;
    --radius-card: 12px;
    --radius-badge: 999px;
    --radius-input: 6px;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-card-hover: 0 6px 20px rgba(0,0,0,0.12);
    --max-width: 1200px;
    --nav-height: 64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ===== LAYOUT ===== */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

.navbar-logo {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    transition: opacity 0.15s;
}
.navbar-logo:hover { opacity: 0.75; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-input);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-link:hover { color: var(--color-text); background: var(--color-badge-bg); }

.nav-link-accent {
    background: var(--color-accent);
    color: #fff !important;
}
.nav-link-accent:hover { background: var(--color-accent-hover); color: #fff !important; }

.nav-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-input);
    transition: color 0.15s, background 0.15s;
}
.nav-btn:hover { color: var(--color-text); background: var(--color-badge-bg); }

.nav-link-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-avatar-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== LOADING SPLASH ===== */
.loading-splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--color-bg);
}
.loading-logo {
    font-family: var(--font-logo);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-text);
}
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HOME LOGO ===== */
.home-logo {
    font-family: var(--font-logo);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    text-align: center;
    margin: 2.5rem 0 1rem;
    color: var(--color-text);
    letter-spacing: -1px;
    line-height: 1.1;
}

/* ===== MOUNTAIN LINE ANIMATION ===== */
.mountain-line {
    width: 100%;
    margin: 0 0 1.75rem;
    overflow: hidden;
}

.mountain-line svg {
    width: 100%;
    height: 55px;
    display: block;
}

.mountain-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: mountain-draw 5s ease-in-out forwards;
    animation-delay: 0.3s;
}

@keyframes mountain-draw {
    to { stroke-dashoffset: 0; }
}

/* ===== SEARCH & FILTERS ===== */
.search-section { margin-bottom: 2rem; }

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.filter-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding-top: 0.35rem;
    min-width: 80px;
}

.search-input-wrap {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    background: var(--color-bg);
}
.search-input:focus { border-color: var(--color-accent); }

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-badge);
    border: 1px solid var(--color-border);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-family: inherit;
}
.filter-pill:hover { border-color: var(--color-accent); color: var(--color-text); }
.filter-pill.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* ===== DIFFICULTY BADGE ===== */
.difficulty-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-badge);
    font-size: 0.72rem;
    font-weight: 600;
}
.difficulty-einfach { background: #f0fff4; color: #276749; }
.difficulty-mittel  { background: #fffbeb; color: #92400e; }
.difficulty-schwer  { background: #fff5f5; color: #c53030; }

/* ===== RECIPE GRID ===== */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ===== RECIPE CARD ===== */
.recipe-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.recipe-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.recipe-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-badge-bg);
}
.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.recipe-card:hover .recipe-card-image img { transform: scale(1.04); }

.recipe-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #c8c8c8;
}

.recipe-card-body {
    padding: 1rem 1.1rem 1.2rem;
}
.recipe-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.35;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recipe-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-badge);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--color-badge-bg);
    color: var(--color-text-muted);
}

/* ===== STARS ===== */
.stars {
    display: inline-flex;
    gap: 1px;
    align-items: center;
}
.star {
    font-size: 1rem;
    color: var(--color-star-empty);
    cursor: default;
    transition: color 0.1s;
    line-height: 1;
    user-select: none;
}
.star.filled { color: var(--color-star); }
.star.interactive { cursor: pointer; }
.star.interactive:hover { color: var(--color-star); transform: scale(1.15); }
.stars-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-left: 0.25rem;
}

/* ===== RECIPE DETAIL ===== */
.recipe-detail { max-width: 860px; }

.recipe-detail-header { margin-bottom: 1.5rem; }
.recipe-detail-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.recipe-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.recipe-detail-image {
    float: right;
    margin: 0 0 1.5rem 2rem;
    width: 320px;
    max-width: 42%;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.recipe-detail-image img { width: 100%; height: auto; display: block; }

.recipe-description {
    line-height: 1.8;
    font-size: 0.97rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}
.recipe-description::after { content: ''; display: table; clear: both; }

.recipe-section { margin-bottom: 2rem; }
.recipe-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* ===== IMAGE GALLERY ===== */
.recipe-image-gallery {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, opacity 0.15s;
    opacity: 0.7;
    flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--color-accent); opacity: 1; }

.recipe-detail-image-main {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
}
.recipe-detail-image-main img { width: 100%; height: auto; display: block; }

.ingredients-table { width: 100%; border-collapse: collapse; }
.ingredients-table td {
    padding: 0.45rem 0.6rem;
    font-size: 0.93rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.ingredients-table td:first-child {
    font-weight: 500;
    white-space: nowrap;
    width: 35%;
    color: var(--color-text-muted);
}
.ingredients-table tr:last-child td { border-bottom: none; }

.preparation-text { line-height: 1.8; font-size: 0.97rem; white-space: pre-wrap; }

/* ===== COMMENTS ===== */
.comments-section { margin-top: 2.5rem; }
.comments-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.comment-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.comment-form h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }

.comment-list { display: flex; flex-direction: column; gap: 1rem; }

.comment-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1rem 1.1rem;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.78rem; color: var(--color-text-muted); margin-left: auto; }
.comment-text { font-size: 0.93rem; line-height: 1.6; color: var(--color-text); }

/* ===== FORMS ===== */
.form-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 0;
}
.form-page h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
}
.form-group label { font-size: 0.88rem; font-weight: 500; }

.form-control, .form-select, .form-textarea {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    padding: 0.6rem 0.9rem;
    font-size: 0.97rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    background: var(--color-bg);
    color: var(--color-text);
    width: 100%;
}
.form-control:focus, .form-select:focus, .form-textarea:focus { border-color: var(--color-accent); }
.form-textarea { resize: vertical; min-height: 100px; }

.password-hint { font-size: 0.78rem; color: var(--color-text-muted); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: var(--radius-input);
    font-size: 0.93rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s, transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary { background: var(--color-badge-bg); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: #e8e8e8; }
.btn-danger { background: var(--color-error); color: #fff; }
.btn-danger:hover { background: #c53030; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ===== ALERTS ===== */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-input); margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.5; }
.alert-error { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; }
.alert-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.mt-2 { margin-top: 0.5rem; }

/* ===== RECIPE FORM ===== */
.recipe-form { max-width: 760px; }
.recipe-form h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.75rem; }

.ingredients-editor { display: flex; flex-direction: column; gap: 0.5rem; }
.ingredient-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 0.5rem;
    align-items: center;
}

/* ===== MULTI IMAGE UPLOAD ===== */
.multi-image-upload { display: flex; flex-direction: column; gap: 0.5rem; }

.image-thumb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.image-thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }

.image-thumb-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.85rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}
.image-thumb-remove:hover { background: var(--color-error); }

.image-add-tile {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px dashed var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
    background: var(--color-surface);
}
.image-add-tile:hover { border-color: var(--color-accent); background: #f5f5f5; }

.image-add-icon {
    font-size: 1.6rem;
    color: var(--color-text-muted);
    line-height: 1;
}
.image-add-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.3;
}

.image-upload-hint { font-size: 0.78rem; color: var(--color-text-muted); }

/* ===== PROFILE PAGE ===== */
.profile-page { max-width: 640px; }
.profile-page h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.75rem; }

.profile-avatar-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
}

.profile-avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    background: var(--color-badge-bg);
}

.avatar-img { width: 100%; height: 100%; object-fit: cover; }

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-logo);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: var(--color-badge-bg);
}

.profile-avatar-actions h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.profile-email { font-size: 0.88rem; color: var(--color-text-muted); }
.profile-since { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.15rem; }

.profile-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.profile-card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); }

/* ===== ADMIN ===== */
.admin-page { max-width: 600px; }
.admin-page h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.75rem; }
.admin-card { border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.admin-card p { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 1rem; }

/* ===== SUPPORT PAGE ===== */
.support-page { max-width: 740px; }

.support-hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
}
.support-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 0.5rem; }
.support-hero p { color: var(--color-text-muted); font-size: 1.05rem; }

.support-faq { margin-bottom: 2.5rem; }
.support-faq h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }

.faq-category { margin-bottom: 1.75rem; }
.faq-category h3 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 0.9rem 0;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--color-text);
    transition: color 0.15s;
}
.faq-question:hover { color: var(--color-accent-hover); }
.faq-question.open { color: var(--color-accent); }

.faq-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-question.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
    padding: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.faq-answer a { color: var(--color-accent); text-decoration: underline; }

.support-contact {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    background: var(--color-surface);
}
.support-contact h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.support-contact > p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ===== MISC ===== */
.not-found { text-align: center; padding: 4rem 0; }
.not-found h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.not-found p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

.detail-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.loading-text { text-align: center; padding: 3rem; color: var(--color-text-muted); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }

/* ===== BLAZOR ERROR UI ===== */
#blazor-error-ui {
    background: #ffecec;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.88rem;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ===== FOOTER ===== */
.app-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .navbar { padding: 0 1rem; gap: 1rem; }
    .navbar-logo { font-size: 1.4rem; }
    .nav-link { padding: 0.35rem 0.6rem; font-size: 0.82rem; }
    .main-content { padding: 1.5rem 1rem; }
    .recipe-detail-image { float: none; width: 100%; max-width: 100%; margin: 0 0 1.25rem 0; }
    .ingredient-row { grid-template-columns: 1fr 1.5fr auto; }
    .profile-avatar-section { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
    .navbar-links { gap: 0; }
    .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
}
