/* ═══════════════════════════════════════════════════════════
   HAZARDFORGE GLOBAL STYLES
   Tüm sayfalarda kullanılan ortak stiller.
   Aesthetic: Industrial / Technical / Dark / Forge
   ═══════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    /* Core palette */
    --bg-void: #0a0e1a;
    --bg-deep: #0f172a;
    --bg-surface: #1e293b;
    --bg-elevated: #1a2436;
    --bg-card: #1c2640;
    
    /* Accent */
    --orange: #f97316;
    --orange-bright: #fb923c;
    --orange-glow: rgba(249, 115, 22, 0.5);
    --orange-dim: rgba(249, 115, 22, 0.15);
    
    /* Text */
    --text-bright: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #64748b;
    --text-faint: #475569;
    
    /* Lines */
    --line: rgba(148, 163, 184, 0.08);
    --line-bright: rgba(249, 115, 22, 0.25);
    
    /* Type */
    --font-display: 'Bebas Neue', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Manrope', system-ui, sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--orange) 0%, #ea580c 100%);
    border-radius: 4px;
}

::selection {
    background: var(--orange);
    color: var(--bg-void);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); letter-spacing: 0.02em; }
.accent { color: var(--orange); }

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV (ortak)
   ═══════════════════════════════════════════════════════════ */

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.5) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(10, 14, 26, 0.92);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo {
    height: 36px;
    width: auto;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 0.04em;
    color: var(--text-bright);
}

.brand-text span { color: var(--orange); }

nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
}

nav a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-mono);
    transition: color 0.2s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
}

nav a:hover { color: var(--orange); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--orange); }
nav a.active::after { width: 100%; }

.cta-btn {
    background: var(--orange);
    color: var(--bg-void);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--orange);
    cursor: pointer;
    text-transform: uppercase;
}

.cta-btn:hover {
    background: var(--orange-bright);
    box-shadow: 0 8px 30px var(--orange-glow);
    transform: translateY(-2px);
}

.cta-btn-outline {
    background: transparent;
    color: var(--orange);
    border: 1px solid var(--orange);
}

.cta-btn-outline:hover {
    background: var(--orange);
    color: var(--bg-void);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-bright);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (sub-pages için)
   ═══════════════════════════════════════════════════════════ */

.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, var(--orange-dim) 0%, transparent 60%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--orange-dim);
    border: 1px solid var(--line-bright);
    border-radius: 100px;
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.95;
    color: var(--text-bright);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-body);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════════════════ */

section {
    padding: 100px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 1px;
    background: var(--orange);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    color: var(--text-bright);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-body);
    max-width: 640px;
    line-height: 1.6;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-header .section-tag::before {
    display: none;
}

.section-header .section-tag {
    padding-left: 0;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER (ortak)
   ═══════════════════════════════════════════════════════════ */

footer {
    background: var(--bg-void);
    padding: 80px 0 40px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .brand-text {
    font-size: 32px;
}

.footer-tagline {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--orange);
    color: var(--bg-void);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
    font-family: var(--font-mono);
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    animation: pulse-wa 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-void);
    color: var(--text-bright);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 600ms; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 700ms; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 800ms; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 900ms; }

/* ═══ MOBILE FAIL-SAFE ═══
   Telefonlarda IntersectionObserver bazen gecikiyor veya
   reduce-motion ayarı animasyonu engelleyebiliyor. Bu durumda
   reveal'lar opacity:0 takılıp kalıyor.
   Çözüm: 600px altında animasyon devre dışı, içerik her zaman görünür. */
@media (max-width: 600px) {
    .reveal,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Kullanıcı animasyonu kapatmışsa hiçbir cihazda gizleme */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* TABLET: 900px altı */
@media (max-width: 900px) {
    /* Header düzeni - hamburger görünür, nav menü gizli */
    .nav-inner {
        gap: 12px;
    }
    .menu-toggle { 
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: var(--bg-surface);
        border: 1px solid var(--line);
        font-size: 22px;
        flex-shrink: 0;
    }
    .menu-toggle:hover {
        border-color: var(--orange);
        color: var(--orange);
    }
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-deep);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    nav ul.open { display: flex; }
    nav ul li {
        padding: 0;
        border-bottom: 1px solid var(--line);
    }
    nav ul li:last-child { border-bottom: none; }
    nav ul li a {
        display: block;
        padding: 16px 32px;
        font-size: 15px;
    }
    nav a::after { display: none; }
    
    /* Header CTA buton — yer açma */
    .nav-cta-text { display: none; }
    .cta-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .page-header { padding: 120px 0 60px; }
    section { padding: 70px 0; }
    
    .footer-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 40px; 
    }
    .footer-brand { grid-column: 1 / -1; }
    
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
}

