/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
    --red: #FF2222; /* Neon Kırmızı Teması */
    --dark-bg: #030000;
    --card-bg: rgba(15, 10, 10, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    outline: none;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

button, a {
    cursor: pointer;
    border: none;
    background: none;
    text-decoration: none;
    color: inherit;
}

.hidden { display: none !important; }
.mt-4 { margin-top: 16px; }
.ml-auto { margin-left: auto; }

/* =========================================
   2. LAYOUT & HELPERS
========================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.view-section { min-height: 100vh; display: flex; flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.pt-top { padding-top: 140px; padding-bottom: 80px; }

/* =========================================
   3. BACKGROUND EFFECTS (KEMERLİ TASARIM)
========================================= */
.bg-wrapper { 
    position: fixed; 
    inset: 0; 
    z-index: -20; 
    background-color: var(--dark-bg);
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        radial-gradient(circle at 50% 100%, transparent 68%, rgba(255, 34, 34, 0.04) 70%, transparent 72%),
        radial-gradient(circle at 50% 100%, transparent 40%, rgba(255, 34, 34, 0.08) 45%, rgba(255, 34, 34, 0.25) 50%, rgba(255, 34, 34, 0.05) 60%, transparent 65%),
        radial-gradient(circle at 50% 100%, transparent 28%, rgba(255, 34, 34, 0.1) 30%, transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(255, 34, 34, 0.15) 0%, transparent 25%);
    background-size: 80px 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: center bottom;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

/* =========================================
   4. NAVBAR & LOGO
========================================= */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.02); background: rgba(3,0,0,0.5); backdrop-filter: blur(10px); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; width: 250px; cursor: pointer; }
.logo-box { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.custom-logo { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.5px; white-space: nowrap; }
.logo-text span { color: var(--text-muted); }

.nav-menu { display: flex; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-light); border-radius: 16px; padding: 4px; backdrop-filter: blur(16px); }
.nav-btn { width: 110px; padding: 8px 0; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.nav-btn:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.nav-btn.active { background: var(--red); color: white; box-shadow: 0 0 15px rgba(255,34,34,0.3); }
.nav-actions { width: 250px; display: flex; justify-content: flex-end; }
.nav-profile-shell { position: relative; width: 250px; }
.nav-profile-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    transition: var(--transition);
}
.nav-profile-trigger:hover,
.nav-profile-trigger.is-open {
    border-color: rgba(255, 34, 34, 0.4);
    box-shadow: 0 12px 32px -18px rgba(255, 34, 34, 0.9);
}
.nav-profile-trigger img,
.panel-profile-hero img {
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
}
.nav-profile-trigger img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}
.nav-profile-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}
.nav-profile-meta strong,
.nav-profile-meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-profile-meta strong {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.nav-profile-meta span {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}
.nav-profile-trigger i {
    color: rgba(255,255,255,0.45);
    transition: transform 0.2s ease;
}
.nav-profile-trigger.is-open i {
    transform: rotate(180deg);
}
.nav-profile-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 34, 34, 0.22), transparent 34%),
        rgba(10, 5, 5, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
}
.nav-profile-panel-head {
    margin-bottom: 18px;
}
.panel-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 34, 34, 0.12);
    border: 1px solid rgba(255, 34, 34, 0.24);
    color: #ff9090;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-profile-panel-head strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 900;
}
.nav-profile-panel-head p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}
.panel-profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.panel-profile-hero img {
    width: 62px;
    height: 62px;
    border-radius: 20px;
}
.panel-profile-hero strong,
.panel-profile-hero span {
    display: block;
}
.panel-profile-hero strong {
    font-size: 17px;
    font-weight: 800;
}
.panel-profile-hero span {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}
.panel-stat-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}
.panel-stat-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
}
.panel-stat-item span,
.panel-stat-item strong {
    display: block;
}
.panel-stat-item span {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    margin-bottom: 5px;
}
.panel-stat-item strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

