/* ================================================================
   links.ktown.team — Page Stylesheet
   ================================================================ */

/* --- Custom Properties ------------------------------------------- */
:root {
    --navy:       #070A61;
    --navy-mid:   #141669;
    --gold:       #FDB322;
    --white:      #ffffff;
    --max-content: 600px;
    --max-page:   1000px;
    --radius:     10px;
    --transition: 0.15s ease;
}

/* --- Page base ---------------------------------------------------- */
html, body {
    min-height: 100%;
    background: var(--navy);
    color: var(--white);
}

/* --- Page shell --------------------------------------------------- */
.container {
    position: relative;
    min-height: 100vh;
}

/* --- Background (fixed parallax) --------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--navy);
}

.hero .overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url("https://cdn.ktown.cloud/imgs/hero.jpg") center / cover no-repeat;
    pointer-events: none;
}

.hero .overlay .layer:nth-child(1) {
    position: absolute;
    inset: 0;
    background: var(--navy);
    opacity: 0.7;
}

.hero .overlay .layer:nth-child(2) {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,10,97,0) 0%, rgba(7,10,97,1) 100%);
}

/* --- Content wrapper --------------------------------------------- */
.content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-page);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Logo / Header ----------------------------------------------- */
.top {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.logo-title {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    position: absolute;
    inset: 0;
    background: url("circles.svg") center / contain no-repeat;
    opacity: 0.35;
    animation: spin 48s linear infinite;
}

.title {
    position: relative;
    font-family: "Cubano", sans-serif;
    font-size: 1.1em;
    letter-spacing: 0.05em;
    color: var(--white);
}

/* --- Main content area ------------------------------------------- */
.main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
}

/* --- Socials ----------------------------------------------------- */
.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    max-width: var(--max-content);
    font-size: 1.8em;
    padding: 0 20px;
}

.social {
    color: var(--white);
    opacity: 0.75;
    transition: opacity var(--transition);
}

.social:hover {
    opacity: 1;
}

/* --- Collections ------------------------------------------------- */
.collections {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--max-content);
    gap: 10px;
    padding: 32px 0 0;
}

.collection {
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--radius);
    color: var(--navy);
    text-align: center;
    padding: 14px 20px;
    font-weight: bold;
    font-size: 1.2em;
    font-family: "Cubano", sans-serif;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.collection:hover {
    background: transparent;
    color: var(--white);
}

/* --- Quick links ------------------------------------------------- */
.links {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: var(--max-content);
    padding: 20px 0 0;
}

.links .link {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color var(--transition);
}

.links .link:hover {
    color: var(--white);
}

/* --- Info box ---------------------------------------------------- */
.box {
    width: 100%;
    max-width: var(--max-content);
    padding: 48px 0 64px;
    text-align: center;
}

.box h1 {
    margin: 0 0 10px;
    font-family: "Cubano", sans-serif;
    font-size: 1.6em;
    color: var(--white);
}

.box p {
    margin: 16px 0 0;
    font-size: 1em;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
}

/* --- Box meta (version + language) ------------------------------- */
.box-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.version {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.06em;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.lang-trigger:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* --- Language panel ---------------------------------------------- */
.lang-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--navy);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lang-panel.open {
    visibility: visible;
    opacity: 1;
}

.lang-panel-inner {
    width: 100%;
    max-width: 440px;
    padding: 60px 24px 48px;
}

.lang-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    font-size: 0.72em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.lang-panel-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.3em;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: color var(--transition);
}

.lang-panel-close:hover {
    color: var(--white);
}

.lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-decoration: none;
}

.lang-row:last-child {
    border-bottom: none;
}

.lang-name {
    color: var(--white);
    font-size: 1em;
}

.lang-code {
    color: rgba(255, 255, 255, 0.35);
    font-weight: normal;
}

.lang-native {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1em;
}

.lang-row:hover .lang-name,
.lang-row:hover .lang-native {
    color: var(--white);
}

.lang-row:hover .lang-code {
    color: rgba(255, 255, 255, 0.6);
}

.lang-row.active .lang-name {
    color: var(--white);
}

.lang-row.active .lang-native {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Responsive -------------------------------------------------- */
@media (max-width: 480px) {
    .logo-title        { width: 100px; height: 100px; }
    .socials           { font-size: 1.5em; gap: 20px; }
    .collection        { font-size: 1.1em; }
    .box h1            { font-size: 1.4em; }
}
