=== Simple Coming Soon ===
Contributors: ssebuwufumoses, hanifahnabayinda
Tags: coming soon, maintenance, maintenance mode, under construction, wordpress coming soon
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.4.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The ultimate free Coming Soon plugin. Features Auto-Launch countdown, Secret Client Access, Pro Action Button, plus a modern Glassmorphism design UI.

== Description ==

Simple Coming Soon is the easiest way to hide your site from visitors while you work on it. Features Pro-level design controls, Auto-Launch Timer, 5 Design Presets, and a handy Admin Bar Status Indicator.

**🔥 Key Features:**

* **5 Design Presets:** Apply a complete visual style in one click — Minimal, SaaS Dark, Product Launch, Agency, or Event.
* **Animated Backgrounds:** Choose from Solid Color, Gradient, Animated Mesh, Background Image, or Video URL.
* **Tabbed Settings UI:** Organized interface for easier customization.
* **SEO & Visibility:** Set custom Meta Titles and Descriptions for Google.
* **One-Click Enable/Disable:** Instantly turn maintenance mode on or off.
* **Pro Action Button:** Full CTA design control with live preview — colors, hover, border, radius, padding, and shadow. Default and Hover colors in separate tabs.
* **Launch Progress Bar:** Show visitors how close you are to launch with an animated fill bar.
* **Analytics Integration:** Add Google Analytics (GA4), Facebook Pixel, or other tracking scripts.
* **Modern Social Icons:** Support for TikTok, YouTube, LinkedIn, X (Twitter), Facebook, and Instagram.
* **Shadow Presets:** Apply professional shadow styles (Soft, Medium, Hard, Deep 3D).
* **Smart Countdown:** Responsive countdown clock with Screen Reader support.
* **Auto-Launch Mode:** Automatically publish your site when the countdown ends.
* **Secret Bypass Link:** Share a "Magic Link" (e.g., `/?secret=clientview`) to let clients see the site without an account.
* **Frosted Glass Effect:** Modern Apple-style "Glassmorphism" look with Blur and Opacity controls.
* **Admin Status Indicator:** Quickly see if your site is "Locked" or "Live" via the WP Admin Bar.
* **SEO Friendly:** Sends a proper 503 HTTP status code to search engines.
* **WCAG 2.1 AA Compliant:** All design presets pass color contrast requirements for buttons, text, and timer elements.

== Installation ==

1. Upload the `simple-coming-soon` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. **Navigate to Settings > Coming Soon** to configure your page.
4. Flip the toggle to enable maintenance mode and click "Save Changes".

== Usage ==

**1. How to Enable/Disable:**
* Go to **Settings > Coming Soon**.
* Use the top toggle to turn the page on or off.
* The Admin Bar badge reflects your current status from anywhere in wp-admin.

**2. Choosing a Design Preset:**
* Go to the **Design** tab and click any preset button.
* Presets apply colors, font, glassmorphism, and background mode together — no page reload required.
* Customize any individual field after applying a preset, then click Save.

**3. Designing the "Glass" Effect:**
* Go to the **Design** tab.
* Upload a Background Image or choose Animated Mesh for a no-image glassmorphism look.
* Adjust **Card Opacity** and **Blur Radius** to create the frosted glass effect.

**4. Setting up the Countdown & Auto-Launch:**
* Go to the **Elements** tab.
* Enable the timer and pick your launch date/time.
* Check "Auto-Launch" to have the plugin disable itself automatically when the timer hits zero.

**5. Sharing with Clients (Secret Access):**
* Go to the **Advanced** tab.
* Enter a secret keyword (e.g., `preview`) in the **Bypass Keyword** field.
* Save and copy the Magic Link. Anyone with this link can see the real site.

**6. Adding Tracking (GA4/Pixel):**
* Go to the **Advanced** tab.
* Paste your code into the **Header Scripts** box. It only loads on the Coming Soon page.

== Frequently Asked Questions ==

**Q: Why can I still see my website after enabling the plugin?**
A: The plugin allows Administrators to see the real site so you can keep working on it. To see what visitors see, open your site in an **Incognito/Private** browser window.

**Q: How do I let my client see the site without giving them a login?**
A: Use the **Secret Client Access** feature in the Advanced tab. Set a keyword, save, and send them the generated Magic Link. They will be whitelisted via a browser cookie.

**Q: My background or colors aren't changing when I save.**
A: This is usually caused by a caching plugin (like WP Rocket or W3 Total Cache). Clear your site cache after saving settings.

**Q: Does the Countdown Timer work in all timezones?**
A: Yes, the timer uses your WordPress Site Time (set in Settings > General) to calculate the remaining time.

**Q: Will this hurt my Google ranking?**
A: No. This plugin sends a **503 Service Unavailable** header with a Retry-After value. This tells Google the site is temporarily down for maintenance, preserving your SEO.

**Q: How do I change the font?**
A: Go to the **Design** tab and use the **Font** dropdown. Choose from Inter, Poppins, Merriweather, Playfair Display, or Space Mono.

**Q: Can I apply a preset and then customize it?**
A: Absolutely. Presets populate the form fields — nothing is locked. Change any field after applying a preset before saving.

== Screenshots ==

