/* Muffin HQ — iPad-first, big-tap tiles */

:root{
  /* Dusk sky palette */
  --bg: #0c1024;              /* deep indigo night */
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,170,90,0.12);
  --border: rgba(255,180,120,0.18);

  --text: rgba(255,255,255,0.94);
  --muted: rgba(255,220,190,0.65);

  --tile: rgba(111, 91, 167, 0.18);      /* purple glass */
  --tile-hover: rgba(241, 157, 88, 0.39); /* warm orange glow */

  --shadow: 0 20px 50px rgba(30, 10, 60, 0.55);
  --radius: 22px;

  --tile-min-h: 92px;
}


:root[data-theme="light"]{
  --bg: #f7f8fb;
  --panel: rgba(0,0,0,0.04);
  --panel-strong: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.10);
  --text: rgba(0,0,0,0.88);
  --muted: rgba(0,0,0,0.58);

  --tile: rgba(255,255,255,0.85);
  --tile-hover: rgba(255,255,255,0.95);

  --shadow: 0 16px 42px rgba(0,0,0,0.12);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
    margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);

  background:
    /* Warm horizon glow */
    radial-gradient(900px 500px at 20% 85%, rgba(255,140,80,0.28), transparent 60%),

    /* Pink cloud band */
    radial-gradient(800px 600px at 70% 70%, rgba(255,110,180,0.25), transparent 65%),

    /* Purple sky depth */
    radial-gradient(1100px 700px at 50% 10%, rgba(130,90,255,0.30), transparent 70%),

    /* Base night sky */
    linear-gradient(180deg, #0c1024 0%, #0a0e1f 100%);
  
}


.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 34px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px 16px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.22), rgba(0,0,0,0.00));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

:root[data-theme="light"] .topbar{
  background: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0.62));
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.logo{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 22px;
}

h1{
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

h1{
  margin: 0;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: 0.6px;
  font-weight: 700;
}


h1, h2{
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.3px;
}


.subtitle{
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.subtitle{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}


.now{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

#countdownChip{
  background: linear-gradient(
    135deg,
    rgba(255,140,90,0.35),
    rgba(180,120,255,0.35)
  );
  border-color: rgba(255,180,120,0.4);
  font-weight: 600;
}


.chip-button{
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, background 120ms ease;
}

.chip-button:active{
  transform: scale(0.98);
}

.section{
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.10);
  border: 1px solid rgba(255,255,255,0.07);
}

:root[data-theme="light"] .section{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
}

.section-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-header h2{
  margin: 0;
  font-size: 18px;
}

.section-header p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 560px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 860px){
  .grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tile{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  min-height: var(--tile-min-h);
  border-radius: 18px;
  background: var(--tile);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 140ms ease, background 140ms ease;
  backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);

}



.tile:active{
  transform: scale(0.985);
  box-shadow:
    0 0 0 2px rgba(255,160,90,0.25),
    var(--shadow);
}


.tile:hover{
  background: var(--tile-hover);
}

.icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  font-size: 20px;
  flex: 0 0 auto;
}

.tile-text{
  min-width: 0;
}

.tile-title{
  font-weight: 650;
  font-size: 15px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-sub{
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer{
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 6px 0 0;
}