/* MOBİL: 600px altı — yer çok kısıtlı */
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .nav-inner { gap: 8px; }
    .brand-text { font-size: 20px; letter-spacing: 0.02em; }
    .brand-logo { height: 28px; }
    .brand { gap: 8px; }
    
    /* Header CTA butonunu kapatıyoruz, sadece hamburger kalsın */
    header .cta-btn {
        display: none;
    }
    .menu-toggle {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* EXTRA-SMALL: 380px altı (küçük telefonlar) */
@media (max-width: 380px) {
    .container { padding: 0 12px; }
    .brand-text { font-size: 18px; }
    .brand-logo { height: 26px; }
}

/* ═══════════════════════════════════════════════════════════
   AUTH / GİRİŞ — header butonları + giriş/kayıt sayfası
   (giris.html ve panel.html ile paylaşılır)
   ═══════════════════════════════════════════════════════════ */

/* Header sağ taraf grubu */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* "Giriş" / "Panel" outline butonu — header butonları tek satır kalsın */
.nav-actions .cta-btn { white-space: nowrap; }
.nav-login { white-space: nowrap; }

/* Mobil hamburger menüsü içindeki Giriş satırı — sadece mobilde */
.nav-login-mobile { display: none; }
.nav-login-mobile a { color: var(--orange) !important; font-weight: 700; }

@media (max-width: 900px) {
    .nav-actions { gap: 8px; }
    .nav-login-mobile { display: block; }   /* hamburger menüde görünür */
}

/* ── Giriş / Kayıt sayfası ───────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    position: relative;
    overflow: hidden;
}
.auth-wrap::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, var(--orange-dim) 0%, transparent 60%);
    pointer-events: none;
}
.auth-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249,115,22,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,115,22,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .auth-icon {
    font-size: 34px; color: var(--orange);
    display: block; margin-bottom: 10px;
}
.auth-head h1 {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: .03em;
    color: var(--text-bright);
    line-height: 1;
    margin-bottom: 8px;
}
.auth-head p {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Sekmeler: Giriş / Kayıt */
.auth-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-void);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all .25s;
}
.auth-tab.active {
    background: var(--orange);
    color: var(--bg-void);
}

/* Form alanları */
.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-body);
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.auth-field input {
    width: 100%;
    background: var(--bg-void);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.auth-field input::placeholder { color: var(--text-faint); }
.auth-field input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-dim);
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 14px;
    font-size: 15px;
}
.auth-submit[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Durum / hata mesajı */
.auth-msg {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.auth-msg.show { display: block; }
.auth-msg.error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.35);
    color: #fca5a5;
}
.auth-msg.info {
    background: rgba(59,130,246,.12);
    border: 1px solid rgba(59,130,246,.35);
    color: #93c5fd;
}
.auth-msg.ok {
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.35);
    color: #86efac;
}

.auth-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.auth-foot a { color: var(--orange); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* Lisans alanı altı küçük not */
.auth-hint {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: -8px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

/* Başarılı giriş kartı */
.auth-success { text-align: center; }
.auth-success .ok-mark {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(34,197,94,.15);
    border: 2px solid #22c55e;
    color: #22c55e;
    font-size: 32px;
    display: flex; align-items: center; justify-content: center;
}
.auth-success h2 {
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--text-bright);
    letter-spacing: .03em;
    margin-bottom: 6px;
}
.auth-success .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.auth-meta {
    background: var(--bg-void);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 22px;
    text-align: left;
}
.auth-meta-row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    font-size: 13.5px;
    border-bottom: 1px solid var(--line);
}
.auth-meta-row:last-child { border-bottom: none; }
.auth-meta-row .k { color: var(--text-muted); font-family: var(--font-mono); }
.auth-meta-row .v { color: var(--text-bright); font-weight: 600; }

@media (max-width: 480px) {
    .auth-card { padding: 30px 22px; }
    .auth-head h1 { font-size: 30px; }
}
