/* ==========================================================
   page-transition.css — Cyber Page Transition Overlay
   Triggered on navigation to link-information.php
   ========================================================== */

#page-transition {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: #030608;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease, visibility 0.12s ease;
    overflow: hidden;
    direction: ltr;
}

#page-transition.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* ── Grid layer ────────────────────────────────────────────── */
.pt-grid {
    position: absolute;
    inset: -5%;
    background-image:
        linear-gradient(rgba(0, 255, 163, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 163, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

/* ── Vertical data columns sweeping in ─────────────────────── */
.pt-columns {
    position: absolute;
    inset: 0;
    display: flex;
}

.pt-col {
    flex: 1;
    height: 100%;
    transform-origin: top center;
    transform: scaleY(0);
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 163, 0.07) 0%,
        rgba(0, 255, 163, 0.03) 100%
    );
    animation: ptColFill 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ptColFill {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

/* stagger the 12 columns */
.pt-col:nth-child(1)  { animation-delay: 0.00s; }
.pt-col:nth-child(2)  { animation-delay: 0.03s; }
.pt-col:nth-child(3)  { animation-delay: 0.06s; }
.pt-col:nth-child(4)  { animation-delay: 0.09s; }
.pt-col:nth-child(5)  { animation-delay: 0.12s; }
.pt-col:nth-child(6)  { animation-delay: 0.15s; }
.pt-col:nth-child(7)  { animation-delay: 0.18s; }
.pt-col:nth-child(8)  { animation-delay: 0.21s; }
.pt-col:nth-child(9)  { animation-delay: 0.24s; }
.pt-col:nth-child(10) { animation-delay: 0.27s; }
.pt-col:nth-child(11) { animation-delay: 0.30s; }
.pt-col:nth-child(12) { animation-delay: 0.33s; }

/* ── Horizontal scan sweep ─────────────────────────────────── */
.pt-scanbeam {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 163, 0.9) 40%,
        #00ffa3 50%,
        rgba(0, 255, 163, 0.9) 60%,
        transparent 100%
    );
    box-shadow: 0 0 24px 6px rgba(0, 255, 163, 0.35);
    animation: ptSweep 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
    pointer-events: none;
}

@keyframes ptSweep {
    0%   { top: -3px; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100vh; opacity: 0; }
}

/* ── Targeting reticle ─────────────────────────────────────── */
.pt-reticle {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2.2rem;
    animation: ptFadeIn 0.25s ease 0.2s both;
}

@keyframes ptFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* outer expanding ring */
.pt-reticle__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 255, 163, 0.5);
    animation: ptRingExpand 1.2s ease-out 0.25s infinite;
}
.pt-reticle__ring--2 {
    inset: 12px;
    border-color: rgba(0, 255, 163, 0.35);
    animation-delay: 0.65s;
}

@keyframes ptRingExpand {
    0%   { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(1.4); opacity: 0;   }
}

/* crosshair lines */
.pt-reticle__cross {
    position: absolute;
    inset: 0;
    animation: ptCrossRotate 4s linear infinite 0.3s;
}

@keyframes ptCrossRotate {
    to { transform: rotate(360deg); }
}

.pt-reticle__cross::before,
.pt-reticle__cross::after {
    content: "";
    position: absolute;
    background: rgba(0, 255, 163, 0.55);
}
.pt-reticle__cross::before {
    /* horizontal */
    left: 0; right: 0;
    top: 50%; height: 1px;
    margin-top: -0.5px;
}
.pt-reticle__cross::after {
    /* vertical */
    top: 0; bottom: 0;
    left: 50%; width: 1px;
    margin-left: -0.5px;
}

/* center dot */
.pt-reticle__dot {
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #00ffa3;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px 3px rgba(0, 255, 163, 0.8),
                0 0 30px 8px rgba(0, 255, 163, 0.3);
    animation: ptDotPulse 0.9s ease-in-out infinite alternate 0.3s;
}

@keyframes ptDotPulse {
    from { box-shadow: 0 0 8px 2px rgba(0, 255, 163, 0.7),  0 0 20px 5px rgba(0, 255, 163, 0.25); }
    to   { box-shadow: 0 0 16px 5px rgba(0, 255, 163, 0.95), 0 0 40px 12px rgba(0, 255, 163, 0.4); }
}

/* corner brackets */
.pt-reticle__corner {
    position: absolute;
    width: 16px; height: 16px;
    border-color: #00ffa3;
    border-style: solid;
    opacity: 0.85;
}
.pt-reticle__corner--tl { top: 0; left: 0;  border-width: 2px 0 0 2px; }
.pt-reticle__corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.pt-reticle__corner--bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.pt-reticle__corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* ── Center content ────────────────────────────────────────── */
.pt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    animation: ptFadeIn 0.3s ease 0.25s both;
}

.pt-label {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: clamp(11px, 1.5vw, 14px);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(0, 255, 163, 0.5);
}

.pt-title {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #00ffa3;
    text-shadow: 0 0 20px rgba(0, 255, 163, 0.6),
                 0 0 50px rgba(0, 255, 163, 0.25);
    white-space: nowrap;
}

.pt-cursor {
    display: inline-block;
    color: #00ffa3;
    animation: ptBlink 0.55s step-end infinite;
}
@keyframes ptBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Progress bar ──────────────────────────────────────────── */
.pt-bar-wrap {
    width: clamp(200px, 30vw, 320px);
    height: 2px;
    background: rgba(0, 255, 163, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.pt-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f5a0, #00ffa3);
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.6);
    border-radius: 2px;
    transition: width 0.05s linear;
}

/* ── Status line ───────────────────────────────────────────── */
.pt-status {
    font-family: 'Courier New', monospace;
    font-size: clamp(9px, 1.2vw, 11px);
    letter-spacing: 0.2em;
    color: rgba(0, 255, 163, 0.45);
    text-transform: uppercase;
    min-height: 1.4em;
}

/* ── Red glitch border flash ───────────────────────────────── */
.pt-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 255, 163, 0.08);
    pointer-events: none;
}
