.type-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .65rem;border-radius:20px;font-size:.75rem;font-weight:600;letter-spacing:.01em}.type-badge--recipe{background:var(--recipe-light);color:var(--recipe)}.type-badge--cocktail{background:var(--cocktail-light);color:var(--cocktail)}.subcategory-badge{display:inline-flex;align-items:center;padding:.2rem .65rem;border-radius:20px;font-size:.75rem;font-weight:500;background:var(--surface2);color:var(--text-muted);border:1px solid var(--border);text-transform:capitalize}.recipe-card{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column}.recipe-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}.card-image{width:100%;height:200px;overflow:hidden;background:var(--surface2)}.card-image img{width:100%;height:100%;object-fit:cover}.card-image-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:3rem}.card-body{padding:1rem;flex:1;display:flex;flex-direction:column;gap:.5rem}.card-header{display:flex;align-items:center;gap:.5rem}.card-title{font-size:1.1rem;font-weight:600;line-height:1.3;color:var(--text)}.card-desc{font-size:.85rem;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-ingredients{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.2rem}.ingredient-chip{background:var(--surface2);border:1px solid var(--border);border-radius:20px;padding:.15rem .6rem;font-size:.75rem;color:var(--text-muted)}.ingredient-chip.muted{font-style:italic}.card-tags{display:flex;flex-wrap:wrap;gap:.3rem}.tag{background:var(--accent-light);color:var(--accent);border-radius:20px;padding:.15rem .6rem;font-size:.75rem;font-weight:500}.home-header{margin-bottom:1.5rem}.home-header h1{font-size:2.2rem;color:var(--text)}.home-subtitle{color:var(--text-muted);margin-top:.3rem;font-size:1rem}.search-bar{display:flex;align-items:center;gap:.75rem;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);padding:.5rem .75rem;margin-bottom:1.25rem;box-shadow:var(--shadow)}.search-input-wrap{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}.search-chip{display:flex;align-items:center;gap:.25rem;background:var(--accent-light);color:var(--accent);border-radius:20px;padding:.2rem .5rem .2rem .75rem;font-size:.82rem;font-weight:500}.search-chip-remove{background:none;border:none;color:var(--accent);cursor:pointer;font-size:1rem;line-height:1;padding:0 .1rem;border-radius:50%}.search-chip-remove:hover{background:#c84b2d26}.filter-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem}.subfilter-tabs{margin-top:-.75rem;margin-bottom:1.25rem}.subfilter-tabs .filter-tab{font-size:.82rem;padding:.35rem .9rem}.filter-tab{background:var(--surface);border:1.5px solid var(--border);color:var(--text-muted);font-weight:500;padding:.45rem 1.1rem;border-radius:24px;font-size:.875rem;transition:all .15s}.filter-tab:hover{border-color:var(--accent);color:var(--accent)}.filter-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}.recipe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}.state-msg{text-align:center;color:var(--text-muted);padding:3rem 0;font-size:1rem}.detail{max-width:760px;margin:0 auto}.detail-hero{width:100%;max-height:420px;border-radius:var(--radius);overflow:hidden;margin-bottom:1.5rem;box-shadow:var(--shadow-lg)}.detail-hero img{width:100%;height:100%;object-fit:cover}.detail-content{display:flex;flex-direction:column;gap:1.25rem}.detail-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem}.detail-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.detail-actions{display:flex;gap:.5rem}.detail-title{font-size:2rem;line-height:1.2}.detail-desc{color:var(--text-muted);font-size:1rem;line-height:1.6}.detail-section{display:flex;flex-direction:column;gap:.75rem}.detail-section h2{font-size:1.2rem;border-bottom:2px solid var(--border);padding-bottom:.4rem;color:var(--text)}.ingredients-list{list-style:none;display:flex;flex-direction:column;gap:.4rem}.ingredient-row{display:flex;gap:.75rem;padding:.5rem .75rem;border-radius:var(--radius-sm);background:var(--surface2)}.ingredient-row:nth-child(2n){background:var(--surface);border:1px solid var(--border)}.ing-amount{min-width:80px;font-weight:600;color:var(--accent);font-size:.9rem}.ing-name{color:var(--text);font-size:.9rem}.rich-content{line-height:1.8;font-size:.95rem;color:var(--text)}.notes-section{background:var(--surface2);border-radius:var(--radius);padding:1rem 1.25rem}.back-link{color:var(--text-muted);font-size:.875rem;margin-top:.5rem}.state-msg{text-align:center;color:var(--text-muted);padding:3rem 0}.state-msg.error{color:var(--accent)}.rich-editor{border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);transition:border-color .15s;overflow:hidden}.rich-editor:focus-within{border-color:var(--accent)}.rt-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem;padding:.45rem .6rem;border-bottom:1.5px solid var(--border);background:var(--surface2)}.rt-btn{background:transparent;border:none;border-radius:5px;padding:.3rem .55rem;font-size:.82rem;font-weight:600;color:var(--text-muted);cursor:pointer;transition:all .12s;line-height:1;min-width:28px;text-align:center}.rt-btn:hover{background:var(--border);color:var(--text)}.rt-btn.active{background:var(--accent-light);color:var(--accent)}.rt-divider{width:1px;height:18px;background:var(--border);margin:0 .2rem;flex-shrink:0}.rich-editor .ProseMirror{padding:.75rem .9rem;min-height:140px;outline:none;font-size:.93rem;line-height:1.75;color:var(--text)}.rich-editor .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--text-muted);pointer-events:none;float:left;height:0}.rich-editor .ProseMirror h2,.rich-content h2{font-size:1.2rem;margin:1rem 0 .4rem;color:var(--text)}.rich-editor .ProseMirror h3,.rich-content h3{font-size:1rem;margin:.85rem 0 .3rem;color:var(--text)}.rich-editor .ProseMirror p,.rich-content p{margin-bottom:.6rem}.rich-editor .ProseMirror ul,.rich-editor .ProseMirror ol,.rich-content ul,.rich-content ol{padding-left:1.5rem;margin-bottom:.6rem}.rich-editor .ProseMirror li,.rich-content li{margin-bottom:.25rem}.rich-editor .ProseMirror blockquote,.rich-content blockquote{border-left:3px solid var(--accent);padding-left:.9rem;margin:.5rem 0;color:var(--text-muted);font-style:italic}.rich-editor .ProseMirror strong,.rich-content strong{font-weight:700}.rich-editor .ProseMirror em,.rich-content em{font-style:italic}.rich-editor .ProseMirror u,.rich-content u{text-decoration:underline}.addedit{max-width:720px;margin:0 auto}.addedit-header{margin-bottom:1.75rem}.addedit-header h1{font-size:1.8rem;margin-top:.5rem}.back-link{color:var(--text-muted);font-size:.875rem}.back-link:hover{color:var(--accent)}.addedit-form{display:flex;flex-direction:column;gap:1.25rem}.form-error{background:var(--accent-light);color:var(--accent);border:1px solid var(--accent);border-radius:var(--radius-sm);padding:.75rem 1rem;font-size:.9rem}.form-row{display:flex;gap:1rem}.form-row--2>*{flex:1}@media (max-width: 500px){.form-row{flex-direction:column}}.form-field{display:flex;flex-direction:column}.image-upload-area{display:flex;align-items:flex-start;gap:1rem}.image-upload-btn{display:inline-flex;align-items:center;justify-content:center;border:2px dashed var(--border);border-radius:var(--radius);padding:1.5rem 2rem;cursor:pointer;color:var(--text-muted);font-size:.9rem;font-weight:500;transition:border-color .15s,color .15s;background:var(--surface2)}.image-upload-btn:hover{border-color:var(--accent);color:var(--accent)}.image-preview{position:relative;width:140px;height:100px;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--border)}.image-preview img{width:100%;height:100%;object-fit:cover}.remove-image{position:absolute;top:4px;right:4px;background:#0009;color:#fff;border:none;border-radius:50%;width:22px;height:22px;font-size:1rem;display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:1}.ingredients-editor{display:flex;flex-direction:column;gap:.5rem}.ing-row{display:grid;grid-template-columns:90px 110px 1fr 32px;gap:.5rem;align-items:center}.ing-input{font-size:.875rem}.ing-remove{font-size:1.2rem;color:var(--text-muted)}.ing-remove:hover{color:var(--accent);background:var(--accent-light)}.add-ing-btn{align-self:flex-start;margin-top:.25rem;font-size:.85rem}@media (max-width: 500px){.ing-row{grid-template-columns:70px 90px 1fr 28px}}.tags-input{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:.5rem .75rem;background:var(--surface);min-height:44px;transition:border-color .15s}.tags-input:focus-within{border-color:var(--accent)}.tag-chip{display:flex;align-items:center;gap:.25rem;background:var(--surface2);border:1px solid var(--border);border-radius:20px;padding:.15rem .45rem .15rem .7rem;font-size:.8rem;color:var(--text)}.tag-chip button{background:none;border:none;cursor:pointer;color:var(--text-muted);font-size:1rem;padding:0;line-height:1}.tag-chip button:hover{color:var(--accent)}.form-actions{display:flex;justify-content:flex-end;gap:.75rem;padding-top:.5rem}.nav{background:var(--surface);border-bottom:1px solid var(--border);padding:0 1.5rem;height:64px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100;box-shadow:0 1px 4px #0000000f}.nav-brand{display:flex;align-items:center;gap:.6rem;font-family:Playfair Display,serif;font-size:1.4rem;font-weight:700;color:var(--text)}.nav-logo{font-size:1.6rem}.app{min-height:100vh;display:flex;flex-direction:column}.main-content{flex:1;max-width:1280px;margin:0 auto;width:100%;padding:2rem 1.5rem}@media (max-width: 600px){.main-content{padding:1rem}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #faf9f6;--surface: #ffffff;--surface2: #f4f2ed;--border: #e4e0d8;--text: #1a1816;--text-muted: #6b6560;--accent: #c84b2d;--accent-hover: #a33a20;--accent-light: #fdf0ec;--cocktail: #2d6fa3;--cocktail-light: #edf4fb;--recipe: #3a7d44;--recipe-light: #edf7ef;--radius: 12px;--radius-sm: 8px;--shadow: 0 2px 12px rgba(0,0,0,.08);--shadow-lg: 0 8px 32px rgba(0,0,0,.12)}body{font-family:Inter,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}h1,h2,h3{font-family:Playfair Display,serif}a{color:inherit;text-decoration:none}button{cursor:pointer;font-family:inherit;font-size:.875rem;border:none;border-radius:var(--radius-sm);padding:.5rem 1rem;transition:all .15s}input,textarea,select{font-family:inherit;font-size:.9rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:.6rem .8rem;background:var(--surface);color:var(--text);width:100%;outline:none;transition:border-color .15s}input:focus,textarea:focus,select:focus{border-color:var(--accent)}textarea{resize:vertical;min-height:120px}label{font-size:.85rem;font-weight:600;color:var(--text-muted);display:block;margin-bottom:.3rem;letter-spacing:.02em;text-transform:uppercase}.btn-primary{background:var(--accent);color:#fff;font-weight:600}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:var(--surface2);color:var(--text);border:1.5px solid var(--border);font-weight:500}.btn-secondary:hover{background:var(--border)}.btn-danger{background:transparent;color:var(--accent);border:1.5px solid var(--accent);font-weight:500}.btn-danger:hover{background:var(--accent-light)}.btn-icon{background:transparent;color:var(--text-muted);padding:.4rem;border-radius:50%;display:flex;align-items:center;justify-content:center;width:32px;height:32px}.btn-icon:hover{background:var(--surface2);color:var(--text)}