/* =========================================
   5. BUTTONS
========================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 700; transition: var(--transition); }
.btn-primary { background: var(--red); color: white; padding: 10px 24px; font-size: 14px; border: 1px solid var(--red); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(255,34,34,0.4); background: #E01111; border-color: #E01111; }
.btn-large { padding: 14px 32px; font-size: 16px; }
.btn-hero { padding: 16px; font-size: 16px; width: 100%; border-radius: 12px; }
.btn-full { width: 100%; padding: 12px; }

/* =========================================
   6. HERO (HOME - ESKİ ÖN PLAN, DÖNEN ÇEMBER)
========================================= */
.hero-section { justify-content: center; align-items: center; }
.hero-image-wrapper { position: relative; margin-bottom: 40px; }
.hero-img-box { position: relative; width: 300px; height: 300px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 0 40px rgba(255,34,34,0.15); z-index: 2; }
.hero-img-box img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.8); }
.hero-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--dark-bg), transparent); }
.hero-spinner { position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px; border: 4px solid var(--border-light); border-top-color: var(--red); border-radius: 50%; animation: spin 15s linear infinite; z-index: 1; }

.hero-content { text-align: center; max-width: 800px; z-index: 10; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-light); padding: 6px 16px; border-radius: 50px; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 24px; }
.hero-badge i, .highlight { color: var(--red); }
.hero-title { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -2px; margin-bottom: 24px; text-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.hero-title span { color: white; }

/* =========================================
   7. PRODUCTS
========================================= */
.section-header { text-align: center; margin-bottom: 48px; }
.section-title-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.title-icon { font-size: 32px; color: var(--red); }
.section-title { font-size: 48px; font-weight: 900; letter-spacing: -1px; }
.section-desc { color: var(--text-muted); font-size: 16px; margin-bottom: 32px; }

.category-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; }
.cat-btn { padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-muted); transition: var(--transition); }
.cat-btn:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.cat-btn.active { background: var(--red); border: 1px solid var(--red); color: white; box-shadow: 0 0 15px rgba(255, 34, 34, 0.3); }

.product-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); backdrop-filter: blur(10px); }
.card:hover { border-color: var(--red); box-shadow: 0 10px 30px -10px rgba(255, 34, 34, 0.2); transform: translateY(-5px); }
.card-img-wrap { position: relative; aspect-ratio: 16/9; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,0,0,0.9), transparent); }
.card-badge { position: absolute; top: 16px; right: 16px; background: var(--red); color: white; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 6px; z-index: 10; }

.card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card-footer { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.price-wrap { display: flex; justify-content: space-between; align-items: center; }
.price-lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.price-val { font-size: 24px; font-weight: 900; color: var(--red); }

/* =========================================
   8. AUTH (LOGIN & REGISTER)
========================================= */
.auth-wrapper { width: 100%; max-width: 480px; margin: 0 auto; z-index: 10; padding: 0 24px; }

.auth-card { 
    background: rgba(10, 5, 5, 0.6); 
    backdrop-filter: blur(40px); 
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-top: 1px solid rgba(255, 34, 34, 0.4);
    border-radius: 28px; 
    padding: 48px 40px; 
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.05); 
    position: relative; 
}

.auth-card::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 40%; height: 1px; background: var(--red); 
    box-shadow: 0 0 25px 3px var(--red); opacity: 0.5;
}

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header img { width: 64px; height: 64px; margin-bottom: 16px; filter: drop-shadow(0 0 15px rgba(255,34,34,0.3)); animation: pulseLogo 3s infinite alternate; }
.auth-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; color: white; letter-spacing: -1px; }
.auth-header p { color: rgba(255,255,255,0.4); font-size: 15px; }

