/* ============================================================
   DefteriKebir.net — Global Stylesheet
   Muhasebe & YMM Portalı
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  --navy:        #0D1B2A;
  --navy-light:  #162234;
  --navy-mid:    #1E3045;
  --navy-border: #243650;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #A8872D;
  --teal:        #2BBBB4;
  --teal-light:  #4ECEC8;
  --red:         #E05A5A;
  --white:       #FFFFFF;
  --off-white:   #F4F6FA;
  --text-light:  #8FA3BF;
  --text-mid:    #C2D3E8;
  --text-body:   #E8EEF6;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.45);
  --shadow-gold: 0 0 40px rgba(201,168,76,0.18);

  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --container:   1200px;
  --header-h:    76px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--navy);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ─── SELECTION ─── */
::selection { background: var(--gold); color: var(--navy); }

/* ─── UTILITY ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.12); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  color: var(--white); margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 560px; line-height: 1.7;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-subtitle { margin: 0 auto; }

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

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy); box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-outline {
  border: 1.5px solid var(--navy-border);
  color: var(--text-mid); background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,168,76,0.06);
}

.btn-ghost { color: var(--gold); background: rgba(201,168,76,0.08); }
.btn-ghost:hover { background: rgba(201,168,76,0.18); }

.btn-lg { padding: 17px 34px; font-size: 1rem; }

/* ─── HEADER / NAVBAR ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.scrolled {
  border-bottom-color: var(--navy-border);
  background: rgba(13, 27, 42, 0.97);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: var(--navy);
}
.nav-logo-text {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: var(--white);
}
.nav-logo-text span { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-mid);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,0.06);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

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

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--navy);
  padding: 100px 24px 40px;
  flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 14px 16px;
  border-radius: var(--radius-md); font-size: 1.1rem; font-weight: 500;
  color: var(--text-mid); transition: var(--transition);
  border: 1px solid transparent;
}
.mobile-nav a:hover {
  color: var(--gold); border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.05);
}

/* ─── CARDS ─── */
.card {
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 32px; transition: var(--transition);
}
.card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(201,168,76,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
  border: 1px solid rgba(201,168,76,0.2);
}
.card-icon.teal {
  background: rgba(43,187,180,0.12);
  border-color: rgba(43,187,180,0.2);
}

.card h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.15rem;
  font-weight: 600; color: var(--white); margin-bottom: 10px;
}
.card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

/* ─── STATS ─── */
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ─── GRID HELPERS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── DIVIDER ─── */
.divider {
  height: 1px; background: var(--navy-border);
  margin: 0; border: none;
}

/* ─── GLOW LINES ─── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { color: var(--navy-border); }
.breadcrumb span.current { color: var(--text-mid); }

/* ─── PAGE HERO ─── */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 64px;
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--navy-border);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.9rem; color: var(--text-light);
  margin-top: 12px; margin-bottom: 24px;
  line-height: 1.7; max-width: 280px;
}
.footer h4 {
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.95rem; color: var(--white); margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  font-size: 0.88rem; color: var(--text-light);
  transition: var(--transition);
}
.footer ul li a:hover { color: var(--gold); padding-left: 4px; }

.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--navy-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.83rem; color: var(--text-light); }
.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--gold); }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy-border); display: flex;
  align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy); }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 500;
  color: var(--text-mid); margin-bottom: 8px;
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--navy-mid); border: 1.5px solid var(--navy-border);
  border-radius: var(--radius-md); color: var(--white);
  font-family: inherit; font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--navy-light); border: 1px solid rgba(43,187,180,0.3);
  border-radius: var(--radius-md); padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  color: var(--teal); font-weight: 500; font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transform: translateY(100px); opacity: 0;
  transition: var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
}
