@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&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);
}

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

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%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ─── PAGE TRANSITION ─────────────────────── */
#page-overlay {
    position: fixed;
    inset: 0;
    background: #0e0e11;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}
#page-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ─── VIEW SECTIONS ───────────────────────── */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    will-change: opacity, transform;
}
.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    min-height: calc(100vh - 64px - 97px);
}
#view-auth.view-section.active {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 64px - 97px);
}

.fade-in {
    animation: popIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}
@keyframes popIn {
    0%   { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── 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 ITEM HOVER & ACTIVE ─────────────────── */
.nav-underline {
    position: relative;
    padding: 4px 2px;
    transition: color 0.25s ease;
    color: rgba(255,255,255,0.5);
}
.nav-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    width: 100%;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--red-glow);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-underline:hover {
    color: rgba(255,255,255,0.95);
}
.nav-underline.active {
    color: white;
}
.nav-underline.active::after {
    transform: translateX(-50%) scaleY(1);
}
.nav-underline.active.hover-suppressed {
    color: white;
}
.discord-btn {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.10);
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(88,101,242,0.18), 0 0 30px rgba(88,101,242,0.08);
}
.discord-btn:hover {
    background: rgba(88, 101, 242, 0.22);
    border-color: rgba(88, 101, 242, 0.65);
    box-shadow: 0 0 22px rgba(88,101,242,0.35), 0 0 50px rgba(88,101,242,0.15);
}

/* ─── 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: var(--red);
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 18px var(--red-glow);
}
.ip-btn:hover {
    background: #8b2920;
    box-shadow: 0 0 30px rgba(116,33,27,0.6);
}

/* ─── 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 ────────────────────────────────── */
/* Arka plan doğrudan wrap'a verildi — ayrı absolute div YOK */
.hero-bg-wrap {
    background-image: url('images/background.png');
    background-position: 40% center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: calc(100vh - 64px); /* navbar yüksekliği çıkarıldı */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-content,
.hero-cards {
    position: relative;
    z-index: 1;
}
/* Arka planın solukluğu için içeriği pseudo-element ile kapat */
.hero-bg-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 17, 0.57);
    z-index: 0;
    pointer-events: none;
}
.hero-bg-wrap {
    position: relative;
}
@media (max-width: 768px) {
    .hero-bg-wrap {
        background-image: url('images/backgroundmob.png');
        background-position: center center;
        min-height: calc(100vh - 64px);
    }
    .hero-bg-wrap::before {
        background: rgba(14, 14, 17, 0.62);
    }
    .hero-cards {
        padding-bottom: 2rem;
    }
}

/* ─── 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.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    overflow: hidden;
    position: relative;
}
/* Dikey parlama şeridi */
.feature-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(116, 33, 27, 0.18) 40%,
        rgba(116, 33, 27, 0.32) 50%,
        rgba(116, 33, 27, 0.18) 60%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.feature-card:hover::after {
    opacity: 1;
    animation: verticalShimmer 2.4s ease-in-out infinite;
}
@keyframes verticalShimmer {
    0%   { top: -60%; opacity: 0; }
    15%  { opacity: 1; }
    50%  { top: 100%; opacity: 1; }
    65%  { opacity: 0; }
    100% { top: 100%; opacity: 0; }
}
.feature-card:hover {
    border-color: rgba(116, 33, 27, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(116, 33, 27, 0.15);
}
.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 3s ease-in-out infinite;
    will-change: filter;
}
@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;
}

/* ─── AUTH REDESIGN ───────────────────────── */
/* Eski kutucuklu tab bar kaldırıldı — sadece yazı tabları */
.auth-tab-plain {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.25);
    transition: color 0.2s ease;
    padding: 0;
    position: relative;
}
.auth-tab-plain::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: width 0.25s ease;
}
.auth-tab-plain.active {
    color: white;
}
.auth-tab-plain.active::after {
    width: 100%;
}
.auth-tab-plain:hover {
    color: rgba(255,255,255,0.7);
}

/* Switch link (Hesabınız yok mu? Kayıt Ol) */
.auth-switch-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: var(--red);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0;
    transition: color 0.2s;
}
.auth-switch-link:hover {
    color: #a03028;
}

.auth-card-new {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.auth-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(116,33,27,0.18);
    border: 1px solid rgba(116,33,27,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(116,33,27,0.25);
}

.auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-field-wrap {
    display: flex;
    flex-direction: column;
}

.auth-input-new {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
}
.auth-input-new::placeholder { color: rgba(255,255,255,0.2); }
.auth-input-new:focus {
    border-color: rgba(116,33,27,0.7);
    box-shadow: 0 0 0 3px rgba(116,33,27,0.12);
}

.submit-btn-new {
    background: var(--red);
    box-shadow: 0 0 20px rgba(116,33,27,0.45);
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}
.submit-btn-new:hover {
    background: #8b2920;
    box-shadow: 0 0 32px rgba(116,33,27,0.6);
    transform: translateY(-1px);
}
.submit-btn-new:active { transform: translateY(0); }

/* ─── REMEMBER ME ─────────────────────────── */
.remember-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}
.remember-checkbox.checked {
    border-color: var(--red);
    background: var(--red);
}

#view-home .fade-in {
    animation-delay: 0.05s;
}


/* ─── AUTH KART GEÇİŞ ANİMASYONU ──────────── */
.auth-title-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.auth-subtitle-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

/* Blur out (geçiş başlarken) */
#auth-card-inner.auth-switching {
    filter: blur(6px);
    opacity: 0.4;
    transform: scale(0.98);
    transition: filter 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}
/* Blur in (yeni içerik gelince) */
#auth-card-inner.auth-switched {
    filter: blur(0px);
    opacity: 1;
    transform: scale(1);
    transition: filter 0.38s ease, opacity 0.38s ease, transform 0.38s ease;
}
#auth-card-inner {
    transition: filter 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

/* Tab bar'daki yazı kayma animasyonu */
.auth-tab {
    position: relative;
    overflow: hidden;
}
.auth-tab span {
    display: inline-block;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.32s ease;
}
