=== 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: 7.1
Requires PHP: 7.4
Stable tag: 1.4.9
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.
* **True Visitor Preview:** See exactly what a logged-out visitor sees, in a new tab, while you stay logged in.
* **SEO Friendly:** Sends a proper 503 HTTP status code to search engines.

== 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 show your real site automatically when the timer hits zero.
* The countdown and Auto-Launch use the timezone set in **Settings > General**.
* Auto-Launch does not switch the Coming Soon toggle off. If you later move the target date into the future, the Coming Soon page is shown again.

**5. Sharing with Clients (Secret Access):**
* Go to the **Advanced** tab.
* Enter a secret keyword (e.g., `preview`) in the **Secret Key** 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 (it does not run in the True Visitor Preview).

**7. Previewing what visitors see:**
* Click **Preview Coming Soon Page** at the top of **Settings > Coming Soon**, or in the "Coming Soon" admin bar menu.
* The preview opens in a new tab and shows the page exactly as a logged-out visitor sees it, using your saved settings. It works whether Coming Soon is on or off and does not change anything on your site.

== Frequently Asked Questions ==

**Q: Why can I still see my website after enabling the plugin?**
A: Administrators (users who can manage options) see the real site so they can keep working on it. To see what visitors see, click **Preview Coming Soon Page** in Settings > Coming Soon or in the admin bar.

**Q: Who can bypass the Coming Soon page?**
A: Administrators, and anyone who has opened your Secret Access link. Since 1.4.9, other logged-in users (subscribers, customers, authors, editors) see the Coming Soon page like any visitor; they can still log in and use their dashboard.

**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 target date is read in your WordPress timezone (Settings > General), so every visitor counts down to the same moment wherever they are.

**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.9 =
* **New:** True Visitor Preview — "Preview Coming Soon Page" button (settings page and admin bar) shows exactly what logged-out visitors see, without logging out or using a private window. Administrators only; nonce-protected; Header Scripts do not run in the preview; nothing on the site changes.
* **Change:** Only administrators (the `manage_options` capability) bypass the Coming Soon page. Previously any logged-in user, including subscribers and customers, saw the real site.
* **Fix:** The plugin's stylesheet, Google Font and font rule no longer load on the live site. Previously they loaded on every page and could replace your theme's font even with Coming Soon off.
* **Fix:** The countdown now uses the WordPress timezone for every visitor (previously it used each visitor's own timezone).
* **Fix:** The expired countdown no longer re-renders every second, and the screen-reader time is correct from the start.
* **Fix:** An invalid target date no longer triggers Auto-Launch; the date is validated on save.
* **Fix:** Removed the duplicate `<title>` tag on classic themes.
* **Fix:** Body text containing "&" no longer appears as "&amp;" in the settings field.
* **Fix:** Background images whose URL contains a query string now display correctly.
* **Fix:** Cards taller than the screen can be scrolled to the top on desktop; large logos and long button text no longer overflow on phones.
* **Fix:** The Action Button live preview shadows now match the real page.
* **Fix:** The Card Opacity slider no longer rounds values to multiples of 5 when saving (the SaaS Dark and Event presets previously saved 10% instead of 12% and 8%).
* **Fix:** Removed the duplicate "Settings saved." notice.
* **Fix:** Icons in the settings page header buttons are now vertically centred with their labels.
* **Fix:** SaaS Dark and Product Launch preset text colors lightened slightly (#94a3b8 → #a4b2c6, #a1a1aa → #b4b4bd) so body text and the progress label reach 4.5:1 contrast. Applies when the preset is applied; saved colors are not changed.
* **Performance:** The background video is no longer downloaded on screens 768px wide or narrower, or for visitors who prefer reduced motion (it was already hidden there).
* **Improvement:** Settings page shows "Auto-Launched" status in the status card and admin bar when the countdown has ended.
* **Improvement:** Settings that do not apply are hidden (countdown, progress bar, action button and each background mode); with JavaScript unavailable all settings stay visible. Background Image and Background Color moved to the Background card; in Video mode the fallback color is labelled as such.
* **Improvement:** Settings page layout on phones; settings no longer disappear if browser storage is blocked.
* **Security:** Secret Access cookie is now HttpOnly and SameSite=Lax (and Secure on HTTPS), compared in constant time; the Magic Link is URL-encoded and keys with special characters work.
* **Security:** Defense-in-depth escaping for colors and the background image URL in the page CSS.
* **Accessibility:** Visible keyboard focus and descriptive labels for toggle switches; labels linked to their fields; stronger focus ring; higher-contrast help text; progress bar has an accessible name; reduced-motion visitors no longer get the animated mesh or autoplaying video; "Launching Soon!" uses the Heading Color for contrast.
* **Improvement:** Front-end, admin bar and admin script strings are translatable.
* **Dev:** Single `SCS_VERSION` constant for asset versions (assets were still versioned 1.4.6).
* **Dev:** Plugin header license now reads "GPLv2 or later" with a License URI, matching this readme.
* **Compatibility:** Tested with WordPress 7.1 (7.1.2 and 7.1.3) on PHP 8.2, 8.3 and 8.4.

= 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.9 =
Adds True Visitor Preview and fixes the plugin's font/CSS loading on the live site, countdown timezones and more. Note: only administrators now bypass the Coming Soon page; other logged-in users see it like visitors. Settings are preserved.

= 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.
