/* ===== Entry Page — Language Selection ===== */

:root {
    --nav-bg-color: #000000;
    --main-bg-color: #121717;
    --main-text-color: #FFFFFF;
    --second-bg-color: #293338;
    --second-text-color: #E5E8EB;
    --third-text-color: #9EB0BA;
    --link-text-color: #2BADED;
    --neon-blue: #00FFFF;
    --neon-pink: #FF1493;
    --neon-green: #39FF14;
    --transition-fast: 0.25s ease;
}

/* ===== Animations ===== */

@keyframes neonPulse {
    0% {
        text-shadow:
            0 0 5px #ff00ff,
            0 0 10px #ff00ff,
            0 0 20px #00ffff;
    }
    50% {
        text-shadow:
            0 0 5px #00ffff,
            0 0 15px #ff00ff,
            0 0 25px #00ffff;
    }
    100% {
        text-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 20px #ff00ff;
    }
}

@keyframes cardGlow {
    0%   { box-shadow: 0 0 14px rgba(0,255,255,0.25), 0 0 28px rgba(0,255,255,0.10); }
    100% { box-shadow: 0 0 22px rgba(0,255,255,0.40), 0 0 44px rgba(0,255,255,0.18); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes taglineFade {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes ambientPulse {
    0%   { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.65; transform: scale(1.08); }
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===== Base ===== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Scan-line overlay ===== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.07) 3px,
        rgba(0, 0, 0, 0.07) 4px
    );
    pointer-events: none;
    z-index: 0;
}

/* Ambient background glow */
body::after {
    content: "";
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(0,255,255,0.06) 0%,
        rgba(255,20,147,0.04) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 5s infinite alternate ease-in-out;
}

/* ===== Page layout ===== */

.entry-page {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    gap: 40px;
}

/* ===== Header / Brand ===== */

header {
    animation: fadeInUp 0.7s ease both;
}

.entry-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.entry-logo {
    display: block;
    /* width: 72px; */
    /* height: 72px; */
    width: 128px;
    height: 128px;
    margin-bottom: 20px;
    background-image: url("/assets/images/logos/logo_128x128.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.75));
    animation: logoSpin 6s linear infinite;
}

.entry-site-name {
    font-size: clamp(36px, 7vw, 58px);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
    animation: neonPulse 4s infinite alternate;
}

/* Three-language taglines — staggered fade-in */

.entry-tagline {
    font-size: 13px;
    color: var(--third-text-color);
    letter-spacing: 0.14em;
    line-height: 1.9;
    opacity: 0;
    animation: taglineFade 0.6s ease forwards;
}

.entry-tagline:nth-child(3) { animation-delay: 0.4s; }
.entry-tagline:nth-child(4) { animation-delay: 0.6s; }
.entry-tagline:nth-child(5) { animation-delay: 0.8s; }

/* ===== Divider ===== */

.entry-divider {
    width: min(480px, 90vw);
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0,255,255,0.5) 30%,
        rgba(255,20,147,0.5) 70%,
        transparent
    );
    animation: fadeInUp 0.8s 0.3s ease both;
}

/* ===== Main / Language section ===== */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: min(420px, 92vw);
    animation: fadeInUp 0.9s 0.4s ease both;
}

main h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--third-text-color);
    text-align: center;
    margin-bottom: 1.5em;
}

/* ===== Language cards ===== */

.entry-lang-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.lang-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 14px;
    border: 1px solid var(--second-bg-color);
    background: rgba(255,255,255,0.02);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast),
        background var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Active language card */
.lang-card.active {
    border-color: rgba(0,255,255,0.40);
    background: rgba(0,255,255,0.04);
    animation: cardGlow 2.4s infinite alternate;
}

.lang-card.active:hover {
    transform: translateY(-3px);
    border-color: rgba(0,255,255,0.75);
    background: rgba(0,255,255,0.08);
    box-shadow:
        0 0 20px rgba(0,255,255,0.35),
        0 0 40px rgba(0,255,255,0.15);
}

/* Coming-soon language card */
.lang-card.coming-soon {
    opacity: 0.38;
    cursor: not-allowed;
}

.lang-card.coming-soon:hover {
    transform: none;
    border-color: var(--second-bg-color);
    box-shadow: none;
}

/* Flag / icon area */
.lang-flag {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
}

/* Text area */
.lang-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

h3.lang-name {
    margin: 0;
}

.lang-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--main-text-color);
}

.lang-native {
    font-size: 12px;
    color: var(--third-text-color);
    letter-spacing: 0.02em;
}

/* Badge */
.lang-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
}

.lang-badge.badge-enter {
    color: #041012;
    background: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0,255,255,0.55);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-card.active:hover .lang-badge.badge-enter {
    background: #7cffff;
    box-shadow: 0 0 16px rgba(0,255,255,0.8);
}

.lang-badge.badge-soon {
    color: var(--third-text-color);
    border: 1px solid var(--second-bg-color);
    background: transparent;
}

/* Hover sweep effect on active card */
.lang-card.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0 40%,
        rgba(255,255,255,0.04) 50%,
        transparent 60% 100%
    );
    transform: translateX(-110%);
    transition: transform 0.5s ease;
}

.lang-card.active:hover::after {
    transform: translateX(110%);
}

/* ===== Footer ===== */

.entry-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 20px;
    font-size: 11px;
    color: var(--third-text-color);
    letter-spacing: 0.06em;
    opacity: 0.55;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== Responsive ===== */

@media (min-width: 560px) {
    .entry-lang-list {
        gap: 16px;
    }

    .lang-card {
        padding: 22px 28px;
    }

    .lang-flag {
        font-size: 34px;
    }
}
