/* ==========================================================================
   DEVLPOPIA — MINIMALIST CALENDAR
   ========================================================================== */

:root {
  --bg: #0e1015;
  --surface: #12151c;
  --shadow-dark: #07080b;
  --shadow-light: #1c202a;
  --accent: #3b82f6;
  --accent-green: #10b981;
  --text: #f3f4f6;
  --text-muted: #8b92a0;
  --border: rgba(255, 255, 255, 0.05);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* HEADER */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.status-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.hours {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* INTRO */
.intro {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
}

.intro-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.intro-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* CALENDAR CONTAINER */
.calendar-container {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  min-height: 520px;
}

@media (min-width: 769px) {
  .calendar-container {
    height: 442px;
    min-height: 442px;
    overflow: hidden;
  }
}

#cal-embed {
  width: 100%;
  min-height: 520px;
}

#cal-embed iframe {
  width: 100% !important;
  min-height: 520px !important;
  border: none !important;
  display: block;
}

/* Loader discret */
.loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.25s ease;
  z-index: 2;
  pointer-events: none;
}

.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    padding: 20px 12px;
    align-items: flex-start;
  }

  .wrapper {
    gap: 18px;
  }

  .header {
    padding: 0 2px;
  }

  .logo {
    height: 22px;
  }

  .hours {
    display: none;
  }

  .intro-title {
    font-size: 1.35rem;
  }

  .intro-desc {
    font-size: 0.85rem;
  }

  .calendar-container, #cal-embed, #cal-embed iframe {
    min-height: 650px !important;
  }
}
