*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--primary:   #c8593a;
--primary-l: #e8724e;
--bg:        #f8f4ef;
--surface:   #ffffff;
--text:      #1a1612;
--muted:     #7a7068;
--border:    #e8e2da;
--shadow:    0 2px 12px rgba(0,0,0,0.07);
--shadow-md: 0 8px 32px rgba(0,0,0,0.10);
--star:      #f59e0b;
}
body {
font-family: 'DM Sans', sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
}
.hidden { display: none !important; }
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 5vw;
background: rgba(248, 244, 239, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
}
.logo {
font-family: 'Lora', serif;
font-weight: 600;
font-size: 20px;
cursor: pointer;
color: var(--text);
letter-spacing: -0.02em;
}
.logo em { color: var(--primary); font-style: normal; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-btn {
padding: 9px 20px;
border: none;
border-radius: 999px;
background: transparent;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-weight: 500;
font-size: 14px;
color: var(--muted);
transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { background: var(--border); color: var(--text); }
.btn-primary {
background: var(--primary);
color: white;
font-weight: 600;
box-shadow: 0 3px 12px rgba(200,89,58,0.30);
}
.btn-primary:hover { background: var(--primary-l); color: white; }
.avatar-btn {
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
cursor: pointer;
background: var(--primary);
color: white;
font-family: 'DM Sans', sans-serif;
font-weight: 600;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.15s, background 0.15s;
padding: 0;
min-width: 44px;
min-height: 44px;
}
.avatar-btn:hover { background: var(--primary-l); transform: scale(1.06); }
.overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.40);
backdrop-filter: blur(4px);
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s;
padding: 16px;
}
.overlay.open { opacity: 1; pointer-events: all; }
.modal {
background: var(--surface);
border-radius: 20px;
padding: 36px;
width: 100%;
max-width: 400px;
margin: 16px;
box-shadow: 0 24px 64px rgba(0,0,0,0.18);
transform: translateY(12px);
transition: transform 0.22s;
position: relative;
max-height: 90vh;
overflow-y: auto;
}
.overlay.open .modal { transform: translateY(0); }
.modal-close {
position: absolute;
top: 14px;
right: 18px;
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: var(--muted);
line-height: 1;
padding: 4px;
min-width: 44px;
min-height: 44px;
display: flex;
align-items: center;
justify-content: center;
}
.modal-tabs {
display: flex;
border: 1.5px solid var(--border);
border-radius: 10px;
overflow: hidden;
margin-bottom: 24px;
}
.modal-tab {
flex: 1;
padding: 9px;
border: none;
background: transparent;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 14px;
font-weight: 500;
color: var(--muted);
transition: background 0.15s, color 0.15s;
min-height: 44px;
}
.modal-tab.active { background: var(--primary); color: white; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
}
input, textarea, select {
width: 100%;
padding: 11px 14px;
border-radius: 10px;
border: 1.5px solid var(--border);
font-family: 'DM Sans', sans-serif;
font-size: 14px;
color: var(--text);
background: #faf9f7;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
font-size: 16px;
}
input:focus, textarea:focus, select:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(200,89,58,0.10);
background: white;
}
textarea { resize: vertical; }
select { cursor: pointer; }
.modal-submit {
width: 100%;
background: var(--primary);
color: white;
border: none;
padding: 14px;
border-radius: 999px;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 15px;
font-weight: 600;
margin-top: 6px;
box-shadow: 0 4px 14px rgba(200,89,58,0.28);
transition: background 0.2s;
min-height: 48px;
}
.modal-submit:hover { background: var(--primary-l); }
.alert {
border-radius: 8px;
padding: 10px 12px;
font-size: 13px;
margin-bottom: 12px;
}
.alert-error { background: #fff0ee; border: 1px solid #f5c4bb; color: #a83220; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.edit-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.50);
backdrop-filter: blur(4px);
z-index: 300;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s;
padding: 16px;
}
.edit-overlay.open { opacity: 1; pointer-events: all; }
.edit-modal {
background: var(--surface);
border-radius: 20px;
padding: 36px;
width: 100%;
max-width: 560px;
max-height: 90vh;
overflow-y: auto;
margin: 16px;
box-shadow: 0 24px 64px rgba(0,0,0,0.22);
transform: translateY(16px);
transition: transform 0.22s;
position: relative;
}
.edit-overlay.open .edit-modal { transform: translateY(0); }
.edit-modal h2 {
font-family: 'Lora', serif;
font-size: 20px;
margin-bottom: 4px;
}
.edit-modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.hero {
display: flex;
justify-content: space-between;
align-items: center;
padding: 40px 5vw 80px;
min-height: 82vh;
gap: 60px;
}
.hero-text { flex: 1; }
.hero-text h1 {
font-family: 'Lora', serif;
font-size: clamp(38px, 5vw, 60px);
line-height: 1.1;
margin-bottom: 16px;
letter-spacing: -0.02em;
}
.hero-text p {
font-size: 17px;
color: var(--muted);
max-width: 480px;
line-height: 1.65;
}
.hero-cta {
display: inline-block;
margin-top: 28px;
padding: 14px 28px;
border-radius: 999px;
border: none;
background: var(--primary);
color: white;
font-family: 'DM Sans', sans-serif;
font-size: 15px;
font-weight: 600;
cursor: pointer;
box-shadow: 0 4px 16px rgba(200,89,58,0.32);
transition: background 0.2s, transform 0.2s;
min-height: 48px;
}
.hero-cta:hover { background: var(--primary-l); transform: translateY(-1px); }
.hero-img {
flex: 1;
max-width: 520px;
height: 440px;
border-radius: 20px;
overflow: hidden;
box-shadow: var(--shadow-md);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page { padding: 32px 5vw 80px; }
.filter-bar {
display: flex;
justify-content: center;
gap: 8px;
margin-bottom: 28px;
flex-wrap: wrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding-bottom: 4px;
scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
padding: 8px 18px;
border-radius: 999px;
border: 1.5px solid var(--border);
background: var(--surface);
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 500;
color: var(--muted);
transition: all 0.15s;
flex-shrink: 0;
min-height: 40px;
}
.filter-btn:hover, .filter-btn.active {
background: var(--primary);
color: white;
border-color: var(--primary);
}
.status {
text-align: center;
padding: 48px;
color: var(--muted);
font-size: 15px;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 22px;
max-width: 1100px;
margin: 0 auto;
}
.card {
background: var(--surface);
border-radius: 16px;
overflow: hidden;
border: 1px solid var(--border);
cursor: pointer;
transition: transform 0.22s, box-shadow 0.22s;
box-shadow: var(--shadow);
position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-thumb {
position: relative;
height: 190px;
overflow: hidden;
background: linear-gradient(135deg, #fde8e0, #fdf4ef);
}
.card-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.35s;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb .badge {
position: absolute;
top: 10px;
left: 10px;
background: rgba(255,255,255,0.88);
backdrop-filter: blur(6px);
padding: 3px 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
color: var(--primary);
}
.card-emoji {
height: 190px;
display: flex;
align-items: center;
justify-content: center;
font-size: 52px;
background: linear-gradient(135deg, #fde8e0, #fdf4ef);
position: relative;
}
.card-fav-btn {
position: absolute;
top: 10px;
right: 10px;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255,255,255,0.88);
backdrop-filter: blur(6px);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
transition: transform 0.2s, background 0.2s;
z-index: 2;
}
.card-fav-btn:hover { transform: scale(1.15); background: white; }
.card-fav-btn.active { background: #fff8e1; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.card-meta span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.card-author { font-size: 11px; color: var(--muted); margin-top: 6px; }
.detail-page {
max-width: 1060px;
margin: 36px auto 80px;
padding: 0 5vw;
}
.detail-topbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
flex-wrap: wrap;
gap: 10px;
}
.btn-back {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--surface);
border: 1.5px solid var(--border);
color: var(--text);
padding: 9px 18px;
border-radius: 999px;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 500;
transition: background 0.15s;
box-shadow: var(--shadow);
min-height: 44px;
}
.btn-back:hover { background: var(--bg); }
.detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-share {
padding: 9px 18px;
background: var(--primary);
color: white;
border: none;
border-radius: 999px;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 600;
cursor: pointer;
box-shadow: 0 3px 12px rgba(200,89,58,0.28);
transition: background 0.2s;
min-height: 44px;
}
.btn-share:hover { background: var(--primary-l); }
.btn-share.copied { background: #16a34a; box-shadow: none; }
.btn-fav {
padding: 9px 18px;
background: var(--surface);
border: 1.5px solid var(--border);
border-radius: 999px;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
box-shadow: var(--shadow);
display: flex;
align-items: center;
gap: 5px;
min-height: 44px;
}
.btn-fav:hover { border-color: var(--star); color: var(--star); }
.btn-fav.active {
background: #fff8e1;
border-color: var(--star);
color: #b45309;
}
.detail-layout {
display: grid;
grid-template-columns: 320px 1fr;
gap: 24px;
align-items: start;
}
.detail-left { display: flex; flex-direction: column; gap: 18px; }
.detail-photo {
width: 100%;
aspect-ratio: 4/3;
border-radius: 16px;
overflow: hidden;
box-shadow: var(--shadow-md);
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo-placeholder {
width: 100%;
aspect-ratio: 4/3;
border-radius: 16px;
background: linear-gradient(135deg, #fde8e0, #fdf4ef);
display: flex;
align-items: center;
justify-content: center;
font-size: 60px;
}
.card-panel {
background: var(--surface);
border-radius: 14px;
border: 1px solid var(--border);
padding: 18px;
box-shadow: var(--shadow);
}
.card-panel h1 {
font-family: 'Lora', serif;
font-size: 20px;
margin-bottom: 8px;
line-height: 1.3;
}
.card-panel .recipe-meta-author {
font-size: 12px;
color: var(--muted);
margin-bottom: 12px;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
display: flex;
align-items: center;
gap: 4px;
background: #f3efea;
padding: 5px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 500;
}
.chip-primary { background: #fde8e0; color: var(--primary); }
.panel-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
margin-bottom: 12px;
}
.ingredient-list { display: flex; flex-direction: column; gap: 6px; }
.ingredient-row {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
padding: 8px 10px;
background: #faf9f7;
border-radius: 8px;
border: 1px solid var(--border);
}
.ingredient-row::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--primary);
flex-shrink: 0;
}
.detail-right {
background: var(--surface);
border-radius: 16px;
border: 1px solid var(--border);
padding: 28px;
box-shadow: var(--shadow);
top: 88px;
}
.method-text {
font-size: 15px;
line-height: 1.85;
color: #3a3530;
white-space: pre-line;
}
.form-page {
max-width: 640px;
margin: 48px auto 80px;
background: var(--surface);
padding: 44px;
border-radius: 20px;
box-shadow: var(--shadow-md);
border: 1px solid var(--border);
}
.form-page h2 {
font-family: 'Lora', serif;
font-size: 24px;
margin-bottom: 4px;
}
.form-page .sub { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-save {
width: 100%;
background: var(--primary);
color: white;
border: none;
padding: 14px;
border-radius: 999px;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 15px;
font-weight: 600;
margin-top: 6px;
box-shadow: 0 4px 14px rgba(200,89,58,0.30);
transition: background 0.2s;
min-height: 48px;
}
.btn-save:hover { background: var(--primary-l); }
.konto-page {
max-width: 680px;
margin: 48px auto 80px;
padding: 0 5vw;
}
.konto-header {
display: flex;
align-items: center;
gap: 18px;
background: var(--surface);
border-radius: 16px;
padding: 24px 28px;
box-shadow: var(--shadow);
border: 1px solid var(--border);
margin-bottom: 24px;
}
.konto-avatar {
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--primary);
color: white;
font-family: 'Lora', serif;
font-size: 22px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.konto-info h2 { font-size: 18px; margin-bottom: 2px; }
.konto-info p { color: var(--muted); font-size: 13px; }
.profile-tabs {
display: flex;
gap: 4px;
background: var(--surface);
border-radius: 12px;
padding: 4px;
border: 1px solid var(--border);
margin-bottom: 18px;
box-shadow: var(--shadow);
}
.profile-tab {
flex: 1;
padding: 9px 14px;
border: none;
border-radius: 9px;
background: transparent;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 500;
color: var(--muted);
transition: all 0.18s;
min-height: 44px;
}
.profile-tab.active {
background: var(--primary);
color: white;
font-weight: 600;
box-shadow: 0 2px 8px rgba(200,89,58,0.25);
}
.section-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--muted);
margin-bottom: 12px;
}
.recipe-list { display: flex; flex-direction: column; gap: 10px; }
.recipe-row {
background: var(--surface);
border-radius: 12px;
border: 1px solid var(--border);
padding: 14px 16px;
display: flex;
align-items: center;
gap: 14px;
box-shadow: var(--shadow);
transition: box-shadow 0.2s;
}
.recipe-row:hover { box-shadow: var(--shadow-md); }
.recipe-row-thumb {
width: 52px;
height: 52px;
border-radius: 8px;
object-fit: cover;
flex-shrink: 0;
background: linear-gradient(135deg, #fde8e0, #fdf4ef);
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
overflow: hidden;
}
.recipe-row-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.recipe-row-info { flex: 1; min-width: 0; }
.recipe-row-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recipe-row-info small { font-size: 12px; color: var(--muted); }
.btn-row { display: flex; gap: 6px; flex-shrink: 0; }
.btn-sm {
padding: 8px 14px;
border-radius: 999px;
border: 1.5px solid var(--border);
background: transparent;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 12px;
font-weight: 500;
color: var(--text);
transition: all 0.15s;
min-height: 40px;
}
.btn-sm:hover { background: var(--bg); }
.btn-sm-danger { border-color: #f5c4bb; color: #a83220; }
.btn-sm-danger:hover { background: #fff0ee; }
.btn-sm-primary { border-color: var(--primary); color: var(--primary); }
.btn-sm-primary:hover { background: #fff0ee; }
.empty-state {
text-align: center;
padding: 44px 20px;
color: var(--muted);
background: var(--surface);
border-radius: 14px;
border: 1px solid var(--border);
}
.empty-state p { margin-bottom: 14px; font-size: 14px; }
.btn-logout {
margin-top: 24px;
padding: 10px 22px;
border-radius: 999px;
border: 1.5px solid var(--border);
background: transparent;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 500;
color: var(--muted);
transition: all 0.15s;
min-height: 44px;
}
.btn-logout:hover { border-color: #f5c4bb; color: #a83220; background: #fff0ee; }
.comments-section {
max-width: 1060px;
margin: 40px auto 0;
padding-top: 36px;
border-top: 1.5px solid var(--border);
}
.comments-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
}
.comments-title {
font-family: 'Lora', serif;
font-size: 20px;
font-weight: 600;
}
.comments-count {
background: var(--bg);
border: 1.5px solid var(--border);
border-radius: 999px;
padding: 2px 12px;
font-size: 12px;
font-weight: 600;
color: var(--muted);
}
.comment-form {
display: flex;
gap: 12px;
align-items: flex-start;
margin-bottom: 28px;
background: var(--surface);
border: 1.5px solid var(--border);
border-radius: 16px;
padding: 16px;
box-shadow: var(--shadow);
}
.comment-form-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--primary);
color: white;
font-weight: 700;
font-size: 15px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 2px;
}
.comment-form-right {
flex: 1;
display: flex;
flex-direction: column;
gap: 10px;
}
.comment-form-right textarea {
border-radius: 10px;
border: 1.5px solid var(--border);
font-size: 16px;
line-height: 1.6;
padding: 10px 13px;
resize: vertical;
min-height: 80px;
background: #faf9f7;
transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form-right textarea:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(200,89,58,0.10);
background: white;
}
.comment-form-footer {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.comment-char-count {
font-size: 11px;
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.btn-comment-submit {
padding: 10px 20px;
background: var(--primary);
color: white;
border: none;
border-radius: 999px;
cursor: pointer;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 600;
box-shadow: 0 3px 10px rgba(200,89,58,0.28);
transition: background 0.2s, opacity 0.2s;
white-space: nowrap;
min-height: 44px;
}
.btn-comment-submit:hover { background: var(--primary-l); }
.btn-comment-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.comment-login-prompt {
background: var(--surface);
border: 1.5px solid var(--border);
border-radius: 12px;
padding: 16px 20px;
margin-bottom: 24px;
font-size: 14px;
color: var(--muted);
text-align: center;
}
.link-btn {
background: none;
border: none;
color: var(--primary);
font-family: 'DM Sans', sans-serif;
font-size: 14px;
font-weight: 600;
cursor: pointer;
padding: 0;
text-decoration: underline;
text-underline-offset: 2px;
}
.link-btn:hover { color: var(--primary-l); }
.comments-list {
display: flex;
flex-direction: column;
gap: 14px;
}
.comment-loading,
.comments-empty {
text-align: center;
color: var(--muted);
font-size: 14px;
padding: 32px;
background: var(--surface);
border-radius: 12px;
border: 1px solid var(--border);
}
.comment-item {
display: flex;
gap: 12px;
background: var(--surface);
border-radius: 14px;
border: 1px solid var(--border);
padding: 16px;
box-shadow: var(--shadow);
transition: box-shadow 0.2s;
animation: commentFadeIn 0.25s ease;
}
.comment-item:hover { box-shadow: var(--shadow-md); }
@keyframes commentFadeIn {
from { opacity: 0; transform: translateY(-6px); }
to   { opacity: 1; transform: translateY(0); }
}
.comment-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #fde8e0, #c8593a);
color: white;
font-weight: 700;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 7px;
flex-wrap: wrap;
}
.comment-author {
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.comment-date {
font-size: 11px;
color: var(--muted);
}
.comment-delete-btn {
margin-left: auto;
background: none;
border: none;
cursor: pointer;
font-size: 14px;
color: var(--muted);
padding: 2px 6px;
border-radius: 6px;
transition: background 0.15s, color 0.15s;
line-height: 1;
min-width: 36px;
min-height: 36px;
display: flex;
align-items: center;
justify-content: center;
}
.comment-delete-btn:hover { background: #fff0ee; color: #a83220; }
.comment-text {
font-size: 14px;
line-height: 1.7;
color: #3a3530;
word-break: break-word;
}
@media (max-width: 900px) {
.hero {
flex-direction: column;
text-align: center;
padding: 40px 5vw 60px;
min-height: unset;
gap: 32px;
}
.hero-text p { margin: 0 auto; }
.hero-img { max-width: 100%; width: 100%; height: 280px; }
.detail-layout { grid-template-columns: 1fr; }
.detail-right { position: static; }
.detail-photo { aspect-ratio: 16/9; }
.detail-photo-placeholder { aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
.nav-btn:not(.btn-primary):not(.avatar-btn) {
display: none;
}
.nav-links { gap: 6px; }
.hero {
padding: 28px 5vw 48px;
gap: 24px;
}
.hero-text h1 { font-size: clamp(28px, 8vw, 40px); }
.hero-text p { font-size: 15px; }
.hero-img { height: 220px; border-radius: 14px; }
.page { padding: 20px 4vw 60px; }
.filter-bar {
justify-content: flex-start;
flex-wrap: nowrap;
padding-left: 4vw;
padding-right: 4vw;
margin-left: -4vw;
margin-right: -4vw;
padding-bottom: 8px;
}
.grid { grid-template-columns: 1fr; gap: 14px; }
.card-thumb, .card-emoji { height: 160px; }
.detail-page { margin: 16px auto 60px; }
.detail-topbar {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.detail-actions { width: 100%; }
.btn-share, .btn-fav { flex: 1; justify-content: center; }
.card-panel h1 { font-size: 18px; }
.form-page { padding: 24px 16px; margin: 16px auto 60px; border-radius: 16px; }
.form-row { grid-template-columns: 1fr; }
.edit-modal { padding: 22px 18px; margin: 8px; }
.edit-overlay { align-items: flex-end; padding: 0; }
.edit-modal {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
max-height: 95vh;
}
.overlay { align-items: flex-end; padding: 0; }
.modal {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
max-width: 100%;
margin: 0;
padding: 28px 20px 36px;
max-height: 92vh;
}
.konto-page { margin: 20px auto 60px; }
.konto-header { flex-direction: column; text-align: center; padding: 20px; gap: 12px; }
.profile-tabs { gap: 2px; }
.profile-tab { font-size: 12px; padding: 8px 8px; }
.recipe-row { flex-wrap: wrap; }
.btn-row { width: 100%; justify-content: flex-end; margin-top: 4px; }
.comments-section { padding-top: 24px; }
.comment-form { flex-direction: column; gap: 10px; }
.comment-form-avatar { display: none; }
.comment-form-footer { flex-direction: row; flex-wrap: wrap; }
.btn-comment-submit { flex: 1; text-align: center; }
.comment-char-count { order: -1; }
.comment-avatar { width: 30px; height: 30px; font-size: 12px; }
.comment-item { gap: 8px; padding: 12px; }
}
@media (max-width: 380px) {
.logo { font-size: 17px; }
.nav-btn.btn-primary { padding: 8px 14px; font-size: 13px; }
.hero-text h1 { font-size: 26px; }
.card-thumb, .card-emoji { height: 140px; }
.detail-actions { flex-direction: column; }
.btn-share, .btn-fav, .btn-back { width: 100%; justify-content: center; }
}
@media (hover: none) {
.card:hover { transform: none; box-shadow: var(--shadow); }
.card:hover .card-thumb img { transform: none; }
.card:active { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hero-cta:hover { transform: none; }
.hero-cta:active { transform: translateY(-1px); }
}