/* ═══════════════════════════════════════
   BACKGROUND
═══════════════════════════════════════ */

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 101%;
    height: 101%;
    background: url("../img/background.png") center / cover no-repeat;
    filter: brightness(0.32);
    transform: scale(1.01); /* prevent blur-edge artifacts */
    z-index: -1;
}

html.darkmode .background-image,
.background-image.darkmode {
    background: url("../img/background_dark.png") center / cover no-repeat;
    filter: brightness(0.22);
    transform: scale(1.01);
}

html.lightmode .background-image,
.background-image.lightmode {
    background: url("../img/background_light.png") center / cover no-repeat;
    filter: brightness(0.35);
    transform: scale(1.01);
}

/* ═══════════════════════════════════════
   HERO LAYOUT
═══════════════════════════════════════ */

body {
    overflow: hidden;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 1.5rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    text-align: center;
    margin-top: -4rem;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */

.hero-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.05s forwards;
}

h1 {
    font-family: 'Arvo', serif;
    font-weight: 700;
    font-size: clamp(2.6rem, 9vw, 5.5rem);
    letter-spacing: 0px;
    line-height: 1;
    color: var(--brighter);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
    margin: 0;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.15s forwards;
}

/* ═══════════════════════════════════════
   SERVER IP WIDGET
═══════════════════════════════════════ */

.server-ip-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.27s forwards;
}

.server-ip-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--bright);
    opacity: 0.5;
}

.server-ip-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.server-ip-box:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.18);
}

.server-ip-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--brighter);
    letter-spacing: 0.03em;
    user-select: all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--accent);
    color: var(--text_contrasted_to_nav);
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.copy-btn:hover {
    opacity: 0.82;
    transform: scale(1.04);
}

.copy-btn:active {
    transform: scale(0.97);
}

/* ═══════════════════════════════════════
   SHOP BUTTON
═══════════════════════════════════════ */

@property --shop-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes shop-border-spin {
    to { --shop-angle: 360deg; }
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.2rem 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--brighter);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0;
    position: relative;
    animation: fadeUp 0.5s ease 0.34s forwards;
    transition: transform 0.2s ease;
}

.shop-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    padding: 1px;
    background: conic-gradient(
        from var(--shop-angle),
        transparent 0deg,
        rgba(255, 255, 255, 0.08) 20deg,
        rgba(255, 255, 255, 0.65) 60deg,
        rgba(255, 255, 255, 0.08) 100deg,
        transparent 120deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: shop-border-spin 4s linear infinite;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.shop-btn:hover::before {
    animation-play-state: paused;
    background: rgba(255, 255, 255, 0.3);
}

.shop-btn:hover {
    transform: translateY(-2px);
}

.shop-btn-arrow {
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.shop-btn:hover .shop-btn-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* ═══════════════════════════════════════
   SOCIAL ICONS
═══════════════════════════════════════ */

.socials {
    display: flex;
    gap: 0.55rem;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.46s forwards;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════
   FOOTER INFO
═══════════════════════════════════════ */

.website-info {
    position: fixed;
    bottom: 1.2rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.52s forwards;
}

.website-info a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(241, 241, 241, 0.38);
    text-decoration: none;
    transition: color 0.2s ease;
}

.website-info a:hover {
    color: rgba(241, 241, 241, 0.75);
}

.website-info .sep {
    font-size: 0.72rem;
    color: rgba(241, 241, 241, 0.18);
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */

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

/* ═══════════════════════════════════════
   LIGHT MODE OVERRIDES
══════════════════════════��════════════ */

body.lightmode .server-ip-box {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(0, 0, 0, 0.35);
}

body.lightmode .server-ip-box:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(0, 0, 0, 0.45);
}

body.lightmode .social-link {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.3);
}

body.lightmode .social-link:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(0, 0, 0, 0.45);
}

body.lightmode .shop-btn {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.3);
}

body.lightmode .shop-btn:hover {
    background: rgba(0, 0, 0, 0.52);
    border-color: rgba(0, 0, 0, 0.42);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 600px) {
    .server-ip-text {
        font-size: 0.85rem;
    }

    .copy-label {
        display: none;
    }

    .copy-btn {
        padding: 0.5rem 0.6rem;
    }
}
