:root{--primary-color:#10b981;--primary-dark:#059669;--secondary-color:#f59e0b;--accent-color:#8b5cf6;--text-primary:#1f2937;--text-secondary:#6b7280;--bg-primary:#ffffff;--bg-secondary:#f9fafb;--bg-card:#ffffff;--border-color:#e5e7eb;--shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.05);--shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--radius:12px;--radius-lg:16px;--transition:all 0.3s cubic-bezier(0.4,0,0.2,1);}.dark-theme{--primary-color:#34d399;--primary-dark:#10b981;--secondary-color:#fbbf24;--accent-color:#a78bfa;--text-primary:#f9fafb;--text-secondary:#d1d5db;--bg-primary:#111827;--bg-secondary:#1f2937;--bg-card:#1f2937;--border-color:#374151;}*{margin:0;padding:0;box-sizing:border-box;}body{font-family:'Inter','SF Pro Display',-apple-system,BlinkMacSystemFont,sans-serif;background:linear-gradient(135deg,var(--bg-primary) 0%,var(--bg-secondary) 100%);color:var(--text-primary);line-height:1.6;min-height:100vh;transition:var(--transition);}.container{max-width:1200px;margin:0 auto;padding:0 20px;}header{background:var(--bg-card);backdrop-filter:blur(10px);border-bottom:1px solid var(--border-color);position:sticky;top:0;z-index:1000;}header .container{display:flex;justify-content:space-between;align-items:center;padding:1rem 20px;}header h1{font-size:1.8rem;font-weight:700;background:linear-gradient(135deg,var(--primary-color),var(--accent-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}.header-controls{display:flex;align-items:center;gap:1rem;}.search-container{position:relative;display:flex;flex:1;align-items:center;}#search-input{padding:0.75rem 1rem;padding-right:3rem;border:1px solid var(--border-color);border-radius:var(--radius);background:var(--bg-secondary);color:var(--text-primary);width:300px;font-size:0.9rem;transition:var(--transition);}#search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px rgb(16 185 129 / 0.1);}#search-button{position:absolute;right:0.5rem;background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:0.5rem;transition:var(--transition);}#search-button:hover{color:var(--primary-color);}.theme-toggle{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--radius);padding:0.75rem;cursor:pointer;color:var(--text-primary);transition:var(--transition);}.theme-toggle:hover{background:var(--primary-color);color:white;}.categories-nav{background:var(--bg-card);border-bottom:1px solid var(--border-color);}.categories-container{display:flex;gap:0.5rem;padding:1rem 0;overflow-x:auto;scrollbar-width:none;}.categories-container::-webkit-scrollbar{display:none;}.category-tag{padding:0.5rem 1.25rem;background:var(--bg-secondary);color:var(--text-secondary);border-radius:2rem;cursor:pointer;white-space:nowrap;font-size:0.9rem;font-weight:500;transition:var(--transition);border:1px solid transparent;}.category-tag:hover,.category-tag.active{background:var(--primary-color);color:white;transform:translateY(-1px);}main{padding:2rem 0;}section{margin-bottom:3rem;}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;}.section-header h2{font-size:1.5rem;font-weight:600;display:flex;align-items:center;gap:0.5rem;color:var(--text-primary);margin:0;}.refresh-btn{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--radius);padding:0.75rem 1.25rem;cursor:pointer;color:var(--text-primary);font-size:0.9rem;font-weight:500;transition:var(--transition);display:flex;align-items:center;gap:0.5rem;}.refresh-btn:hover{background:var(--primary-color);color:white;transform:translateY(-1px);}.refresh-btn:active{transform:translateY(0);}.refresh-btn.loading{pointer-events:none;opacity:0.7;}.refresh-btn.loading i{animation:spin 1s linear infinite;}section h2 i{color:var(--primary-color);}.recipes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;}.recipe-card{background:var(--bg-card);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden;transition:var(--transition);cursor:pointer;border:1px solid var(--border-color);}.recipe-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}.recipe-card-inner{height:100%;display:flex;flex-direction:column;}.recipe-image-container{position:relative;overflow:hidden;height:200px;}.recipe-image-container img{width:100%;height:100%;object-fit:cover;transition:var(--transition);}.recipe-card:hover .recipe-image-container img{transform:scale(1.05);}.recipe-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7);display:flex;align-items:center;justify-content:center;opacity:0;transition:var(--transition);}.recipe-card:hover .recipe-overlay{opacity:1;}.quick-view-btn{background:var(--primary-color);color:white;border:none;padding:0.75rem 1.5rem;border-radius:var(--radius);font-weight:500;cursor:pointer;transition:var(--transition);}.quick-view-btn:hover{background:var(--primary-dark);}.recipe-info{padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;}.recipe-info h3{font-size:1.1rem;font-weight:600;margin-bottom:0.5rem;color:var(--text-primary);}.recipe-description{color:var(--text-secondary);font-size:0.9rem;line-height:1.5;margin-bottom:1rem;flex-grow:1;}.recipe-meta{display:flex;justify-content:space-between;align-items:center;font-size:0.8rem;}.recipe-category{background:var(--bg-secondary);color:var(--text-secondary);padding:0.25rem 0.75rem;border-radius:1rem;font-weight:500;}.recipe-difficulty{color:var(--secondary-color);font-weight:600;margin-right:10px;}.daily-recommendation .recipe-card{grid-column:1 / -1;}.recommendation-content{display:grid;grid-template-columns:1fr;gap:2rem;}@media (min-width:768px){.recommendation-content{grid-template-columns:400px 1fr;}}.recommendation-image{position:relative;border-radius:var(--radius-lg);overflow:hidden;height:250px;}.recommendation-image img{width:100%;height:100%;object-fit:cover;}.recommendation-badge{position:absolute;top:1rem;left:1rem;background:var(--secondary-color);color:white;padding:0.5rem 1rem;border-radius:var(--radius);font-size:0.8rem;font-weight:600;}.recommendation-info{padding:1rem 0;display:flex;flex-direction:column;justify-content:center;}.view-recipe-btn{background:var(--primary-color);color:white;border:none;padding:0.75rem 1.5rem;border-radius:var(--radius);font-weight:500;cursor:pointer;transition:var(--transition);margin-top:1rem;align-self:flex-start;}.view-recipe-btn:hover{background:var(--primary-dark);transform:translateX(4px);}.ingredient-search{background:var(--bg-card);padding:2rem;border-radius:var(--radius-lg);border:1px solid var(--border-color);}.ingredient-input-container{display:flex;gap:0.5rem;margin-bottom:1rem;}#ingredient-input{flex:1;padding:0.75rem 1rem;border:1px solid var(--border-color);border-radius:var(--radius);background:var(--bg-secondary);color:var(--text-primary);font-size:0.9rem;}#ingredient-search-button{background:var(--primary-color);color:white;border:none;padding:0.75rem 1.5rem;border-radius:var(--radius);cursor:pointer;font-weight:500;transition:var(--transition);}#ingredient-search-button:hover{background:var(--primary-dark);}.ingredient-tags{display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:1.5rem;}.ingredient-tag{background:linear-gradient(135deg,var(--primary-color),var(--accent-color));color:white;padding:0.5rem 1rem;border-radius:2rem;font-size:0.8rem;font-weight:500;display:flex;align-items:center;gap:0.5rem;}.remove-tag{cursor:pointer;font-weight:bold;transition:var(--transition);}.remove-tag:hover{transform:scale(1.2);}.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.8);backdrop-filter:blur(5px);}.back-to-top-btn{position:fixed;bottom:2rem;right:2rem;background:var(--primary-color);color:white;border:none;width:50px;height:50px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);transition:var(--transition);z-index:100;opacity:0;visibility:hidden;}.back-to-top-btn.visible{opacity:1;visibility:visible;}.back-to-top-btn:hover{background:var(--primary-dark);transform:translateY(-2px);}.modal-content{background:linear-gradient(var(--bg-card) 0 0) padding-box,linear-gradient(var(--bg-card) 0 0) border-box,linear-gradient(var(--bg-secondary) 0 0) content-box;background-clip:padding-box,border-box,content-box;border:8px solid transparent;border-radius:var(--radius-lg);margin:2vh auto;max-width:900px;width:95%;max-height:96vh;overflow-y:auto;position:relative;box-shadow:var(--shadow-lg);padding:12px;scrollbar-width:thin;scrollbar-color:var(--primary-color) transparent;}.modal-content::-webkit-scrollbar{width:12px;}.modal-content::-webkit-scrollbar-track{background:transparent;border-radius:0 var(--radius-lg) var(--radius-lg) 0;}.modal-content::-webkit-scrollbar-thumb{background:var(--primary-color);border-radius:6px;border:3px solid var(--bg-card);}.modal-content::-webkit-scrollbar-thumb:hover{background:var(--primary-dark);}.modal-content .back-to-top-btn{position:sticky;bottom:1rem;left:calc(100% - 70px);background:var(--primary-color);color:white;border:none;width:50px;height:50px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);transition:var(--transition);z-index:100;margin-top:1rem;opacity:1;visibility:visible;}.modal-content .back-to-top-btn:hover{background:var(--primary-dark);transform:translateY(-2px);}.close-button{position:absolute;top:1rem;right:1rem;font-size:2rem;color:var(--text-secondary);cursor:pointer;z-index:1001;background:var(--bg-secondary);width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:var(--transition);}.close-button:hover{color:var(--text-primary);background:var(--primary-color);color:white;}.recipe-detail-content{padding:2rem;}.recipe-detail-header{display:grid;grid-template-columns:1fr;gap:2rem;margin-bottom:2rem;}@media (min-width:768px){.recipe-detail-header{grid-template-columns:300px 1fr;}}.recipe-detail-image img{width:100%;border-radius:var(--radius);height:250px;object-fit:cover;}.recipe-detail-title{font-size:2rem;font-weight:700;margin-bottom:1rem;background:linear-gradient(135deg,var(--primary-color),var(--accent-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}.recipe-detail-meta{display:flex;gap:1rem;flex-wrap:wrap;margin:1rem 0;}.recipe-detail-meta span{display:flex;align-items:center;gap:0.5rem;background:var(--bg-secondary);padding:0.5rem 1rem;border-radius:var(--radius);font-size:0.9rem;}.recipe-ingredients,.recipe-steps,.recipe-notes{margin-bottom:2rem;}.recipe-ingredients h3,.recipe-steps h3,.recipe-notes h3{display:flex;align-items:center;gap:0.5rem;margin-bottom:1rem;color:var(--text-primary);}.recipe-steps li,.recipe-notes p{line-height:1.6;}.recipe-steps li strong,.recipe-notes p strong{color:var(--primary-color);font-weight:600;}.recipe-steps li em,.recipe-notes p em{font-style:italic;}.recipe-steps li a,.recipe-notes p a{color:var(--accent-color);text-decoration:none;border-bottom:1px solid var(--accent-color);transition:var(--transition);}.recipe-steps li a:hover,.recipe-notes p a:hover{color:var(--primary-color);border-bottom-color:var(--primary-color);}.recipe-steps li code,.recipe-notes p code{background:var(--bg-secondary);padding:0.2em 0.4em;border-radius:3px;font-family:'Courier New',monospace;font-size:0.9em;}.recipe-steps li ul,.recipe-notes p ul{list-style-type:disc;margin-left:1.5rem;margin-top:0.5rem;}.recipe-steps li ol,.recipe-notes p ol{list-style-type:decimal;margin-left:1.5rem;margin-top:0.5rem;}.recipe-steps li img,.recipe-notes p img{max-width:100%;height:auto;border-radius:var(--radius);margin:0.5rem 0;box-shadow:var(--shadow);}.recipe-steps li blockquote,.recipe-notes p blockquote{border-left:4px solid var(--primary-color);padding-left:1rem;margin:1rem 0;color:var(--text-secondary);font-style:italic;}.ingredients-list{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:0.5rem;}.ingredients-list li{background:var(--bg-secondary);padding:0.75rem 1rem;border-radius:var(--radius);border-left:4px solid var(--primary-color);}.steps-list{list-style-position:outside;padding-left:1rem;}.steps-list li{margin-bottom:1rem;padding-left:0.5rem;line-height:1.6;}.recipe-notes{background:var(--bg-secondary);padding:1.5rem;border-radius:var(--radius);border-left:4px solid var(--secondary-color);}.loading-spinner{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;color:var(--text-secondary);text-align:center;}.loading-spinner i{font-size:2rem;margin-bottom:1rem;color:var(--primary-color);animation:spin 1s linear infinite;}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}.error-message{background:#fee2e2;color:#dc2626;padding:1rem;border-radius:var(--radius);margin:1rem 0;display:flex;align-items:center;gap:0.5rem;border-left:4px solid #dc2626;}.dark-theme .error-message{background:#7f1d1d;color:#fca5a5;border-left-color:#fca5a5;}.no-data{text-align:center;padding:3rem;color:var(--text-secondary);font-style:italic;}footer{background:var(--bg-card);border-top:1px solid var(--border-color);padding:2rem 0;margin-top:3rem;}footer .container{text-align:center;}footer p{color:var(--text-secondary);margin:0.5rem 0;}footer a{color:var(--primary-color);text-decoration:none;transition:var(--transition);}footer a:hover{color:var(--accent-color);text-decoration:underline;}@media (max-width:768px){.container{padding:0 1rem;}header .container{flex-direction:column;gap:1rem;padding:1rem;}.header-controls{width:100%;justify-content:space-between;}#search-input{width:100%;}.recipes-grid{grid-template-columns:1fr;}.recommendation-info{padding:1rem;}.section-header{align-items:flex-start;gap:1rem;}.refresh-btn{align-self:flex-start;}.modal-content{margin:0;width:100%;height:100%;max-height:100vh;border-radius:0;}.recipe-detail-content{padding:1rem;}.back-to-top-btn{bottom:1rem;right:1rem;width:45px;height:45px;}}@media (max-width:480px){.recipe-detail-meta{flex-direction:column;align-items:flex-start;}.ingredients-list{grid-template-columns:1fr;}}