1. **Frontend View:** The Coming Soon page with animated mesh background, frosted glass card, and staggered entrance animations.
2. **Content Tab:** Set your logo (with width slider), headline, and body text shown on the coming soon page.
3. **Design Presets & Background:** Five one-click visual presets (Minimal, SaaS Dark, Product Launch, Agency, Event) with the active preset highlighted, plus Background settings showing Animated Mesh mode with FROM/TO gradient color pickers.
4. **Countdown Timer:** Configure your launch date/time, enable Auto-Launch to go live automatically when the timer hits zero, and set custom digit and label colors.
5. **Launch Progress Bar:** Enable the animated fill bar, set a custom label, and drag the live admin slider to reflect your current launch percentage.
6. **Pro Action Button:** Live "Join The Waitlist" button preview, tabbed Default/Hover color panels, and slider-based radius, vertical/horizontal padding, shadow, and border controls.
7. **Advanced Tab — SEO, Analytics & Secret Access:** Set a custom Page Title and Meta Description for search engines, paste GA4/Facebook Pixel scripts into the Header Scripts box, and configure a Secret Key to generate a private Magic Link for client previews.

== Changelog ==

= 1.4.8 =
* **Note:** Versions 1.4.6 and 1.4.7 were withdrawn due to a deployment issue that caused the admin UI to appear unstyled for users updating via the WordPress dashboard. This release supersedes both and is the stable version to update to.
* **New:** 5 one-click Design Presets (Minimal, SaaS Dark, Product Launch, Agency, Event) — apply colors, font, glassmorphism, and background mode together.
* **New:** Background Mode selector — Solid Color, Gradient, Animated Mesh, Background Image, and Video URL.
* **New:** Launch Progress Bar with customizable label, animated fill, and live admin slider preview.
* **Redesigned:** CTA Action Button card — live preview, tabbed Default/Hover color panels, slider-based radius and padding controls.
* **Redesigned:** Full admin dashboard rewrite — card-based layout, animated toggles, sticky save bar, staggered animations.
* **Redesigned:** Frontend visual layer — ambient background orbs, spring-easing card entrance, staggered element animations, upgraded countdown boxes and social icons.
* **Accessibility:** All presets now pass WCAG 2.1 AA color contrast. Fixed SaaS Dark button contrast from 4.3:1 to 6.2:1. Timer colors corrected for dark-background presets.
* **Fix:** Progress label and percentage now inherit the user-set text color.
* **Improvement:** All admin strings use the `simple-coming-soon` text domain — fully translation-ready.

= 1.4.5 =
* **Fix:** Added `nocache_headers` to prevent Cloudflare/Edge Caching from displaying the "Live" site instead of the "Coming Soon" page.
* **Fix:** Improved HTTP headers to ensure stronger cache-busting for maintenance mode.

= 1.4.4 =
* **New:** "Tabbed Interface" for organized settings (Content, Design, Elements, Advanced).
* **Feature:** Added "Scripts & Analytics" field for GA4/Facebook Pixel integration.
* **Feature:** Added "One-Click Enable/Disable" toggle in settings.
* **Feature:** Added "Admin Bar Status Indicator" (WCAG Compliant labels).
* **New Icons:** Added TikTok, YouTube, and LinkedIn support.
* **Fix:** Improved padding logic with smart fallbacks (12px/25px) for the Pro Action Button.
* **Fix:** Resolved compliance issues for Google Fonts enqueuing.
* **Fix:** Resolved color resetting bug when switching between setting tabs.
* **Fix:** Improved mobile responsiveness and scrolling using modern 100dvh units.
* **Improved:** Updated documentation and UI layout with Dashicons.

= 1.4.3 =
* **Improved:** Replaced heavy Dashicons with lightweight inline SVGs for better performance.
* **Update:** Updated Twitter logo to the new "X" branding.
* **Fix:** Removed Dashicons dependency from frontend to improve page load speed.

= 1.4.2 =
* **Massive Update: The "Pro" Release**
* **New:** Advanced Action Button with Hover, Border, Padding, and Shadow controls.
* **New:** Smart Countdown Timer with Auto-Launch mode.
* **New:** "Frosted Glass" design engine (Blur & Opacity).
* **New:** Secret Client Bypass link to share site access.
* **Improved:** WCAG Accessibility compliance for social icons and focus states.

= 1.3.1 =
* **Feature:** Added a Settings Page (Settings > Coming Soon).
* **Feature:** Added Logo Upload capability.
* **Feature:** Added Customizable Headline and Message fields.
* **Feature:** Added Social Media icons (Facebook, X, Instagram).
* **Style:** Complete visual overhaul with modern gradient background and animations.
* **Compatibility:** Tested up to WordPress 6.9.

= 1.0.2 =
* Fixed: Removed global `<body>` styling that caused the plugin to cover site headers and sections.
* Fixed: Ensured the coming soon page displays correctly without breaking the site layout.
* Improved: Wrapped content in a dedicated `.scs-wrapper` for safer styling.
* Improved: Added responsive design with mobile-friendly font sizes.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.4.8 =
Major overhaul: 5 design presets, animated backgrounds, launch progress bar, redesigned CTA button with live preview, fully rebuilt admin dashboard, WCAG 2.1 AA accessibility fixes, and a fix for the broken admin UI on dashboard updates. Update recommended.

= 1.4.5 =
Urgent Fix: Solves critical issue where Cloudflare or Edge Caching would display the "Live" homepage instead of the Coming Soon page.

= 1.4.4 =
Major Update: New Tabbed Settings, Analytics Integration, Admin Status Bar, Social Icon updates, and Pro-Level Design Fixes.
