﻿/* Bu sitenin tüm hakları Coreon’a aittir. İzinsiz kopyalanamaz ve kullanılamaz. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../assets/fonts/outfit/outfit-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../assets/fonts/outfit/outfit-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #07090F;
  --bg-2: #0B1120;
  --surface: #101828;
  --surface-2: #151F33;
  --surface-3: #1B2740;
  --line: #1F2A40;
  --line-2: #2A3752;
  --gold: #D4AF37;
  --gold-2: #E5C058;
  --gold-3: #F3DE9A;
  --gold-deep: #A8832A;
  --gold-grad: linear-gradient(135deg, #BF953F 0%, #FCF6BA 32%, #B38728 58%, #FBF5B7 82%, #AA771C 100%);
  --gold-soft: rgba(212, 175, 55, 0.12);
  --text: #FFFFFF;
  --text-2: #C9CED8;
  --muted: #8C95A6;
  --up: #2FD178;
  --down: #FF5C61;
  --info: #5BA8FF;
  --warn: #F5B841;
  --up-soft: rgba(47, 209, 120, 0.12);
  --down-soft: rgba(255, 92, 97, 0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius: 12px;
  --control-height: 48px;
  --gutter: 20px;
  --app-width: 480px;
  --tabbar-height: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

code,
kbd,
pre,
samp {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

.app {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  background: #05070C;
}

.app-frame {
  position: relative;
  width: 100%;
  max-width: var(--app-width);
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, #16233F 0%, rgba(7, 9, 15, 0) 60%);
}

.views {
  position: absolute;
  inset: 0;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: var(--bg);
  background-image: radial-gradient(120% 50% at 50% -10%, #142039 0%, rgba(7, 9, 15, 0) 55%);
  will-change: transform;
}

.screen.with-tabbar {
  padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 28px);
}

.screen.plain {
  padding-bottom: calc(var(--safe-bottom) + 24px);
}

.screen.top-safe {
  padding-top: calc(var(--safe-top) + 16px);
}

.pad {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.stack > * + * {
  margin-top: 16px;
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2,
.section-head h3 {
  font-size: 18px;
  font-weight: 600;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.tiny {
  font-size: 12px;
}

.gold-text {
  color: var(--gold-2);
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

.center {
  text-align: center;
}

.nums {
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: calc(var(--safe-top) + 8px) 12px 8px;
  min-height: calc(var(--safe-top) + 60px);
  background: rgba(7, 9, 15, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.appbar.scrolled {
  border-bottom-color: var(--line);
}

.appbar h1 {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appbar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 22px;
  line-height: normal;
}

.appbar-btn:active {
  background: var(--surface-2);
}

.appbar-spacer {
  width: 44px;
  height: 44px;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: calc(var(--tabbar-height) + var(--safe-bottom));
  padding: 0 6px var(--safe-bottom);
  background: rgba(9, 13, 24, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.tabbar.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--tabbar-height);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: normal;
  transition: color 0.2s var(--ease);
}

.tab i {
  font-size: 23px;
  line-height: 1;
}

.tab.active {
  color: var(--gold-2);
}

.tab .badge-dot {
  position: absolute;
  top: 10px;
  left: calc(50% + 8px);
}

.tab-center {
  justify-content: flex-end;
  padding-bottom: 9px;
}

.tab-diamond {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: var(--radius-md);
  background: var(--gold-grad);
  transform: rotate(45deg);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35), 0 0 0 5px var(--bg);
  transition: transform 0.2s var(--ease);
}

.tab-center .tab-icon {
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -13px;
  color: #17120A;
  font-size: 26px;
  line-height: 1;
}

.tab-center:active .tab-diamond {
  transform: rotate(45deg) scale(0.92);
}

.tab-center.active span {
  color: var(--gold-2);
}

.enter-forward {
  animation: enterForward 0.36s var(--ease-out) both;
  z-index: 3;
}

.leave-forward {
  animation: leaveForward 0.36s var(--ease-out) both;
  z-index: 1;
}

.enter-back {
  animation: enterBack 0.34s var(--ease-out) both;
  z-index: 1;
}

.leave-back {
  animation: leaveBack 0.34s var(--ease-out) both;
  z-index: 3;
}

.enter-fade {
  animation: enterFade 0.26s var(--ease) both;
  z-index: 3;
}

.leave-fade {
  animation: leaveFade 0.2s var(--ease) both;
  z-index: 1;
}

.enter-up {
  animation: enterUp 0.4s var(--ease-out) both;
  z-index: 3;
}

.leave-up {
  animation: leaveFade 0.4s var(--ease) both;
  z-index: 1;
}

.leave-swipe {
  animation: leaveSwipe 0.24s var(--ease-out) both;
  z-index: 3;
}

@keyframes enterForward {
  from { transform: translateX(100%); box-shadow: -12px 0 32px rgba(0, 0, 0, 0.5); }
  to { transform: translateX(0); box-shadow: -12px 0 32px rgba(0, 0, 0, 0); }
}

@keyframes leaveForward {
  from { transform: translateX(0); filter: brightness(1); }
  to { transform: translateX(-28%); filter: brightness(0.55); }
}

@keyframes enterBack {
  from { transform: translateX(-28%); filter: brightness(0.55); }
  to { transform: translateX(0); filter: brightness(1); }
}

@keyframes leaveBack {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes leaveSwipe {
  from { transform: translateX(var(--swipe-x, 0px)); }
  to { transform: translateX(100%); }
}

@keyframes enterFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes leaveFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes enterUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 520px) {
  .app-frame {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}
