/* Sam McArt — Custom Styles */

:root {
    --obsidian: #09090b;
    --surface: #121215;
    --glass-bg: rgba(18, 18, 21, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.16);
}

html {
    scroll-behavior: smooth;
    background-color: var(--obsidian);
    color: #f4f4f5;
    color-scheme: dark;
}

body {
    overflow-x: hidden;
    background-color: var(--obsidian);
}

/* Full-screen fixed kinetic background canvas */
#kinetic-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Content layer lets touch/cursor disturbances pass through empty space */
.content-layer {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

/* Re-enable interaction on cards, links, buttons, inputs, and embeds */
.interactive-element {
    pointer-events: auto;
}

/* Dynamic viewport hero to avoid mobile browser chrome cutoffs */
.hero-viewport {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Frosted obsidian glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.glass-link:hover {
    border-color: var(--glass-border-hover);
    background: rgba(28, 28, 34, 0.82);
}

/* Subtle floating cue animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(6px);
    }
}

.animate-float {
    animation: float 2.5s ease-in-out infinite;
}

/* Subtle skeleton shimmer behind TikTok player while iframe loads */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.player-skeleton {
    background: linear-gradient(
        110deg,
        rgba(24, 24, 27, 0.95) 25%,
        rgba(49, 46, 129, 0.35) 50%,
        rgba(24, 24, 27, 0.95) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2.2s linear infinite;
}

/* Keep hidden honeypot completely inaccessible to human users */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* TikTok Player iframe container */
.tiktok-frame-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 76dvh;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #09090b;
}

.tiktok-frame-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-float,
    .animate-pulse,
    .player-skeleton {
        animation: none !important;
    }
}
