/* ==========================================================================
   WML Scroll Down Indicator - Stylesheet
   ========================================================================== */

:root {
    --wml-sdi-primary: #d4af37;
    --wml-sdi-secondary: #ffffff;
    --wml-sdi-muted-track: rgba(255, 255, 255, 0.1);
    --wml-sdi-glow: rgba(212, 175, 55, 0.25);
    --wml-sdi-text-color: #6e6e73;
}

/* Base Root Container */
.wml-scroll-down-indicator {
    display: flex;
    width: 100%;
}

.wml-scroll-down-indicator.align-left {
    justify-content: flex-start;
}

.wml-scroll-down-indicator.align-center {
    justify-content: center;
}

.wml-scroll-down-indicator.align-right {
    justify-content: flex-end;
}

/* Card Mode Wrapper */
.wml-sdi-card {
    background: var(--wml-sdi-card-bg, #121212);
    border: 1px solid var(--wml-sdi-card-border, rgba(255, 255, 255, 0.06));
    border-radius: var(--wml-sdi-card-radius, 6px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

.wml-sdi-card:hover {
    border-color: var(--wml-sdi-glow, rgba(212, 175, 55, 0.3));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 15px var(--wml-sdi-glow);
}

.wml-sdi-card-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--wml-sdi-muted-track, #6e6e73);
    margin-bottom: 20px;
    display: block;
}

/* Master Layout Containers */
.wml-sdi-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.wml-sdi-wrapper.is-clickable {
    cursor: pointer;
}

/* Layout Orientations */
.wml-sdi-layout-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.wml-sdi-layout-vertical {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Typographic System */
.wml-sdi-text-horiz {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--wml-sdi-text-color);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.wml-sdi-text-vert {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--wml-sdi-text-color);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg); /* Elegant top-to-bottom motion */
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Hover transitions */
.wml-sdi-wrapper:hover .wml-sdi-text-horiz,
.wml-sdi-wrapper:hover .wml-sdi-text-vert,
.wml-sdi-card:hover .wml-sdi-text-horiz,
.wml-sdi-card:hover .wml-sdi-text-vert {
    color: var(--wml-sdi-primary);
}


/* ==========================================================================
   01 // THE MECHANICAL MOUSE
   ========================================================================== */
.wml-sdi-mouse {
    width: 24px;
    height: 40px;
    border: 1.5px solid var(--wml-sdi-primary);
    border-radius: 20px;
    position: relative;
    box-sizing: border-box;
}
.wml-sdi-mouse::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 8px;
    background: var(--wml-sdi-secondary);
    border-radius: 2px;
    animation: wmlSdiMouseScroll 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    box-sizing: border-box;
}
@keyframes wmlSdiMouseScroll {
    0% { transform: translate(-50%, 0); opacity: 0; height: 0; }
    30% { opacity: 1; height: 8px; }
    70% { transform: translate(-50%, 12px); opacity: 0; height: 3px; }
    100% { transform: translate(-50%, 12px); opacity: 0; height: 0; }
}


/* ==========================================================================
   02 // CASCADE CHEVRONS
   ========================================================================== */
.wml-sdi-chevrons {
    position: relative;
    width: 20px;
    height: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wml-sdi-chevrons span {
    display: block;
    width: 10px; height: 10px;
    border-bottom: 1.5px solid var(--wml-sdi-primary);
    border-right: 1.5px solid var(--wml-sdi-primary);
    transform: rotate(45deg);
    margin: -3px 0;
    animation: wmlSdiChevronFade 2s infinite;
    opacity: 0;
    box-sizing: border-box;
}
.wml-sdi-chevrons span:nth-child(1) { animation-delay: 0s; }
.wml-sdi-chevrons span:nth-child(2) { animation-delay: 0.2s; }
.wml-sdi-chevrons span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wmlSdiChevronFade {
    0% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}


/* ==========================================================================
   03 // THE GRAVITY DROPPER
   ========================================================================== */
.wml-sdi-gravity {
    width: 2px;
    height: 45px;
    background: var(--wml-sdi-muted-track, rgba(255, 255, 255, 0.05));
    position: relative;
    box-sizing: border-box;
}
.wml-sdi-gravity::before {
    content: '';
    position: absolute;
    top: 0; left: -2px;
    width: 6px; height: 6px;
    background: var(--wml-sdi-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--wml-sdi-primary);
    animation: wmlSdiGravityFall 2s cubic-bezier(0.4, 0, 1, 1) infinite;
    box-sizing: border-box;
}
@keyframes wmlSdiGravityFall {
    0% { top: 0; opacity: 0; transform: scale(0.5); }
    15% { opacity: 1; transform: scale(1); }
    80% { top: 39px; opacity: 1; transform: scale(1); }
    100% { top: 45px; opacity: 0; transform: scale(0.2); }
}


/* ==========================================================================
   04 // KINETIC AXIS
   ========================================================================== */
.wml-sdi-line-scroller {
    height: 50px;
    width: 1px;
    background: var(--wml-sdi-muted-track, rgba(255, 255, 255, 0.1));
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.wml-sdi-line-scroller::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--wml-sdi-primary), transparent);
    animation: wmlSdiContinuousLine 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-sizing: border-box;
}
@keyframes wmlSdiContinuousLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}


