/* ============================================================
   BLOG CALENDAR — styles
   ============================================================ */

.blog-calendar,
.bcal-wrap {
  margin: 28px 0;
  font-family: 'DM Sans', 'DM Sans Fallback', -apple-system, sans-serif;
}

.bcal-grid {
  display: grid;
  gap: 10px;
}

.bcal-wrap--months .bcal-grid {
  grid-template-columns: repeat(4, 1fr);
}

.bcal-wrap--week .bcal-grid {
  grid-template-columns: repeat(7, 1fr);
}

.bcal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: #FAFAF7;
  border: 2px solid #E8DFC9;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  position: relative;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  min-height: 80px;
}

.bcal-cell:hover {
  background: #F5F0E6;
  border-color: #C8A97E;
  transform: translateY(-2px);
}

.bcal-cell:active {
  transform: translateY(0);
}

.bcal-cell--highlight {
  background: linear-gradient(135deg, #C8A97E, #B8945E) !important;
  border-color: #B8945E !important;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(184, 148, 94, 0.3);
}

.bcal-cell--highlight:hover {
  background: linear-gradient(135deg, #D4B68C, #C8A97E) !important;
  transform: translateY(-2px) scale(1.02);
}

.bcal-cell--playing {
  border-color: #16A34A !important;
  animation: bcal-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes bcal-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  100% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bcal-cell--playing { animation: none; }
}

.bcal-cell--error {
  opacity: 0.5;
}

.bcal-en {
  font-family: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  font-size: 1.05em;
  color: #0F1923;
  line-height: 1.2;
  font-weight: 400;
}

.bcal-cell--highlight .bcal-en {
  color: #FFFFFF;
}

.bcal-pt {
  font-size: 0.8em;
  color: #6B7280;
  margin-top: 2px;
}

.bcal-cell--highlight .bcal-pt {
  color: rgba(255, 255, 255, 0.85);
}

.bcal-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #C8A97E;
  opacity: 0.6;
}

.bcal-cell--highlight .bcal-icon {
  color: #FFFFFF;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 600px) {
  .bcal-wrap--months .bcal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .bcal-wrap--week .bcal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .bcal-cell {
    padding: 12px 4px;
    min-height: 70px;
  }
  .bcal-en {
    font-size: 0.95em;
  }
  .bcal-pt {
    font-size: 0.75em;
  }
}

@media (max-width: 380px) {
  .bcal-wrap--months .bcal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
