/* --- Wrapper & Variables --- */
.nerds_coming_soon_wrapper {
    --ncs-accent: #3AAFA9;

    position: relative;
    width: 100%;
    max-width: 100%;
    height: 400px;
    margin: 40px 0;

    z-index: 1;
    font-family: inherit;

    /* FIX 1: Allow text selection by default */
    user-select: auto;
    -webkit-user-select: auto;
}

/* --- The Card --- */
.nerds_coming_soon_card {
    position: relative;
    width: 100%;
    height: 100%;

    /* Background Logic */
    background-color: color-mix(in srgb, var(--ncs-accent), #000 80%);
    background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, #111 100%);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(0, 0, 0, 0.5);
}

/* --- Layer 1: Ghost Rows --- */
.nerds_coming_soon_ghost_layer {
    position: absolute;
    inset: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0.4;
    pointer-events: none;
    filter: blur(4px);

    /* Prevent selecting the background shapes */
    user-select: none;
}

.ncs_ghost_row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ncs_ghost_icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 12px;
    opacity: 0.5;
}

.ncs_ghost_line {
    height: 16px;
    background: #fff;
    border-radius: 8px;
    opacity: 0.3;
}

.ncs_ghost_line.long {
    width: 60%;
}

.ncs_ghost_line.medium {
    width: 40%;
}

.ncs_ghost_line.short {
    width: 70%;
}

/* --- Layer 2: Grid & Flashlight --- */
.nerds_coming_soon_grid_pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.nerds_coming_soon_glow_spot {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--ncs-accent) 0%, transparent 65%);

    /* Centering */
    top: 0;
    left: 0;
    /* JS controls this */
    transform: translate(-50%, -50%);
    /* Centers the spot on the cursor coords */

    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
    z-index: 3;
    filter: blur(50px);
    will-change: left, top;
}

.nerds_coming_soon_wrapper:hover .nerds_coming_soon_glow_spot,
.nerds_coming_soon_wrapper:active .nerds_coming_soon_glow_spot {
    opacity: 0.25;
}

/* --- Layer 3: Foreground Content --- */
.nerds_coming_soon_content_layer {
    position: absolute;
    top: 50%;
    left: 50%;

    /* FIX 2: Flattened transform (Removed translateZ) */
    transform: translate(-50%, -50%);

    text-align: center;
    z-index: 10;
    width: 85%;
    max-width: 550px;
}

.ncs_lock_icon {
    color: var(--ncs-accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--ncs-accent));
}

.ncs_title {
    color: #ffffff;
    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.ncs_description {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- Button Styling --- */
.ncs_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Ensure contents center */
    background-color: transparent;
    border: 2px solid var(--ncs-accent);
    color: var(--ncs-accent);
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;

    /* FIX 3: Ensure clickable area is clear */
    position: relative;
    cursor: pointer;
    user-select: none;
    /* Keep button text unselectable for cleaner UI feeling? Or allow it? 
                          Usually buttons are unselectable. Let's keep it none for the button itself. */
}

.ncs_button:hover {
    background-color: var(--ncs-accent);
    color: #ffffff !important;
    box-shadow: 0 0 20px var(--ncs-accent);
    transform: translateY(-2px);
}

.ncs_btn_text {
    margin-right: 10px;
}

.ncs_btn_icon {
    display: flex;
    align-items: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nerds_coming_soon_wrapper {
        height: 380px;
    }

    .ncs_title {
        font-size: 22px;
    }

    .ncs_description {
        font-size: 14px;
        padding: 0 10px;
    }
}