/*!
Theme Name: Reel Path
Theme URI: https://www.reelpath.net/
Author: Reel Path
Author URI: https://www.reelpath.net/
Description: 
Version: 1.0.0
*/

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --bg-dark: #080b17;
    --bg-gradient:
        radial-gradient(
            circle at 20% 20%,
            rgba(168, 85, 247, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 75%,
            rgba(59, 130, 246, 0.16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #0b1120 0%,
            #171432 48%,
            #250f35 100%
        );

    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-bg-hover: rgba(255, 255, 255, 0.075);
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-border-hover: rgba(255, 255, 255, 0.19);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-purple: rgba(168, 85, 247, 0.35);
    --accent-blue: rgba(59, 130, 246, 0.25);
}

/* --------------------------------------------------
   Reset
-------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --------------------------------------------------
   Ambient background
-------------------------------------------------- */

body::before,
body::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    z-index: 0;
}

body::before {
    top: -140px;
    left: -100px;
    background: var(--accent-purple);
    animation: ambientFloatOne 14s ease-in-out infinite alternate;
}

body::after {
    right: -130px;
    bottom: -160px;
    background: var(--accent-blue);
    animation: ambientFloatTwo 17s ease-in-out infinite alternate;
}

body {
    isolation: isolate;
}

body > * {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------
   Dashboard
-------------------------------------------------- */

.dashboard {
    width: min(90%, 500px);
    padding: 2.6rem;

    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);

    border: 1px solid var(--glass-border);
    border-radius: 26px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.38),
        0 8px 25px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    text-align: center;

    animation: dashboardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );

    pointer-events: none;
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 0.85rem;

    color: var(--text-muted);

    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: #a855f7;

    box-shadow:
        0 0 8px rgba(168, 85, 247, 0.8);

    animation: dotPulse 2.5s ease-in-out infinite;
}

h1 {
    font-size: clamp(1.45rem, 4vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.6px;
    line-height: 1.2;

    margin-bottom: 0.55rem;
}

.subtitle {
    color: var(--text-secondary);

    font-size: 0.85rem;
    font-weight: 400;

    margin-bottom: 2.25rem;
}

/* --------------------------------------------------
   Metrics
-------------------------------------------------- */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.card {
    position: relative;

    padding: 1.65rem 1rem 1.5rem;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 18px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);

    background: var(--glass-bg-hover);

    border-color: var(--glass-border-hover);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.value {
    margin-bottom: 0.35rem;

    font-size: clamp(2.5rem, 9vw, 3.15rem);
    font-weight: 700;
    line-height: 1;

    letter-spacing: -2px;

    background: linear-gradient(
        135deg,
        #ffffff 10%,
        #dbe4f0 90%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    font-variant-numeric: tabular-nums;

    transition: opacity 0.2s ease;
}

.label {
    color: var(--text-secondary);

    font-size: 0.68rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1.8px;
}

/* --------------------------------------------------
   Divine perspective card
-------------------------------------------------- */

.divine-card {
    grid-column: 1 / -1;

    background:
        linear-gradient(
            145deg,
            rgba(168, 85, 247, 0.075),
            rgba(255, 255, 255, 0.018)
        );

    border-color: rgba(168, 85, 247, 0.13);
}

.divine-card .value {
    font-size: clamp(2.35rem, 8vw, 3rem);

    background: linear-gradient(
        135deg,
        #ffffff 10%,
        #d8b4fe 90%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divine-card .label {
    letter-spacing: 1.4px;
}

/* --------------------------------------------------
   Status
-------------------------------------------------- */

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 1.7rem;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 7px rgba(34, 197, 94, 0.75);

    animation: statusPulse 2s ease-in-out infinite;
}

/* --------------------------------------------------
   Animations
-------------------------------------------------- */

@keyframes dashboardEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ambientFloatOne {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(45px, 30px, 0) scale(1.08);
    }
}

@keyframes ambientFloatTwo {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-35px, -25px, 0) scale(1.1);
    }
}

@keyframes dotPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* --------------------------------------------------
   Accessibility
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */

@media (max-width: 480px) {
    .dashboard {
        width: calc(100% - 28px);
        padding: 2.2rem 1.25rem;
        border-radius: 22px;
    }

    .metrics-grid {
        gap: 0.75rem;
    }

    .card {
        padding: 1.5rem 0.75rem 1.35rem;
    }

    .subtitle {
        margin-bottom: 1.9rem;
    }
}

@media (max-width: 340px) {
    .dashboard {
        padding: 1.8rem 1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}