/* ===================================================
   Dual Life Studios — Design Tokens
   Palette: deep ink navy + warm amber + cool teal
   Display: Space Grotesk / Body: Inter / Mono: JetBrains Mono
   =================================================== */
:root{
  --bg:        #0A0A0F;
  --surface:   #15131E;
  --surface-2: #1C1927;
  --border:    #2B2738;
  --text:      #F2F0F7;
  --text-muted:#9691A6;
  --accent:    #9D5CF9;   /* logodan: mor */
  --accent-2:  #F0B84D;   /* logodan: altın/amber */
  --danger:    #F87171;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --container: 1160px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* subtle grid texture on the base background, evokes system architecture */
body{
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  background-attachment: fixed;
  background-color: var(--bg);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(157,92,249,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(240,184,77,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at top, rgba(10,10,15,0) 0%, var(--bg) 75%);
  pointer-events:none;
  z-index:-1;
}

a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
p{margin:0 0 1em;color:var(--text-muted);}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.brand-accent{color:var(--accent);}

.eyebrow{
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent-2);
  display:inline-flex;
  align-items:center;
  gap:.5em;
  margin-bottom:1em;
}
.eyebrow::before{
  content:"";
  width:8px;height:8px;
  background:var(--accent-2);
  border-radius:50%;
  display:inline-block;
}

/* ================= HEADER ================= */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(11,18,32,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:72px;
}
.brand{
  display:flex;align-items:center;gap:.6rem;
  font-family:var(--font-display);
  font-weight:700;font-size:1.15rem;
}
.main-nav{display:flex;align-items:center;gap:2rem;}
.main-nav a{
  font-size:.92rem;color:var(--text-muted);
  padding:.4rem 0;position:relative;
  transition:color .2s ease;
}
.main-nav a:hover, .main-nav a.active{color:var(--text);}
.main-nav a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;
  height:2px;background:var(--accent);
}
.nav-cta{
  background:var(--accent);color:var(--bg) !important;
  padding:.55rem 1.1rem !important;border-radius:8px;
  font-weight:600;
}
.nav-cta::after{display:none !important;}
.nav-cta:hover{opacity:.9;}

.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:8px;}
.nav-toggle span{width:22px;height:2px;background:var(--text);}

.brand-mark-img{
  width:32px;height:32px;object-fit:cover;border-radius:8px;
  border:1px solid var(--border);
}

.btn-sm{padding:.5rem 1rem;font-size:.85rem;}

.auth-area{display:flex;align-items:center;gap:.75rem;margin-left:1rem;}
.nav-auth-mobile{display:none;}

/* ---- Notifications ---- */
.notif-wrap{position:relative;}
.notif-bell{
  position:relative;background:var(--surface);border:1px solid var(--border);
  width:40px;height:40px;border-radius:10px;color:var(--text-muted);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:border-color .2s ease, color .2s ease;
}
.notif-bell:hover{border-color:var(--accent);color:var(--text);}
.notif-badge{
  position:absolute;top:-6px;right:-6px;
  background:var(--accent-2);color:var(--bg);
  font-size:.65rem;font-weight:700;font-family:var(--font-mono);
  min-width:18px;height:18px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;padding:0 4px;
}
.nav-badge{
  background:var(--accent-2);color:var(--bg);font-size:.65rem;font-weight:700;
  border-radius:8px;padding:.1rem .4rem;margin-left:.35rem;font-family:var(--font-mono);
}
.notif-dropdown{
  position:absolute;top:calc(100% + 12px);right:0;width:320px;
  background:var(--surface);border:1px solid var(--border);border-radius:12px;
  box-shadow:0 20px 40px -20px rgba(0,0,0,0.6);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index:100;overflow:hidden;
}
.notif-dropdown.open{opacity:1;visibility:visible;transform:translateY(0);}
.notif-dropdown-head{
  display:flex;justify-content:space-between;align-items:center;
  padding:1rem 1.1rem;border-bottom:1px solid var(--border);
  font-size:.85rem;font-weight:600;
}
.notif-dropdown-head a{font-size:.78rem;font-weight:500;color:var(--accent-2);}
.notif-empty{padding:1.5rem 1.1rem;font-size:.85rem;color:var(--text-muted);}
.notif-item{
  display:flex;flex-direction:column;gap:.15rem;
  padding:.85rem 1.1rem;border-bottom:1px solid var(--border);
  font-size:.85rem;
}
.notif-item:last-child{border-bottom:none;}
.notif-item:hover{background:var(--surface-2);}
.notif-item.unread{background:rgba(157,92,249,0.06);}
.notif-item-title{color:var(--text);font-weight:600;}
.notif-item-msg{color:var(--text-muted);font-size:.78rem;}

