@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lexend:wght@900&display=swap');

:root {
    --red: #74211b;
    --red-glow: rgba(116, 33, 27, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0e0e11;
    background-image: radial-gradient(circle at 50% 0%, rgba(116, 33, 27, 0.07) 0%, transparent 55%);
}

/* ─── PAGE TRANSITION ─────────────────────── */
#page-overlay {
    position: fixed;
    inset: 0;
    background: #0e0e11;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#page-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ─── VIEW SECTIONS ───────────────────────── */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ─── FADE IN ─────────────────────────────── */
.fade-in {
    animation: fadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
@keyframes fadeIn {
    0%   { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ─── HERO TITLE ──────────────────────────── */
.hero-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom, #ffffff, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── NAV UNDERLINE HOVER ─────────────────── */
/* Only CSS hover — no JS class toggling for hover underline */
.nav-underline {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}
/* Underline base */
.nav-underline::after {
    content: '';
    position: absolute;
    bottom: -20px; /* align with nav border */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red);
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Hover: slide in */
.nav-underline:hover::after {
    width: 100%;
}
/* Mouse leave handled by CSS — width returns to 0 when no hover (unless active) */
.nav-underline.active {
    color: white;
}
.nav-underline.active::after {
    width: 100%;
}

/* Mouse hover'da aktif butonun çizgisi kaybolur, mouse gidince geri gelir */
.nav-underline.active.hover-suppressed::after {
    width: 0;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.discord-btn {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.discord-btn:hover {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.55);
}

/* ─── REGISTER BUTTON ─────────────────────── */
.register-btn {
    background-color: var(--red);
    box-shadow: 0 0 18px var(--red-glow);
    transition: background 0.2s, box-shadow 0.2s;
}
.register-btn:hover {
    background-color: #8b2920;
    box-shadow: 0 0 28px var(--red-glow);
}

/* ─── IP COPY BUTTON ──────────────────────── */
.ip-btn {
    background: white;
    color: black;
    cursor: pointer;
    transition: background 0.2s;
}
.ip-btn:hover {
    background: rgba(255,255,255,0.88);
}

/* ─── COPY TOAST ──────────────────────────── */
#copy-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #0e0e11;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.12);
    color: #4ade80;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── PARTICLE CANVAS (fullscreen, above all except toast) ─ */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s;
}
#particle-canvas.burst-active {
    opacity: 1;
}

/* ─── HERO WRAPPER ────────────────────────── */
.hero-wrapper {
    position: relative;
    min-height: calc(100vh - 65px);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: 0;
}
.hero-wrapper > * {
    position: relative;
    z-index: 1;
}

/* ─── ONLINE BADGE ────────────────────────── */
.online-badge {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* ─── FEATURE CARDS ───────────────────────── */
.feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover {
    border-color: rgba(116, 33, 27, 0.45);
    transform: translateY(-3px);
}
.feature-icon {
    color: var(--red);
}

/* ─── GLOWING ICONS ───────────────────────── */
.icon-glow-wrap {
    display: inline-flex;
}
.icon-glow {
    color: #74211b;
    filter: drop-shadow(0 0 6px rgba(116,33,27,0.95)) drop-shadow(0 0 16px rgba(180,50,30,0.6));
    animation: iconPulse 2.8s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(116,33,27,0.9)) drop-shadow(0 0 12px rgba(150,40,25,0.5)); }
    50%       { filter: drop-shadow(0 0 10px rgba(160,45,25,1))  drop-shadow(0 0 24px rgba(116,33,27,0.75)); }
}

/* ─── INFO CARDS ──────────────────────────── */
.info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    transition: border-color 0.25s;
}
.info-card:target,
.info-card.highlight {
    border-color: rgba(116, 33, 27, 0.5);
}

/* ─── AUTH CARD ───────────────────────────── */
.auth-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
}
.auth-input {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.2s;
}
.auth-input:focus {
    border-color: var(--red);
}
.auth-tab {
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}
.auth-tab.active { color: white; }
.submit-btn {
    background: var(--red);
    box-shadow: 0 0 18px var(--red-glow);
    transition: background 0.2s;
    cursor: pointer;
}
.submit-btn:hover { background: #8b2920; }

/* ─── MOBILE HAMBURGER ────────────────────── */
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
#hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}
#hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── MOBILE DRAWER ───────────────────────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
    backdrop-filter: blur(2px);
}
.mobile-overlay.open { display: block; }

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 260px;
    background: #0e0e11;
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 64px;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-btn:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}
