/**
 * Base Styles
 * CSS-Variablen, Reset, Typografie, Utilities
 *
 * @package STApp_WP_Theme
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --color-primary: #007aff;
    --color-secondary: #4a90e2;
    --color-text: rgba(255, 255, 255, 0.85);
    --color-background: #1a1a1a;
    --color-dark: #0f0f0f;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --spacing-unit: 1rem;
}

/* ==========================================================================
   Reset & Normalize
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--stapp-bg-gradient, linear-gradient(160deg, #1a1a2e 0%, #1a1a1a 30%, #0f1a2a 60%, #1a1a1a 100%));
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Atmospheric Blur Background (global) */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: var(--stapp-blur-opacity, 0.3);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--stapp-blur-color1, #0A95FE) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    animation: float-slow 20s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--stapp-blur-color2, #66EFE2) 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
    animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

/* Ensure all content is above blur background */
#page {
    position: relative;
    z-index: 1;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background-color: #f1f1f1;
    color: #21759b;
    display: block;
    left: -9999em;
    padding: 1em;
    position: absolute;
    top: -9999em;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    z-index: 100000;
}