/* ==========================================================================
   05 // BAUHAUS ARROW
   ========================================================================== */
.wml-sdi-bauhaus {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 45px;
    box-sizing: border-box;
}
.wml-sdi-bauhaus .line {
    width: 1.5px;
    height: 22px;
    background: var(--wml-sdi-primary);
    transform-origin: top;
    animation: wmlSdiLineExtend 2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
    box-sizing: border-box;
}
.wml-sdi-bauhaus .arrowhead {
    width: 7px; height: 7px;
    border-bottom: 1.5px solid var(--wml-sdi-primary);
    border-right: 1.5px solid var(--wml-sdi-primary);
    transform: rotate(45deg);
    margin-top: -5px;
    animation: wmlSdiArrowShift 2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
    box-sizing: border-box;
}
@keyframes wmlSdiLineExtend {
    0% { transform: scaleY(0); }
    40% { transform: scaleY(1); }
    70% { transform: scaleY(1); opacity: 1; }
    90% { transform: scaleY(0.3); opacity: 0; }
    100% { transform: scaleY(0); opacity: 0; }
}
@keyframes wmlSdiArrowShift {
    0% { transform: rotate(45deg) translate(-2px, -2px); opacity: 0; }
    40% { opacity: 1; }
    70% { transform: rotate(45deg) translate(2px, 2px); opacity: 1; }
    90% { opacity: 0; }
    100% { opacity: 0; }
}


/* ==========================================================================
   06 // VECTOR DRIVE
   ========================================================================== */
