/* ==========================================================================
   Webcam Directory — /webcams
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   ========================================================================== */

/* --- Hero --- */
.wc-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center center;
  background-color: #1a3a4a;
}
.wc-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.wc-hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.wc-hero h1 i { margin-right: 8px; }
.wc-hero p {
  color: rgba(255,255,255,.92);
  font-size: 19px;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .wc-hero { min-height: 340px; }
  .wc-hero h1 { font-size: 42px; }
  .wc-hero p { font-size: 21px; }
}

/* --- Island Tabs --- */
.wc-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px auto 6px;
  padding: 0 12px;
  max-width: 780px;
}
.wc-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border: 2px solid #ddd;
  border-radius: 40px;
  background: #fff;
  color: #555;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.wc-tab:hover {
  border-color: #bbb;
  color: #333;
  background: #f8f8f8;
}
.wc-tab.is-active {
  background: #2a7b5b;
  border-color: #2a7b5b;
  color: #fff;
}
.wc-tab .wc-tab-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* --- Category filter pills --- */
.wc-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px auto 28px;
  padding: 0 12px;
}
.wc-filter {
  padding: 8px 18px;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.wc-filter:hover {
  border-color: #bbb;
  color: #333;
}
.wc-filter.is-active {
  background: #e8f4ec;
  border-color: #2a7b5b;
  color: #2a7b5b;
}

/* --- Section labels --- */
.wc-section-label {
  font-size: 16px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 32px 0 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wc-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* --- Webcam Card Grid --- */
.wc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) {
  .wc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .wc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Webcam Card --- */
.wc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: transform .22s ease, box-shadow .22s ease;
  text-decoration: none;
  color: inherit;
}
.wc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.wc-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #1a2a3a;
}
.wc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.wc-card:hover .wc-card-img img {
  transform: scale(1.04);
}
.wc-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 6px 12px;
  border-radius: 8px;
}
.wc-card-badge i { font-size: 13px; }
.wc-card-live {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220,38,38,.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 6px;
}
.wc-card-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: wc-pulse 1.5s ease-in-out infinite;
}
@keyframes wc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.wc-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wc-card-body h3 {
  font-size: 19px;
  margin: 0 0 6px;
  color: #1a1a1a;
  line-height: 1.3;
}
.wc-card-body p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.wc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.wc-card-source {
  font-size: 13px;
  color: #999;
}
.wc-card-cta {
  font-size: 14px;
  font-weight: 700;
  color: #2a7b5b;
  white-space: nowrap;
}
.wc-card:hover .wc-card-cta { color: #1a5a3a; }

/* --- Hidden state for filtering --- */
.wc-card.is-hidden { display: none; }

/* --- Info note --- */
.wc-info {
  background: #f8faf9;
  border: 1px solid #d8e8dd;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}
.wc-info i {
  color: #2a7b5b;
  margin-right: 6px;
}

/* --- Bottom Links --- */
.wc-bottom-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 44px 0 30px;
}
@media (min-width: 560px) {
  .wc-bottom-links { grid-template-columns: repeat(2, 1fr); }
}
.wc-bottom-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f4ec 100%);
  border: 1px solid #d0e8db;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  font-size: 17px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.wc-bottom-link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.wc-bottom-link i {
  font-size: 28px;
  color: #2a7b5b;
  flex-shrink: 0;
}
.wc-bottom-link strong {
  color: #2a7b5b;
}

/* --- Print --- */
@media print {
  .wc-tabs, .wc-filters, .wc-bottom-links { display: none; }
  .wc-hero { min-height: 80px; border-radius: 0; }
}
