/* SWB — Website Maintenance Mode | frontend/maintenance.css
   Companion to maintenance.js. Reuses the CSS variables from styles.css
   (same dark theme, same buttons/cards). No external images or fonts. */

/* --- Owner banner: shown at the top of every page while maintenance is ON,
       only when the signed-in user is the Owner. --- */
.swb-maint-banner {
  background: #451a03;
  border-bottom: 1px solid #92400e;
  color: #fde68a;
  padding: 10px 0;
  font-size: .92rem;
}
.swb-maint-banner a { color: #fff; font-weight: 700; text-decoration: underline; }

/* --- Maintenance page --- */
.maint {
  display: flex;
  justify-content: center;
  padding: 30px 0 50px;
}
.maint-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
}
.maint-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), #7a1020 60%, var(--blue));
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .5px;
  color: #fff;
  box-shadow: 0 0 24px rgba(230, 57, 70, .35);
  margin-bottom: 8px;
}
.maint-art { width: 100%; max-width: 320px; height: auto; margin: 6px auto 2px; display: block; }
.maint h1 { margin-top: .3em; }
.maint-msg { font-size: 1.06rem; color: #c6d2e6; }
.maint-return {
  display: inline-block;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .45);
  color: #fef3c7;
  border-radius: 10px;
  padding: 9px 14px;
  margin: 10px 0 4px;
}
.maint-actions { margin-top: 18px; }
.maint-credit { margin-top: 22px; color: var(--muted); font-size: .9rem; }

/* --- Admin maintenance section: toggle row --- */
[data-maintenance-admin] #maint-enabled { margin-right: 8px; transform: scale(1.25); }
[data-maintenance-admin] .form-error[hidden],
[data-maintenance-admin] .form-ok[hidden] { display: none; }

@media (max-width: 620px) {
  .maint-card { padding: 26px 18px; }
  .maint-logo { width: 54px; height: 54px; font-size: 1.15rem; }
}