.btn-discord { background: rgba(88, 101, 242, 0.1); border: 1px solid rgba(88, 101, 242, 0.4); color: #fff; font-weight: 600; padding: 16px; border-radius: 16px; font-size: 15px; margin-bottom: 24px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-discord i { font-size: 20px; color: #5865F2; transition: 0.4s; }
.btn-discord:hover { background: #5865F2; border-color: #5865F2; box-shadow: 0 15px 30px -10px rgba(88, 101, 242, 0.6); transform: translateY(-3px); }
.btn-discord:hover i { color: #fff; }

.auth-divider { display: flex; align-items: center; text-align: center; margin-bottom: 24px; color: rgba(255, 255, 255, 0.15); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.auth-divider span { padding: 0 16px; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-item { position: relative; width: 100%; }
.input-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.2); font-size: 16px; transition: var(--transition); z-index: 2;}

.hero-input { width: 100%; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 18px 20px 18px 52px; color: white; font-size: 15px; font-weight: 500; outline: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-input::placeholder { color: rgba(255,255,255,0.2); font-weight: 400; }
.hero-input:focus { background: rgba(255,34,34,0.02); border-color: rgba(255,34,34,0.5); box-shadow: 0 0 0 4px rgba(255,34,34,0.05), 0 10px 20px -10px rgba(0,0,0,0.5); transform: translateY(-2px); }
.hero-input:focus + .input-icon { color: var(--red); filter: drop-shadow(0 0 5px rgba(255,34,34,0.5)); }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-top: -4px; margin-bottom: 8px; }
.remember-me { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.5); cursor: pointer; user-select: none; transition: var(--transition); }
.remember-me:hover { color: white; }
.remember-me input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; background: rgba(255,255,255,0.02); cursor: pointer; position: relative; transition: var(--transition); }
.remember-me input:checked { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px rgba(255,34,34,0.3); }
.remember-me input:checked::after { content: '✔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 10px; font-weight: 900; }

.forgot-pwd { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); transition: var(--transition); }
.forgot-pwd:hover { color: var(--red); text-shadow: 0 0 10px rgba(255,34,34,0.3); }

.btn-auth { padding: 18px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 16px; margin-top: 8px; position: relative; overflow: hidden; }

.auth-status {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.auth-status-info {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.35);
    color: #d6dbff;
}

.auth-status-success {
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.35);
    color: #d4ffe2;
}

.auth-status-error {
    background: rgba(255, 82, 82, 0.12);
    border-color: rgba(255, 82, 82, 0.35);
    color: #ffd3d3;
}

.discord-user-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.discord-user-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.discord-user-summary strong,
.discord-user-summary span {
    display: block;
}

.discord-user-summary strong {
    font-size: 16px;
    color: #fff;
}

.discord-user-summary span {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.discord-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
}

.site-footer {
    padding: 28px 0 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    letter-spacing: 0.4px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-legal {
    width: min(100%, 280px);
    padding: 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    text-align: left;
}

.footer-legal h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.footer-legal a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: #fff;
}

.site-footer p {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.auth-switch { margin-top: 32px; font-size: 14px; color: rgba(255,255,255,0.4); text-align: center; }
.auth-switch span { color: white; font-weight: 700; cursor: pointer; margin-left: 6px; transition: var(--transition); }
.auth-switch span:hover { color: var(--red); text-shadow: 0 0 10px rgba(255,34,34,0.4); }

/* =========================================
   9. ANIMATIONS
========================================= */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulseLogo { from { filter: drop-shadow(0 0 10px rgba(255,34,34,0.2)); } to { filter: drop-shadow(0 0 25px rgba(255,34,34,0.6)); } }

.view-section:not(.hidden) { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(25px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@media (max-width: 920px) {
    .navbar-inner {
        gap: 12px;
        flex-wrap: wrap;
    }

    .nav-logo,
    .nav-actions,
    .nav-profile-shell {
        width: 100%;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-btn {
        width: 100%;
    }

    .nav-profile-panel {
        width: 100%;
    }
}
