/* Desktop-only stylesheet — polished layout for large screens */

:root{
  --container:1800px;
  --bg:#f6f8fb;
  --card:#ffffff;
  --muted:#6b7280;
  --text:#0b1220;
  --accent:#2563eb;
  --accent-strong:#1f49d7;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#ef4444;
  --radius:14px;
  --shadow-sm: 0 8px 30px rgba(18,24,40,0.06);
  --shadow-lg: 0 18px 40px rgba(18,24,40,0.08);
  --gap:1rem;
  font-size:16px;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,var(--bg),#ffffff 60%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}
.container{max-width:var(--container);margin:0 auto;padding:1.25rem 2rem}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid #eef2f6;
  position:sticky;top:0;z-index:60;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 2rem}
.brand{display:flex;align-items:center;gap:0.75rem}
.logo{font-weight:800;font-size:1.15rem;color:var(--accent);text-decoration:none}
.nav{display:flex;gap:0.5rem;align-items:center}
.nav a{padding:0.5rem 0.85rem;border-radius:10px;text-decoration:none;color:var(--text);font-weight:700}
.nav a.active{background:linear-gradient(180deg,#f1f6ff,#ffffff);color:var(--accent-strong);box-shadow:var(--shadow-sm)}

/* Hero */
.hero{display:flex;gap:2rem;align-items:center;padding:2.25rem 0}
.hero-left{flex:1;max-width:720px}
.hero h1{margin:0;font-size:2.6rem;line-height:1.02}
.lead{color:var(--muted);margin-top:0.6rem;font-size:1.05rem}
.hero-right{flex:0 0 420px}

/* CTA buttons */
.cta-primary{background:var(--accent);color:#fff;padding:0.8rem 1.1rem;border-radius:12px;border:none;font-weight:800;cursor:pointer}
.cta-ghost{background:transparent;border:1px solid #e7eefb;color:var(--accent);padding:0.7rem 0.95rem;border-radius:12px;cursor:pointer}

/* Search & filters */
.mini-search, .filters{display:flex;gap:0.6rem;align-items:center}
.input, select{padding:0.68rem;border:1px solid #e7eefb;border-radius:10px;background:#fff;min-width:0}
.input[type="search"]{flex:1}
.btn{padding:0.6rem 0.9rem;border-radius:10px;border:none;cursor:pointer;font-weight:700}
.btn-primary{background:var(--accent);color:#fff}
.btn-ghost{background:transparent;border:1px solid #e6eefc;color:var(--accent)}
.btn-outline{background:transparent;border:1px solid #eef3fb;padding:0.5rem 0.7rem;border-radius:8px}

/* Status/meta */
.status-line{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:0.95rem;margin-top:0.5rem}

/* Results grid & cards (desktop-focused) */
.results{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;margin-top:1rem}
.card{background:var(--card);border-radius:var(--radius);padding:1rem;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:0.75rem;min-height:140px}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:0.75rem}
.card-title{margin:0;font-size:1.1rem}
.card-meta{color:var(--muted);font-size:0.95rem}
.card-body{display:flex;justify-content:space-between;align-items:flex-end;gap:0.6rem}
.card-left{display:flex;flex-direction:column;gap:0.4rem}
.card-actions{display:flex;gap:0.5rem}
.muted{color:var(--muted);font-size:0.93rem}

/* Difficulty chips */
.chips{display:flex;gap:0.45rem;align-items:center}
.chip{padding:0.28rem 0.55rem;border-radius:999px;font-weight:800;font-size:0.88rem;color:#fff}
.chip.easy{background:var(--success)}
.chip.medium{background:var(--warning);color:#111}
.chip.hard{background:var(--danger)}

/* Empty / error states */
.empty, .error{padding:1.25rem;border-radius:12px;background:#fff;border:1px dashed #eef3fb;color:var(--muted);text-align:center}

/* Recipe detail */
#recipeDetail .card{padding:1.25rem}
#recipeDetail h2{margin-top:0}
#recipeDetail ul{padding-left:1.25rem}

/* Modal (for future use) */
.modal-backdrop{position:fixed;inset:0;background:rgba(6,12,22,0.45);display:none;align-items:center;justify-content:center;padding:1rem;z-index:200}
.modal-backdrop.open{display:flex}
.modal{background:var(--card);border-radius:14px;max-width:800px;width:100%;padding:1.25rem;box-shadow:var(--shadow-lg);max-height:90vh;overflow:auto}

/* Footer */
.site-footer{padding:1.25rem 0;margin-top:2.5rem;color:var(--muted);text-align:center}

/* Accessibility focus */
a:focus,button:focus,input:focus,select:focus{outline:3px solid rgba(37,99,235,0.12);outline-offset:3px}

/* Utilities */
.kv{font-weight:700;color:var(--muted);font-size:0.95rem}
.small{font-size:0.92rem;color:var(--muted)}
.hidden{display:none !important}


/* ============================================
   MOBILE VIEW FIXES
   ============================================ */

/* Featured Recipes */
@media (max-width: 600px) {
    .results {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    .card {
        width: 100% !important;
        min-height: auto !important;
        padding: 0.8rem !important;
    }

    .card img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        border-radius: 8px;
    }
}

/* Search Bar */
@media (max-width: 600px) {

    .mini-search,
    .filters,
    .search-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 0 !important;
        flex-wrap: wrap !important;
    }

    .mini-search input[type="search"],
    .filters input[type="search"],
    input[type="search"] {
        width: 100% !important;
        font-size: 1rem !important;
        padding: 0.65rem !important;
    }

    .mini-search button,
    .filters button {
        width: 100% !important;
        margin-top: 0.55rem !important;
    }
}
