/* ============================================================================
   CONSTRUCTION LOCK OVERLAY — FATKAT INVITE-ONLY & CLIENT TOKEN PORTAL
   Fullscreen gate preventing public access while site is under construction.
   Additive module: does NOT modify any underlying portfolio code.
   Remove this file + the HTML block + the <link> tag to unlock the site.
   ============================================================================ */

@font-face {
    font-family: 'FatKat';
    src: url('../assets/fonts/FatKat-nRlnP.otf') format('opentype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

#construction-lock {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #060706;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

/* Prevent scrolling on body while lock is active */
body.construction-locked {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Subtle background grid */
.lock-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Ambient radial glow */
.lock-ambient-orb {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.09) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(120px);
    pointer-events: none;
    z-index: 2;
    animation: lock-orb-pulse 7s ease-in-out infinite alternate;
}

@keyframes lock-orb-pulse {
    0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Content container */
.lock-container {
    position: relative;
    z-index: 10;
    max-width: 920px;
    width: 92%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.5rem 1.5rem;
    margin: auto;
    animation: lock-fade-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lock-fade-in {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top status badge */
.lock-top-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 18px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #00ff88;
    text-transform: uppercase;
    margin-bottom: 2.2rem;
}

.lock-status-dot {
    width: 7px;
    height: 7px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: lock-pulse-dot 1.8s infinite alternate;
}

@keyframes lock-pulse-dot {
    from { opacity: 0.4; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1.2); }
}

/* Hero title with FatKat font */
.lock-hero-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    max-width: 100%;
}

.lock-headline-fatkat {
    font-family: 'FatKat', 'Anton', Impact, sans-serif;
    font-size: clamp(3.8rem, 13vw, 9.5rem);
    line-height: 0.88;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.9);
    word-break: break-word;
    user-select: none;
}

.lock-headline-fatkat .bracket {
    color: #00ff88;
    text-shadow: 0 0 35px rgba(0, 255, 136, 0.45);
}

/* Curiosity editorial copy */
.lock-curiosity-copy {
    max-width: 580px;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    color: rgba(240, 240, 238, 0.62);
    margin-bottom: 2.6rem;
}

.lock-curiosity-copy strong {
    color: #ffffff;
    font-weight: 600;
}

/* Action Cluster: Primary Mail Button */
.lock-cta-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.lock-mail-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #00ff88;
    color: #050805;
    text-decoration: none;
    padding: 18px 28px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lock-mail-cta-btn:hover {
    background: #2aff9b;
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(0, 255, 136, 0.4), 0 12px 30px rgba(0, 0, 0, 0.5);
}

.lock-mail-cta-btn:active {
    transform: translateY(0);
}

.lock-mail-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.lock-mail-cta-btn:hover .lock-mail-arrow {
    transform: translateX(4px);
}

/* Aux links row: copy email + client token toggle */
.lock-aux-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(240, 240, 238, 0.35);
}

.lock-copy-email-btn, .lock-client-token-trigger-btn {
    background: none;
    border: none;
    color: rgba(240, 240, 238, 0.45);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}

.lock-copy-email-btn:hover, .lock-client-token-trigger-btn:hover {
    color: #00ff88;
}

/* Expandable Client Token Box */
.lock-client-token-box {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin-top: 10px;
    animation: lock-token-expand 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lock-token-expand {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lock-token-input-row {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lock-token-input-row:focus-within {
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.22);
}

.lock-token-input-row.lock-shake {
    animation: lock-shake 0.4s ease-in-out;
    border-color: #ff3344;
}

@keyframes lock-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.lock-token-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    min-width: 0;
}

.lock-token-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
}

.lock-token-submit-btn {
    background: #00ff88;
    color: #050805;
    border: none;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 18px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.lock-token-submit-btn:hover {
    background: #2aff9b;
}

.lock-token-feedback {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    min-height: 16px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s;
}

.lock-token-feedback.show-error {
    opacity: 1;
    color: #ff3344;
}

.lock-token-feedback.show-success {
    opacity: 1;
    color: #00ff88;
}

.lock-toast-msg {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #00ff88;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    min-height: 16px;
}

.lock-toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom footer bar */
.lock-bottom-spec-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(6, 7, 6, 0.85);
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    z-index: 20;
}

/* Dismiss animation */
#construction-lock.lock-dismissed {
    animation: lock-exit 0.85s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    pointer-events: none;
}

@keyframes lock-exit {
    0%   { opacity: 1; transform: translateY(0); filter: blur(0); }
    100% { opacity: 0; transform: translateY(-100vh); filter: blur(12px); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .lock-ambient-orb,
    .lock-status-dot,
    .lock-container,
    #construction-lock.lock-dismissed {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lock-container {
        padding: 2.5rem 1rem 4rem 1rem;
    }
    .lock-headline-fatkat {
        font-size: clamp(2.8rem, 13vw, 5rem);
    }
    .lock-mail-cta-btn {
        padding: 16px 20px;
        font-size: 12px;
    }
    .lock-aux-links-row {
        flex-direction: column;
        gap: 8px;
    }
    .lock-bottom-spec-bar {
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
        font-size: 8px;
    }
}
