/* ==========================================================
   PN Tech - Coming Soon & Public Access Guard Styles
   Minimalist, ultra-clean English Coming Soon Screen
   ========================================================== */

/* Universal Hide: when Coming Soon is active, instantly hide all page content */
body.pn-coming-soon-active > *:not(.floating-nav-container):not(.site-foot):not(.bottom-nav):not(#toast):not(#floatingWaBtn):not(#cartDialog):not(#pnComingSoonScreen):not(script):not(style) {
  display: none !important;
}

body.pn-coming-soon-active .kb-hero-section,
body.pn-coming-soon-active main.wrap,
body.pn-coming-soon-active .kb-floating-dock,
body.pn-coming-soon-active .finder,
body.pn-coming-soon-active #projects-container,
body.pn-coming-soon-active .kb-start-banner,
body.pn-coming-soon-active .kb-section-box {
  display: none !important;
}

/* ---------- Container & Layout ---------- */
.pn-coming-soon-wrap {
  width: 100%;
  min-height: calc(80vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 3.5rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Subtle background circuit ambiance */
.pn-coming-soon-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 25%, rgba(220, 194, 141, 0.22) 0%, transparent 60%),
    radial-gradient(rgba(59, 40, 27, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Main Coming Soon Card (Ultra Minimalist) ---------- */
.pn-cs-card {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--line, #E8DFC8);
  border-radius: 24px;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  box-shadow: 
    0 24px 50px -12px rgba(59, 40, 27, 0.09),
    0 0 0 1px rgba(220, 194, 141, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pnCsFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-sizing: border-box;
}

@keyframes pnCsFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Top Pill Badge ---------- */
.pn-cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FAF6EE;
  color: #854d0e;
  border: 1px solid #DCC28D;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(220, 194, 141, 0.2);
}

.pn-cs-badge-dot {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  display: inline-block;
  animation: pnCsPulse 1.8s infinite ease-in-out;
}

@keyframes pnCsPulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

/* ---------- Icon / Illustration Area ---------- */
.pn-cs-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #FAF7F2 0%, #F5EEDB 100%);
  border: 1.5px solid #DCC28D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 10px 24px rgba(59, 40, 27, 0.08);
  position: relative;
  animation: pnCsFloat 3.6s ease-in-out infinite;
}

@keyframes pnCsFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.pn-cs-icon-glow {
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(220, 194, 141, 0.4) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Typography ---------- */
.pn-cs-title-main {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--board, #3B281B);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.5px;
}

.pn-cs-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 0.75rem;
  letter-spacing: 0.1px;
}

.pn-cs-desc {
  font-size: 0.96rem;
  color: var(--muted, #786B62);
  line-height: 1.6;
  margin: 0 auto 1.85rem;
  max-width: 380px;
}

/* ---------- Action Buttons ---------- */
.pn-cs-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pn-cs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #3B281B 0%, #241F21 100%);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59, 40, 27, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(220, 194, 141, 0.3);
}

.pn-cs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 40, 27, 0.35);
  border-color: #DCC28D;
  color: #ffffff;
}

.pn-cs-btn-home {
  font-size: 0.92rem;
  color: var(--muted, #786B62);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.4rem;
  transition: color 0.15s;
}

.pn-cs-btn-home:hover {
  color: var(--board, #3B281B);
  text-decoration: underline;
}


/* ---------- Admin Mode Top Notification Banner ---------- */
.pn-admin-preview-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  border-bottom: 2px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.pn-admin-preview-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.pn-admin-preview-tag {
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pn-admin-preview-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pn-admin-preview-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pn-admin-preview-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.pn-admin-preview-btn.accent {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}

.pn-admin-preview-btn.accent:hover {
  background: #d97706;
  color: #ffffff;
}

/* ---------- Admin Switch Toggle Component (Used in admin/projects.html) ---------- */
.pn-switch-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  vertical-align: middle;
}

.pn-switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pn-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pn-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .pn-switch-slider {
  background-color: #f59e0b; /* Amber when Coming Soon is ON */
}

input:checked + .pn-switch-slider:before {
  transform: translateX(24px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .pn-cs-card {
    padding: 2.25rem 1.25rem 1.75rem;
    border-radius: 18px;
  }
  .pn-cs-title-ar {
    font-size: 1.5rem;
  }
  .pn-cs-highlights {
    grid-template-columns: 1fr;
  }
  .pn-admin-preview-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
