/*
Theme Name: Prague (Child Theme)
Theme URI: https://themeforest.net/user/fox-themes
Author: Fox-Themes
Author URI: https://themeforest.net/user/fox-themes
Version: 1.1.1
Description: A stunning visual experience for minimal loving creative. This template is a responsive and retina-ready WordPress theme with grid system layout. It is optimized for mobile touch and swipe.
Tags: one-column, two-columns, right-sidebar, custom-menu, post-formats, sticky-post, translation-ready
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prague-child
Template: prague
*/

/* = Add your own modification from here
-------------------------------------------------------------- */


/* =========================================================
   PRELOADER (logo construction animation) — v3
   Paste this whole block at the BOTTOM of your existing
   prague-child-theme/style.css
   This REPLACES the previous version. It behaves like a real
   preloader: stays fully visible until the page has actually
   finished loading, then fades away — no fixed timer.
   ========================================================= */

body.loading-active {
  overflow: hidden;
}

#logo-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  opacity: 1;
  transition: opacity 0.6s ease-in;
}

#logo-loading-overlay.overlay-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loading-counter {
  font-size: 14px;
  letter-spacing: 3px;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

#loading-bar-track {
  width: 220px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
}
#loading-bar-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.2s linear;
}

#loading-label {
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 30px;
}

#logo-loading-overlay svg {
  width: 160px;
  height: auto;
  overflow: visible;
  display: block;
}

.guide-circle-outer, .guide-circle-inner {
  fill: none;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 14;
  stroke-dasharray: 24 13;
  opacity: 0;
  transform-origin: 353.5px 353.5px;
  transform: scale(0.85);
}
.guide-circle-outer {
  animation: circle-in 1s cubic-bezier(0.34,1.56,0.64,1) 0.3s forwards;
}
.guide-circle-inner {
  animation: circle-in 1s cubic-bezier(0.34,1.56,0.64,1) 0.5s forwards;
}
@keyframes circle-in { to { opacity: 1; transform: scale(1); } }

.logo-path {
  fill: #0a0a0a;
  fill-opacity: 0;
  stroke: #ffffff;
  stroke-width: 22;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 17800;
  stroke-dashoffset: 17800;
  animation:
    draw-logo 1.6s cubic-bezier(0.65,0,0.35,1) 0.9s forwards,
    fill-logo 0.5s ease-out 2.5s forwards;
}
@keyframes draw-logo { to { stroke-dashoffset: 0; } }
@keyframes fill-logo { to { fill-opacity: 1; fill: #ffffff; } }



/* ============================================================
   SPLASH (gold-ring logo reveal) — CSS, SITE-WIDE VERSION
   Add this to your theme's style.css (or a separately enqueued
   stylesheet). No PHP/dynamic values are used here, so it can
   be moved out of the inline <style> tag as-is.
   ============================================================ */

#rds-splash {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(150% at 50% 50%);
  will-change: clip-path, opacity;
  animation: rds-iris-out 1.4s cubic-bezier(0.45,0,0.15,1) 2.9s forwards;
}
@keyframes rds-iris-out {
  0%   { clip-path: circle(150% at 50% 50%); opacity: 1; }
  70%  { clip-path: circle(35% at 50% 50%); opacity: 1; }
  100% { clip-path: circle(0% at 50% 50%); opacity: 0; visibility: hidden; }
}

#rds-splash-logo { width: 160px; }
#rds-splash-logo svg { width: 100%; height: auto; overflow: visible; display: block; }

.rds-ring-outer, .rds-ring-inner {
  fill: none;
  stroke-width: 14;
  stroke-dasharray: 24 13;
  opacity: 0;
  transform-origin: 353.5px 353.5px;
  will-change: transform, opacity;
}
.rds-ring-outer {
  stroke: rgba(255,255,255,0.9);
  transform: rotate(-70deg) scale(0.7);
  animation: rds-spin-in 1s cubic-bezier(0.34,1.56,0.64,1) 0.15s forwards;
}
.rds-ring-inner {
  stroke: rgba(255,255,255,0.9);
  transform: rotate(70deg) scale(0.7);
  animation: rds-spin-in 1s cubic-bezier(0.34,1.56,0.64,1) 0.35s forwards;
}
@keyframes rds-spin-in { to { opacity: 1; transform: rotate(0deg) scale(1); } }

.rds-glow {
  fill: none; stroke: #ffffff; stroke-width: 22;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; filter: blur(10px);
  animation: rds-glow-pulse 1.6s ease-out 0.9s forwards;
}
@keyframes rds-glow-pulse { 0% { opacity: 0; } 35% { opacity: 0.6; } 100% { opacity: 0; } }

.rds-path {
  fill: #ffffff; fill-opacity: 0;
  stroke: #ffffff; stroke-width: 22;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 17800; stroke-dashoffset: 17800;
  will-change: stroke-dashoffset, fill-opacity;
  animation:
    rds-draw 1.15s cubic-bezier(0.65,0,0.35,1) 0.9s forwards,
    rds-fill 0.4s ease-out 1.9s forwards;
}
@keyframes rds-draw { to { stroke-dashoffset: 0; } }
@keyframes rds-fill { to { fill-opacity: 1; } }

#rds-splash-tagline {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -140px);
  text-align: center; white-space: nowrap;
}
#rds-splash-tagline .rds-word {
  display: inline-block;
  font-size: 11px; letter-spacing: 4px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  opacity: 0; filter: blur(4px);
  animation: rds-word-rise 0.6s ease-out forwards;
}
@keyframes rds-word-rise { to { opacity: 1; filter: blur(0); } }