/* WP Simple Maintenance v2.0 – Frontend Styles */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wpsm-body {
    font-family: var(--wpsm-font, 'Poppins', sans-serif);
    color: var(--wpsm-text, #ffffff);
    background: var(--wpsm-bg, #0f172a);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: auto;
}

/* ── BACKGROUND ── */
.wpsm-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.wpsm-bg-color {
    position: absolute;
    inset: 0;
    background: var(--wpsm-bg, #0f172a);
}

.wpsm-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wpsm-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpsm-bg-overlay {
    position: absolute;
    inset: 0;
}

/* ── MAIN WRAP ── */
.wpsm-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.wpsm-inner {
    text-align: center;
    max-width: 680px;
    width: 100%;
    animation: wpsm-fadein 0.8s ease both;
}

@keyframes wpsm-fadein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── LOGO ── */
.wpsm-logo {
    margin-bottom: 28px;
}
.wpsm-logo img {
    height: auto;
    display: inline-block;
}

/* ── BADGE ── */
.wpsm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.06);
}

.wpsm-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--wpsm-accent, #6366f1);
    box-shadow: 0 0 8px var(--wpsm-accent, #6366f1);
    animation: wpsm-pulse-dot 2s ease-in-out infinite;
}

@keyframes wpsm-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.8); }
}

.wpsm-badge--coming_soon .wpsm-badge-dot {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

/* ── TITLE ── */
.wpsm-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--wpsm-text, #ffffff);
}

/* ── DESCRIPTION ── */
.wpsm-description {
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    margin: 0 auto 36px;
}

/* ── COUNTDOWN ── */
.wpsm-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.wpsm-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
}

.wpsm-count {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: var(--wpsm-accent, #6366f1);
    line-height: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 72px;
    text-align: center;
    backdrop-filter: blur(8px);
    font-variant-numeric: tabular-nums;
}

.wpsm-count-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.wpsm-countdown-sep {
    font-size: 36px;
    font-weight: 300;
    color: rgba(255,255,255,0.2);
    padding-bottom: 20px;
    line-height: 1;
}

/* ── PROGRESS BAR ── */
.wpsm-progress-wrap {
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.wpsm-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.wpsm-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.wpsm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--wpsm-accent, #6366f1), color-mix(in srgb, var(--wpsm-accent, #6366f1) 60%, white));
    border-radius: 6px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: wpsm-bar-glow 2s ease-in-out infinite;
}

@keyframes wpsm-bar-glow {
    0%, 100% { box-shadow: 0 0 8px var(--wpsm-accent, #6366f1); }
    50%       { box-shadow: 0 0 16px var(--wpsm-accent, #6366f1); }
}

/* ── SUBSCRIBE ── */
.wpsm-subscribe {
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.wpsm-subscribe-row {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
}

.wpsm-subscribe-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--wpsm-text, #ffffff);
    font-family: inherit;
}

.wpsm-subscribe-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.wpsm-subscribe-btn {
    background: var(--wpsm-accent, #6366f1);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity 0.2s;
    border-radius: 0 50px 50px 0;
}

.wpsm-subscribe-btn:hover { opacity: 0.88; }

.wpsm-subscribe-msg {
    margin-top: 12px;
    font-size: 13px;
    color: #4ade80;
    animation: wpsm-fadein 0.4s ease both;
}

/* ── SOCIAL ── */
.wpsm-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wpsm-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.wpsm-social-link:hover {
    border-color: var(--wpsm-accent, #6366f1);
    color: var(--wpsm-accent, #6366f1);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
}

/* ── CUSTOM HTML ── */
.wpsm-custom-html {
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .wpsm-countdown { gap: 4px; }
    .wpsm-count { min-width: 56px; padding: 8px 10px; font-size: 28px; }
    .wpsm-countdown-sep { font-size: 24px; padding-bottom: 14px; }
    .wpsm-subscribe-row { flex-direction: column; border-radius: 12px; }
    .wpsm-subscribe-btn { border-radius: 0 0 12px 12px; }
}