/* ---- User menu ---- */
.user-menu-wrap{position:relative;}
.user-avatar{
  width:40px;height:40px;border-radius:10px;
  background:linear-gradient(135deg, var(--accent), #6D28D9);
  color:#fff;font-family:var(--font-display);font-weight:700;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-size:.95rem;
}
.user-menu-btn{background:none;border:none;padding:0;cursor:pointer;}
.user-dropdown{
  position:absolute;top:calc(100% + 12px);right:0;width:200px;
  background:var(--surface);border:1px solid var(--border);border-radius:12px;
  box-shadow:0 20px 40px -20px rgba(0,0,0,0.6);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index:100;overflow:hidden;
}
.user-dropdown.open{opacity:1;visibility:visible;transform:translateY(0);}
.user-dropdown-name{padding:.9rem 1.1rem .6rem;font-size:.85rem;font-weight:600;border-bottom:1px solid var(--border);}
.user-dropdown a{display:block;padding:.75rem 1.1rem;font-size:.85rem;color:var(--text-muted);}
.user-dropdown a:hover{background:var(--surface-2);color:var(--text);}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.85rem 1.6rem;border-radius:8px;
  font-weight:600;font-size:.95rem;
  border:1px solid transparent;
  cursor:pointer;transition:transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, opacity .2s ease, border-color .2s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:linear-gradient(135deg, var(--accent), #7C3AED);color:#fff;box-shadow:0 8px 24px -8px rgba(157,92,249,0.55);}
.btn-primary:hover{box-shadow:0 12px 28px -8px rgba(157,92,249,0.7);}
.btn-gold{background:linear-gradient(135deg, var(--accent-2), #D99C2E);color:var(--bg);box-shadow:0 8px 24px -8px rgba(240,184,77,0.5);}
.btn-gold:hover{box-shadow:0 12px 28px -8px rgba(240,184,77,0.65);}
.btn-outline{border-color:var(--border);color:var(--text);}
.btn-outline:hover{border-color:var(--accent);background:rgba(157,92,249,0.06);}

/* ================= HERO ================= */
.hero{
  padding:7rem 0 5rem;
  position:relative;
}
.hero-grid{
  display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;
}
.hero h1{
  font-size:clamp(2.2rem, 4vw, 3.4rem);
  color:var(--text);
}
.hero .lede{
  font-size:1.1rem;max-width:44ch;
}
.hero-actions{display:flex;gap:1rem;margin-top:2rem;flex-wrap:wrap;}

/* Signature: architecture/node diagram illustrating system connections */
.node-diagram{
  aspect-ratio:1/1;position:relative;
}
.node-diagram svg{width:100%;height:100%;}
.node-diagram .pulse{
  animation:pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{opacity:.4;}
  50%{opacity:1;}
}

/* ================= SECTIONS ================= */
section{padding:5rem 0;}
.section-head{max-width:640px;margin-bottom:3rem;}
.section-head h2{font-size:clamp(1.6rem, 2.6vw, 2.2rem);}

/* ================= CARDS / GRID ================= */
.grid{display:grid;gap:1.5rem;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:2rem;
  transition:border-color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.card:hover{
  border-color:rgba(157,92,249,0.5);
  transform:translateY(-4px);
  box-shadow:0 16px 32px -16px rgba(157,92,249,0.35);
}

.tag-code{
  font-family:var(--font-mono);
  font-size:.72rem;letter-spacing:.08em;
  color:var(--accent);
  background:rgba(232,163,61,0.1);
  border:1px solid rgba(232,163,61,0.3);
  padding:.25rem .6rem;border-radius:5px;
  display:inline-block;margin-bottom:1rem;
}

.card h3{font-size:1.15rem;color:var(--text);margin-bottom:.5rem;}
.card p{margin-bottom:0;font-size:.95rem;}

/* stat strip */
.stat-strip{
  display:grid;grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:2.5rem 0;
}
.stat{text-align:left;padding:0 1.5rem;border-left:1px solid var(--border);}
.stat:first-child{border-left:none;padding-left:0;}
.stat .num{
  font-family:var(--font-display);font-size:2.2rem;font-weight:700;
  color:var(--accent);display:block;
}
.stat .label{font-size:.85rem;color:var(--text-muted);}

/* ================= CTA BAND ================= */
.cta-band{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:3.5rem;
  text-align:center;
  margin:0 auto;
}
.cta-band h2{font-size:clamp(1.5rem,3vw,2rem);}

/* ================= FORMS ================= */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;}
.form-group{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1.25rem;}
.form-group.full{grid-column:1/-1;}
label{font-size:.85rem;color:var(--text-muted);}
input, textarea, select{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  padding:.75rem .9rem;
  color:var(--text);
  font-family:var(--font-body);
  font-size:.95rem;
}
input:focus, textarea:focus, select:focus{
  outline:2px solid var(--accent-2);outline-offset:1px;border-color:var(--accent-2);
}
textarea{resize:vertical;min-height:140px;}

.alert{
  padding:1rem 1.25rem;border-radius:8px;font-size:.9rem;margin-bottom:1.5rem;
}
.alert-success{background:rgba(79,209,197,0.1);border:1px solid rgba(79,209,197,0.35);color:var(--accent-2);}
.alert-error{background:rgba(248,113,113,0.1);border:1px solid rgba(248,113,113,0.35);color:var(--danger);}

/* ================= FOOTER ================= */
.site-footer{border-top:1px solid var(--border);padding:4rem 0 2rem;margin-top:3rem;}
.footer-inner{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem;margin-bottom:2.5rem;}
.footer-brand p{margin-top:.5rem;font-size:.9rem;}
.footer-heading{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);display:block;margin-bottom:1rem;}
.footer-col{display:flex;flex-direction:column;gap:.6rem;}
.footer-col a{font-size:.9rem;color:var(--text-muted);}
.footer-col a:hover{color:var(--accent-2);}
.footer-bottom{
  border-top:1px solid var(--border);padding-top:1.5rem;
  font-size:.8rem;color:var(--text-muted);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;
}
.footer-credit{color:var(--text-muted);}
.footer-credit-link{color:var(--accent-2);font-weight:600;text-decoration:none;}
.footer-credit-link:hover{text-decoration:underline;}
@media (max-width:600px){.footer-bottom{flex-direction:column;}}

/* ================= RESPONSIVE ================= */
@media (max-width: 860px){
  .hero-grid{grid-template-columns:1fr;}
  .grid-3, .grid-2{grid-template-columns:1fr;}
  .stat-strip{grid-template-columns:1fr 1fr;row-gap:1.5rem;}
  .stat{border-left:none;padding-left:0;}
  .footer-inner{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .main-nav{
    position:fixed;top:72px;left:0;right:0;bottom:0;
    background:var(--bg);flex-direction:column;justify-content:flex-start;
    padding:2rem;gap:1.5rem;
    transform:translateX(100%);transition:transform .25s ease;
  }
  .main-nav.open{transform:translateX(0);}
  .nav-toggle{display:flex;}
  .auth-area{display:none;}
  .nav-auth-mobile{
    display:flex;flex-direction:column;gap:1rem;
    margin-top:1rem;padding-top:1.5rem;border-top:1px solid var(--border);
  }
  .nav-auth-mobile a{color:var(--text-muted);}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important;transition-duration:0.01ms !important;}
}

:focus-visible{outline:2px solid var(--accent-2);outline-offset:2px;}

/* ================= YILDIZ PUANLAMA ================= */
.star-rating-block{
  margin-top:1.1rem;padding-top:1.1rem;border-top:1px solid var(--border);
}
.star-rating-avg{display:flex;align-items:center;gap:.15rem;margin-bottom:.6rem;}
.star-rating-count{font-size:.75rem;color:var(--text-muted);margin-left:.5rem;}
.star-rating-form{display:flex;gap:.2rem;}
.star-btn{
  background:none;border:none;padding:.15rem;cursor:pointer;line-height:0;
  transition:transform .15s ease;
}
.star-btn:hover{transform:scale(1.2);}
.star-rating-login{font-size:.8rem;color:var(--accent-2);}

/* ================= REKLAM ALANLARI ================= */
.ad-label{
  display:block;font-family:var(--font-mono);font-size:.62rem;
  letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);
  text-align:center;margin-bottom:.4rem;
}

/* Sol sabit reklam (geniş ekranlarda) */
.fixed-ad-left{
  position:fixed;left:16px;top:50%;transform:translateY(-50%);
  z-index:30;background:var(--surface);border:1px solid var(--border);
  border-radius:12px;padding:.75rem;display:none;
}
@media (min-width:1500px){
  .fixed-ad-left{display:block;}
  body{padding-left:200px;}
}

/* Giriş popup reklamı */
.ad-popup-overlay{
  position:fixed;inset:0;z-index:200;
  background:rgba(10,10,15,0.75);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transition:opacity .25s ease, visibility .25s ease;
  padding:1rem;
}
.ad-popup-overlay.open{opacity:1;visibility:visible;}
.ad-popup{
  position:relative;background:var(--surface);border:1px solid var(--border);
  border-radius:16px;padding:2rem 1.5rem 1.5rem;
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.7);
  max-width:100%;
}
.ad-popup-close{
  position:absolute;top:.6rem;right:.6rem;
  width:32px;height:32px;border-radius:50%;
  background:var(--surface-2);border:1px solid var(--border);color:var(--text);
  font-size:1.3rem;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s ease, border-color .2s ease;
}
.ad-popup-close:hover{background:var(--danger);border-color:var(--danger);color:#fff;}
