/*
|--------------------------------------------------------------------------
| Fashion House Main Stylesheet
|--------------------------------------------------------------------------
| This stylesheet adds reusable glass effects, 3D movement,
| glow effects, animations, responsive improvements, and
| accessibility support.
*/

:root {
    color-scheme: dark;

    --fashion-background: #09090b;
    --fashion-surface: rgba(24, 24, 27, 0.76);
    --fashion-border: rgba(255, 255, 255, 0.1);

    --fashion-pink: #ec4899;
    --fashion-fuchsia: #a855f7;
    --fashion-sky: #0ea5e9;

    --fashion-text: #f4f4f5;
    --fashion-muted: #a1a1aa;
}

/*
|--------------------------------------------------------------------------
| General document styles
|--------------------------------------------------------------------------
*/

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(236, 72, 153, 0.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 14%,
            rgba(168, 85, 247, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 55% 90%,
            rgba(14, 165, 233, 0.13),
            transparent 32%
        ),
        var(--fashion-background);

    color: var(--fashion-text);
}

body,
button,
input,
textarea,
select {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/*
|--------------------------------------------------------------------------
| Page background effects
|--------------------------------------------------------------------------
*/

.page-shell {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
}

.page-shell::before,
.page-shell::after {
    position: fixed;
    z-index: -2;

    width: 24rem;
    height: 24rem;

    border-radius: 9999px;

    content: "";

    pointer-events: none;

    filter: blur(85px);
    opacity: 0.32;

    animation:
        background-drift 11s ease-in-out infinite alternate;
}

.page-shell::before {
    top: 8rem;
    left: -10rem;

    background:
        rgba(236, 72, 153, 0.55);
}

.page-shell::after {
    right: -10rem;
    bottom: 2rem;

    background:
        rgba(14, 165, 233, 0.48);

    animation-delay: -5s;
}

.page-shell > main {
    position: relative;
    z-index: 1;
}

/*
|--------------------------------------------------------------------------
| Reusable glass components
|--------------------------------------------------------------------------
*/

.glass-nav,
.glass-panel,
.glass-footer {
    border: 1px solid var(--fashion-border);

    background:
        linear-gradient(
            145deg,
            rgba(39, 39, 42, 0.78),
            rgba(9, 9, 11, 0.74)
        );

    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-nav {
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.glass-panel {
    position: relative;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.glass-footer {
    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/*
|--------------------------------------------------------------------------
| 3D card effects
|--------------------------------------------------------------------------
*/

.tilt-card {
    position: relative;

    transform:
        perspective(1200px)
        rotateX(0deg)
        rotateY(0deg)
        translateY(0);

    transform-style: preserve-3d;

    transition:
        transform 280ms ease,
        border-color 280ms ease,
        box-shadow 280ms ease;
}

.tilt-card:hover {
    border-color:
        rgba(244, 114, 182, 0.28);

    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.48),
        0 0 50px rgba(236, 72, 153, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.depth-layer {
    position: relative;

    transform: translateZ(26px);
    transform-style: preserve-3d;
}

/*
|--------------------------------------------------------------------------
| Form fields
|--------------------------------------------------------------------------
*/

.input-glow {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        border-color 200ms ease,
        background-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.input-glow:hover {
    border-color:
        rgba(255, 255, 255, 0.18);

    background-color:
        rgba(0, 0, 0, 0.28);
}

.input-glow:focus {
    transform: translateY(-1px);

    background-color:
        rgba(0, 0, 0, 0.34);

    box-shadow:
        0 0 0 4px rgba(236, 72, 153, 0.11),
        0 12px 34px rgba(0, 0, 0, 0.28);
}

.input-glow::placeholder {
    color: #52525b;
}

.input-glow:-webkit-autofill,
.input-glow:-webkit-autofill:hover,
.input-glow:-webkit-autofill:focus {
    border: 1px solid rgba(244, 114, 182, 0.35);

    -webkit-text-fill-color: #ffffff;

    box-shadow:
        0 0 0 1000px #18181b inset,
        0 0 0 4px rgba(236, 72, 153, 0.1);

    transition:
        background-color 5000s ease-in-out 0s;
}

input[aria-invalid="true"] {
    border-color:
        rgba(251, 113, 133, 0.58);
}

/*
|--------------------------------------------------------------------------
| Animated buttons
|--------------------------------------------------------------------------
*/

.button-shine {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.button-shine::before {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            120deg,
            transparent 10%,
            rgba(255, 255, 255, 0.1) 48%,
            transparent 85%
        );

    content: "";

    opacity: 0;

    transition:
        opacity 250ms ease;
}

.button-shine::after {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -55%;

    width: 42%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.32),
            transparent
        );

    content: "";

    pointer-events: none;

    transform:
        translateX(-130%)
        skewX(-18deg);

    transition:
        transform 620ms ease;
}

.button-shine:hover::before {
    opacity: 1;
}

.button-shine:hover::after {
    transform:
        translateX(440%)
        skewX(-18deg);
}

.button-shine:active {
    transform:
        translateY(1px)
        scale(0.99);
}

/*
|--------------------------------------------------------------------------
| Floating elements
|--------------------------------------------------------------------------
*/

.floating-badge {
    animation:
        floating-element 4.8s ease-in-out infinite;
}

/*
|--------------------------------------------------------------------------
| Selection and scrollbar
|--------------------------------------------------------------------------
*/

::selection {
    background:
        rgba(236, 72, 153, 0.35);

    color: #ffffff;
}

* {
    scrollbar-width: thin;

    scrollbar-color:
        rgba(236, 72, 153, 0.45)
        rgba(24, 24, 27, 0.5);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background:
        rgba(24, 24, 27, 0.6);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid rgba(24, 24, 27, 0.85);
    border-radius: 9999px;

    background:
        linear-gradient(
            var(--fashion-pink),
            var(--fashion-fuchsia),
            var(--fashion-sky)
        );
}

/*
|--------------------------------------------------------------------------
| Keyboard accessibility
|--------------------------------------------------------------------------
*/

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(244, 114, 182, 0.5);
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Animations
|--------------------------------------------------------------------------
*/

@keyframes floating-element {
    0%,
    100% {
        transform:
            translateY(0)
            rotate(-1deg);
    }

    50% {
        transform:
            translateY(-9px)
            rotate(1deg);
    }
}

@keyframes background-drift {
    0% {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    100% {
        transform:
            translate3d(2rem, 1.2rem, 0)
            scale(1.1);
    }
}

/*
|--------------------------------------------------------------------------
| Responsive adjustments
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {
    .page-shell::before,
    .page-shell::after {
        width: 20rem;
        height: 20rem;

        filter: blur(75px);
    }
}

@media (max-width: 768px) {
    .glass-nav,
    .glass-panel,
    .glass-footer {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .depth-layer {
        transform: none;
    }
}

@media (max-width: 640px) {
    .page-shell::before,
    .page-shell::after {
        width: 17rem;
        height: 17rem;

        opacity: 0.24;

        filter: blur(68px);
    }

    .page-shell::before {
        top: 5rem;
        left: -9rem;
    }

    .page-shell::after {
        right: -9rem;
        bottom: 3rem;
    }

    .tilt-card,
    .tilt-card:hover {
        transform: none;

        box-shadow:
            0 22px 55px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .button-shine::after {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced motion accessibility
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.001ms !important;
    }

    .tilt-card,
    .tilt-card:hover,
    .depth-layer,
    .floating-badge {
        transform: none !important;
    }
}

/*
|--------------------------------------------------------------------------
| Print styles
|--------------------------------------------------------------------------
*/

@media print {
    header,
    footer,
    .button-shine,
    form button {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .glass-panel {
        border: 1px solid #d4d4d8;
        background: #ffffff;
        box-shadow: none;
    }
}