/*
Theme Name: Coming Soon Pro
Theme URI: https://wordpress.org/themes/coming-soon-pro/
Author: WP Craft Studio
Author URI: https://w3skillset.com
Description: A modern, premium, fully responsive WordPress Coming Soon & Maintenance Mode theme featuring dynamic full-screen visual backdrops, customizable countdown timer, interactive notify modal, and WordPress Admin Settings.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coming-soon-pro
Tags: coming-soon, maintenance-mode, one-column, custom-colors, custom-background, full-width-template
*/

/* -------------------------------------------------------------
 * 1. Core Reset & Viewport Constraints
 * ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #050505;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------
 * 2. Full-Screen Hero Layout (100vh x 100vw)
 * ------------------------------------------------------------- */
#wp-coming-soon-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  padding: 2rem 1.5rem;
  z-index: 1;
}

/* -------------------------------------------------------------
 * 3. Dynamic Background Layers
 * ------------------------------------------------------------- */
.cs-bg-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cs-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 0.5s ease-out;
}

.cs-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.cs-bg-gradient {
  position: absolute;
  inset: 0;
  background-size: 200% 200%;
  animation: csGradientFlow 12s ease infinite;
}

.cs-bg-cinematic-dark {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #18181b 0%, #09090b 50%, #000000 100%);
}

.cs-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: #000000;
  transition: opacity 0.3s ease;
}

.cs-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* -------------------------------------------------------------
 * 4. Header & Logo
 * ------------------------------------------------------------- */
.cs-header {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.cs-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.cs-logo-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

/* -------------------------------------------------------------
 * 5. Center Hero & Primary Headline
 * ------------------------------------------------------------- */
.cs-main-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  max-width: 900px;
  width: 100%;
}

.cs-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.cs-pulse-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background-color: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

.cs-status-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #cbd5e1;
}

/* Main Heading "SEE YOU SOON" */
.cs-heading {
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.16em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  margin-bottom: 1rem;
}

/* Typography options */
body.font-cinzel .cs-heading {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.18em;
}
body.font-syne .cs-heading {
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.08em;
}
body.font-montserrat .cs-heading {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.22em;
}
body.font-cormorant .cs-heading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 0.14em;
}
body.font-space .cs-heading {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.12em;
}

.cs-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  color: #cbd5e1;
  letter-spacing: 0.05em;
  max-width: 600px;
  margin: 0 auto;
}

.cs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.cs-divider-line {
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.cs-divider-gem {
  width: 0.4rem;
  height: 0.4rem;
  transform: rotate(45deg);
  background-color: #d4af37;
}

/* -------------------------------------------------------------
 * 6. Dynamic Countdown Grid
 * ------------------------------------------------------------- */
.cs-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cs-countdown-grid {
    gap: 1.25rem;
  }
}

.cs-time-card {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
}

.cs-time-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.cs-time-num {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.cs-time-label {
  margin-top: 0.4rem;
  font-size: clamp(0.6rem, 1.2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cs-live-message {
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d4af37;
}

/* -------------------------------------------------------------
 * 7. Action Buttons
 * ------------------------------------------------------------- */
.cs-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  outline: none;
}

.cs-btn-primary {
  background-color: #d4af37;
  color: #000000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.cs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.cs-btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.cs-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
 * 8. Footer & Social Contacts
 * ------------------------------------------------------------- */
.cs-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-align: center;
}

.cs-social-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cs-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-whatsapp-pill {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.cs-whatsapp-pill:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: scale(1.04);
}

.cs-email-pill {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}
.cs-email-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: scale(1.04);
}

.cs-footer-text {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------
 * 9. Keyframe Animations
 * ------------------------------------------------------------- */
@keyframes csGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
