@import "./base.css";
@import "./spinner.css";

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Arial", sans-serif;
    color: #fff;
    height: 100%;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);

    &::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(circle at 1px 1px, rgba(255, 0, 128, 0.3) 1px, transparent 0),
            radial-gradient(circle at 21px 21px, rgba(0, 255, 255, 0.2) 1px, transparent 0);
        background-size: 40px 40px;
        background-position:
            0 0,
            20px 20px;
        animation: dotMatrix 8s linear infinite;
        pointer-events: none;
        z-index: -1;
    }

    &::after {
        content: "";
        position: fixed;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(169, 79, 202, 0.1) 45deg,
            transparent 90deg,
            rgba(255, 107, 157, 0.1) 135deg,
            transparent 180deg,
            rgba(0, 255, 255, 0.1) 225deg,
            transparent 270deg,
            rgba(255, 0, 128, 0.1) 315deg,
            transparent 360deg
        );
        animation: conicSpin 30s linear infinite;
        pointer-events: none;
        z-index: -2;
    }
}

header {
    background: linear-gradient(90deg, rgba(219, 112, 147, 0.8) 0%, rgba(65, 105, 225, 0.8) 100%);
    backdrop-filter: blur(20px) brightness(1.1);
    -webkit-backdrop-filter: blur(20px) brightness(1.1);
    padding: 2em 0 1em 0header;
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    width: 100vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
        transform: skewX(-20deg);
        animation: glassShine 3s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
    }

    .wrapper {
        position: relative;
        z-index: 2;
    }
}

@keyframes glassShine {
    0% {
        left: -100%;
    }
    50% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

header h1 {
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 1px 0 #333;
    margin: 0;
    padding: 0;
    text-align: center;
}

main {
    width: 70%;
    margin: 0 auto;
}

@media (max-width: 700px) {
    header h1 {
        font-size: 2em;
    }
    main {
        padding: 1em 0;
    }
}

@keyframes dotMatrix {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

@keyframes conicSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
