/* Icons */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.icon-circle .icon {
  width: 22px;
  height: 22px;
}

.icon-circle--rounded {
  border-radius: var(--radius-s);
}

.icon-circle--solid {
  background: var(--accent);
  color: var(--on-accent);
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
}

/* Expands the tap target to 46px without changing the 42px visual */
.theme-toggle::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
}

.theme-toggle .icon {
  width: 20px;
  height: 20px;
}

.icon-moon {
  display: none;
}

:root[data-theme="light"] .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-moon {
  display: block;
}

/* Cards */
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  padding: 22px;
  border-radius: var(--radius-l);
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}

.tile p {
  font-size: 15px;
  color: var(--text-2);
}

.tile--inner {
  min-height: 0;
  border-radius: var(--radius-m);
  background: var(--card-2);
  border: 1px solid var(--line);
  box-shadow: none;
}

.tile--compact {
  gap: 10px;
  min-height: 0;
  padding: 20px;
  border-radius: var(--radius-m);
}

.tile--compact .icon-circle {
  width: 40px;
  height: 40px;
}

.tile--compact .icon-circle .icon {
  width: 20px;
  height: 20px;
}

.tile--compact h3 {
  font-size: 17px;
}

.tile--compact p {
  font-size: 14px;
}

.panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: radial-gradient(600px 400px at 85% 0%, var(--accent-glow), transparent 70%), var(--card);
  background-clip: padding-box;
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}

@media (max-width: 640px) {
  .panel {
    padding: 28px 22px;
  }
}

/* Floating hero pill */
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-pill);
  background: var(--pill);
  border: 1px solid var(--pill-line);
  box-shadow: var(--pill-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pill__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  color: var(--text);
}

.pill__badge .icon {
  width: 16px;
  height: 16px;
}

.pill__name {
  font-size: 15px;
  font-weight: 600;
}

.pill__streak {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
}
