/* css/cafe.css — Estilos integrados do Café de Produção com o Design System do Portal */

.cafe-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 4px;
}

/* Hero Banner da Cafeteria */
.cafe-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}

.cafe-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=1400&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  filter: saturate(0.85);
}

:root[data-mode="light"] .cafe-hero-bg {
  opacity: 0.18;
}

.cafe-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.cafe-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.cafe-hero-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0;
}

.cafe-hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Bento Grid */
.cafe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .cafe-grid {
    grid-template-columns: 1.45fr 1fr;
  }
}

/* Cards Bento */
.cafe-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

/* Chat Nina */
.cafe-chat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 4px;
  margin: 12px 0;
}

.cafe-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.cafe-bubble-nina {
  align-self: flex-start;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
}

.cafe-bubble-user {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
  border-top-right-radius: 4px;
  font-weight: 500;
}

/* Pílulas de Ação Rápida */
.cafe-quick-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cafe-quick-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Timer Pomodoro */
.cafe-timer-display {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: center;
  margin: 14px 0;
  line-height: 1;
}

.cafe-time-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s;
}

.cafe-time-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.cafe-play-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cafe-play-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Checkboxes Redondos da To-do List */
.cafe-round-check {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.cafe-round-check:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.cafe-round-check:checked::before {
  content: "";
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
}

.cafe-todo-done {
  text-decoration: line-through;
  color: var(--muted);
  opacity: 0.7;
}

/* Widget Spotify Flutuante */
.cafe-spotify-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.05);
}