.wml-sdi-vector {
    position: relative;
    width: 20px;
    height: 35px;
    box-sizing: border-box;
}
.wml-sdi-vector::before, .wml-sdi-vector::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 12px; height: 12px;
    border-bottom: 1px solid var(--wml-sdi-muted-track, rgba(255,255,255,0.2));
    border-right: 1px solid var(--wml-sdi-muted-track, rgba(255,255,255,0.2));
    transform: translateX(-50%) rotate(45deg);
    box-sizing: border-box;
}
.wml-sdi-vector::before {
    top: 2px;
    border-color: var(--wml-sdi-primary);
    animation: wmlSdiVectorDrive 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
.wml-sdi-vector::after {
    top: 16px;
    animation: wmlSdiVectorFadeTrack 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
@keyframes wmlSdiVectorDrive {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 16px; opacity: 0; border-color: var(--wml-sdi-secondary, #fff); }
}
@keyframes wmlSdiVectorFadeTrack {
    0% { opacity: 0.1; }
    50% { opacity: 0.6; }
    100% { opacity: 0.1; }
}


/* ==========================================================================
   07 // DOWN-DOT TRACKER
   ========================================================================== */
.wml-sdi-dots-track {
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}
.wml-sdi-dots-track span {
    width: 4px; height: 4px;
    background: var(--wml-sdi-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: wmlSdiDotTrack 1.5s infinite;
    box-sizing: border-box;
}
.wml-sdi-dots-track span:nth-child(1) { animation-delay: 0s; }
.wml-sdi-dots-track span:nth-child(2) { animation-delay: 0.2s; }
.wml-sdi-dots-track span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wmlSdiDotTrack {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 6px var(--wml-sdi-primary); }
}


/* ==========================================================================
   08 // PILOT VECTOR
   ========================================================================== */
.wml-sdi-pilot {
    width: 24px;
    height: 40px;
    position: relative;
    box-sizing: border-box;
}
.wml-sdi-pilot::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 1.5px; height: 12px;
    background: var(--wml-sdi-primary);
    transform: translateX(-50%);
    animation: wmlSdiPilotStretch 2s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    box-sizing: border-box;
}
.wml-sdi-pilot::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 5px; height: 5px;
    border-bottom: 1.5px solid var(--wml-sdi-primary);
    border-right: 1.5px solid var(--wml-sdi-primary);
    transform: translateX(-50%) rotate(45deg);
    animation: wmlSdiPilotArrow 2s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    box-sizing: border-box;
}
@keyframes wmlSdiPilotStretch {
    0% { height: 0; top: 0; }
    50% { height: 25px; top: 0; }
    100% { height: 0; top: 25px; }
}
@keyframes wmlSdiPilotArrow {
    0%, 100% { opacity: 0; transform: translateX(-50%) rotate(45deg) scale(0.7); }
    50% { opacity: 1; transform: translateX(-50%) rotate(45deg) scale(1); }
}


/* ==========================================================================
   09 // ANCHOR COMPASS
   ========================================================================== */
.wml-sdi-compass {
    width: 36px;
    height: 36px;
    border: 1px solid var(--wml-sdi-muted-track, rgba(255, 255, 255, 0.08));
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}
.wml-sdi-compass::before {
    content: '';
    position: absolute;
    top: 15%; left: 50%;
    width: 0; height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 10px solid var(--wml-sdi-primary);
    transform: translateX(-50%);
    animation: wmlSdiCompassPlunge 1.8s ease-in-out infinite;
    box-sizing: border-box;
}
@keyframes wmlSdiCompassPlunge {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; filter: drop-shadow(0 0 4px var(--wml-sdi-glow)); }
}


/* ==========================================================================
   10 // HORIZON CASCADES
   ========================================================================== */
.wml-sdi-layers {
    width: 26px;
    height: 26px;
    position: relative;
    box-sizing: border-box;
}
.wml-sdi-layers span {
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: var(--wml-sdi-muted-track, rgba(255, 255, 255, 0.1));
    box-sizing: border-box;
}
.wml-sdi-layers span:nth-child(1) { top: 4px; animation: wmlSdiLayerPass 2.4s infinite linear; }
.wml-sdi-layers span:nth-child(2) { top: 12px; animation: wmlSdiLayerPass 2.4s infinite linear; animation-delay: -0.8s; }
.wml-sdi-layers span:nth-child(3) { top: 20px; animation: wmlSdiLayerPass 2.4s infinite linear; animation-delay: -1.6s; }
@keyframes wmlSdiLayerPass {
    0% { transform: scaleX(0.4); background: var(--wml-sdi-muted-track, rgba(255, 255, 255, 0.1)); }
    50% { transform: scaleX(1.1); background: var(--wml-sdi-primary); box-shadow: 0 0 6px var(--wml-sdi-glow); }
    100% { transform: scaleX(0.4); background: var(--wml-sdi-muted-track, rgba(255, 255, 255, 0.1)); transform: translateY(4px); }
}
