/* =========================================================
   page-webcam.css - Webcam (premium)
   NOTE: This file should only style the webcam page.
   ========================================================= */

/* Shell */
.webcam-shell{
  padding: 22px;
  overflow: hidden;
  position: relative;
}

/* Header */
.webcam-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.webcam-head h1{
  margin: 6px 0 8px;
  letter-spacing: -0.01em;
}

.webcam-head .muted{
  max-width: 72ch;
}

.webcam-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.webcam-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-weight: 700;
  font-size: 12px;
}

.webcam-pill__dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

.webcam-pill--soft{
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.72);
}

.webcam-pill--ghost{
  background: transparent;
  color: rgba(255,255,255,.6);
  border-style: dashed;
}

/* Actions */
.webcam-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }

.webcam-actions-wrap{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.webcam-partner{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.webcam-partner__logo{
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(2,6,23,.35));
  border-radius: 10px;
}

  /* Match map-day button style */
  .webcam-actions .button{
    border-radius: 12px;
    border: 1px solid rgba(0,10,255,1) !important;
    background: rgba(0,10,255,.45) !important;
    color: #fff !important;
    padding: 7px 12px;
    font-weight: 800;
    font-size: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0,10,255,.55) !important;
    transition: transform .15s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .webcam-actions .button:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.35);
  }

.webcam-actions--inline{
  justify-content: flex-start;
}

/* Panel full */
.meteo-panel--full{
  border-radius: var(--r-lg, 20px);
  border: 1px solid var(--stroke, rgba(255,255,255,.10));
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(34,211,255,.08), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(179,92,255,.08), transparent 55%),
    rgba(255,255,255,.03);
  box-shadow: var(--shadow-soft, 0 12px 36px rgba(0,0,0,.35));
  overflow: hidden;
}

.meteo-head{
  padding: 18px 18px 0;
}

.meteo-head h3{
  margin: 6px 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.meteo-head .muted{
  margin: 0 0 2px;
}

/* Embed wrapper */
.meteo-embed--full{
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  position: relative;
}

/* Subtle depth */
.meteo-embed--full::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.35);
  opacity: .9;
}

/* Iframe */
.meteo-embed--full iframe{
  width: 100%;
  height: min(78svh, 820px);
  border: 0;
  display: block;
  background: rgba(10,16,30,.75);
}

.webcam-map-panel{
  margin-top: 14px;
}

.meteo-embed--map iframe{
  height: min(70svh, 760px);
}

/* Info cards */
.webcam-info{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.webcam-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.webcam-card h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.webcam-card .muted{
  margin: 0;
  line-height: 1.55;
}

.webcam-list{
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.webcam-list span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.webcam-list span::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(34,211,255,.9);
  box-shadow: 0 0 0 4px rgba(34,211,255,.12);
}

/* Light theme fixes */
body[data-theme="clair"] .webcam-head h1,
body[data-theme="clair"] .webcam-head p,
body[data-theme="clair"] .webcam-pill,
body[data-theme="clair"] .webcam-card h3,
body[data-theme="clair"] .webcam-card p,
body[data-theme="clair"] .webcam-list{
  color: #0f172a !important;
}
body[data-theme="clair"] .webcam-pill{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.12);
}
body[data-theme="clair"] .webcam-pill--soft,
body[data-theme="clair"] .webcam-pill--ghost{
  color: #475569;
}
body[data-theme="clair"] .webcam-card{
  background: rgba(255,255,255,.96);
  border-color: rgba(15,23,42,.12);
}
body[data-theme="clair"] .webcam-card .muted{
  color: #475569;
}

/* Footer actions */
/* Responsive */
@media (max-width: 860px){
  .webcam-shell{ padding: 16px; }

  .webcam-head{
    flex-direction: column;
    align-items: stretch;
  }

  .webcam-actions{
    justify-content: flex-start;
  }
  .webcam-actions-wrap{
    align-items: flex-start;
  }
  .webcam-partner__logo{
    height: 30px;
  }

  .meteo-head{ padding: 16px 16px 0; }
  .meteo-embed--full iframe{
    height: min(78svh, 720px);
  }
  .meteo-embed--map iframe{
    height: min(72svh, 640px);
  }
}

@media (prefers-reduced-motion: reduce){
  .webcam-pill__dot{ box-shadow: none; }
}
