/**
 * Maintenance Page styles — LEORISS child theme.
 * Enqueued only on pages using the "Maintenance Page" template.
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --gold:        #D4AF37;
    --gold-light:  #E8C766;
    --gold-soft:   #BF953F;
    --charcoal:    #0F0F0F;
    --charcoal-2:  #141414;
    --charcoal-3:  #1A1A1A;
    --text:        #EDEDED;
    --text-muted:  #8A8A8A;
    --line:        rgba(212,175,55,0.22);
}

html, body { margin: 0; padding: 0; }

body.maintenance-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Ambient radial glow */
body.maintenance-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(212,175,55,0.10), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(212,175,55,0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle grain */
body.maintenance-body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

.maintenance-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    padding: 64px 44px 56px;
    text-align: center;
    background: linear-gradient(180deg, rgba(26,26,26,0.85), rgba(15,15,15,0.92));
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    box-shadow:
        0 30px 80px -30px rgba(0,0,0,0.7),
        0 0 60px -20px rgba(212,175,55,0.18),
        inset 0 1px 0 rgba(255,255,255,0.03);
    margin: 24px auto;
    }

.maintenance-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    text-decoration: none;
}
.brand-mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
}
.brand-mark::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    animation: pulse-ring 3s ease-out infinite;
}

/* .brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand-logo { display: block; width: auto; height: 150px; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; letter-spacing: 0.15em; color: #E8D9A4; } */

@keyframes pulse-ring {
    0%   { transform: scale(0.95); opacity: 0.6; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}
.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.42em;
    color: var(--text);
    padding-left: 2px;
}

/* Gears */
.gear-wrap {
    position: relative;
    width: 84px; height: 84px;
    margin: 0 auto 36px;
}
.gear-wrap i {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    color: var(--gold);
    text-shadow: 0 0 24px rgba(212,175,55,0.35);
}
.gear-main { animation: spin-cw 14s linear infinite; }
.gear-small {
    font-size: 26px !important;
    top: 18% !important; left: 78% !important;
    color: var(--gold-soft) !important;
    animation: spin-ccw 9s linear infinite;
    opacity: 0.75;
}
@keyframes spin-cw  { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes spin-ccw { to { transform: translate(-50%,-50%) rotate(-360deg); } }

/* Eyebrow */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}
.eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Heading */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 20px;
    letter-spacing: 0.01em;
    color: var(--text);
}
h1 em {
    font-style: italic;
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Message */
.message {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 34px;
    font-weight: 300;
}
.message strong { color: var(--text); font-weight: 500; }

/* Progress */
.progress {
    max-width: 380px;
    margin: 0 auto 36px;
}
.progress-track {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold-light), var(--gold));
    border-radius: 3px;
    animation: load 3.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(212,175,55,0.5);
}
@keyframes load {
    0%   { width: 8%; }
    50%  { width: 72%; }
    100% { width: 92%; }
}
.progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Status row */
.status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.status-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}
.status-item i { color: var(--gold); font-size: 14px; }
.status-item:hover { color: var(--gold-light); }

/* Footer note */
.footer-note {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(138,138,138,0.55);
    text-align: center;
}

@media (max-width: 520px) {
    .maintenance-card { padding: 48px 24px 40px; border-radius: 14px; }
    .status-row { flex-direction: column; gap: 14px; }
}
