/* ============================================
   Yeni Pro CV — Global Styles
   ============================================ */

:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --bg: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --radius-sm: 6px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --transition: 0.15s ease;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --primary: #2dd4bf;
  --primary-hover: #5eead4;
  --primary-light: #134e4a;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.hidden { display: none !important; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius-sm); transition: all var(--transition);
  white-space: nowrap; min-height: 40px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text); border: 1px solid var(--border); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text); text-decoration: none; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; min-height: 34px; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-lg { padding: 0.75rem 1.4rem; font-size: 1rem; min-height: 48px; }
.btn-icon {
  width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm);
}
.btn-icon.btn-sm { width: 28px; height: 28px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.site-header {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container, .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}
.logo-icon svg { width: 100%; height: 100%; display: block; }
.logo-icon-sm { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--text-muted);
}
.theme-toggle:hover { background: var(--bg-tertiary); color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; }

.hero { padding: var(--space-8) 0 calc(var(--space-8) + 1rem); text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; margin: 0 0 1rem; line-height: 1.15;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.privacy-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-muted);
}
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2rem 0 1.25rem;
}
.section-title h2 { margin: 0; font-size: 1.35rem; }
.resume-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 1rem; opacity: 0.5; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }

.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg); min-width: 260px;
}
.site-footer {
  padding: var(--space-8) 0; text-align: center;
  color: var(--text-muted); font-size: 0.875rem; margin-top: auto;
}

@media (max-width: 768px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
  .resume-grid { grid-template-columns: 1fr; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Mobile: compact icons site-wide */
@media (max-width: 900px) {
  .logo-icon { width: 28px !important; height: 28px !important; border-radius: 8px; }
  .logo-icon-sm { width: 24px !important; height: 24px !important; border-radius: 6px; }
  .logo { font-size: 1.05rem; gap: 0.4rem; }
  .logo-icon svg, .logo-icon-sm svg { width: 100% !important; height: 100% !important; }

  .theme-toggle {
    width: 36px !important; height: 36px !important;
    min-width: 36px; min-height: 36px;
  }
  .theme-toggle svg {
    width: 18px !important; height: 18px !important;
    max-width: 18px; max-height: 18px;
  }

  .btn-icon {
    width: 36px !important; height: 36px !important;
    min-width: 36px; min-height: 36px; padding: 0;
  }
  .btn-icon.btn-sm {
    width: 32px !important; height: 32px !important;
    min-width: 32px; min-height: 32px;
  }
  .btn-icon svg, .btn svg {
    width: 18px !important; height: 18px !important;
    max-width: 18px !important; max-height: 18px !important;
    flex-shrink: 0;
  }
  .btn-sm svg { width: 16px !important; height: 16px !important; }

  .empty-state svg { width: 40px !important; height: 40px !important; }
  .header-inner, .site-header .container { height: 52px; }
  .splash-logo { width: 64px !important; height: 64px !important; }
  .splash-logo-wrap { width: 84px; height: 84px; }
}

@media (max-width: 480px) {
  .logo-icon { width: 26px !important; height: 26px !important; }
  .logo-icon-sm { width: 22px !important; height: 22px !important; }
  .theme-toggle { width: 34px !important; height: 34px !important; }
  .theme-toggle svg { width: 16px !important; height: 16px !important; }
  .empty-state svg { width: 36px !important; height: 36px !important; }
  .splash-logo { width: 56px !important; height: 56px !important; }
  .btn-icon { width: 34px !important; height: 34px !important; }
  .btn-icon svg, .btn svg { width: 16px !important; height: 16px !important; }
}

/* Cinematic splash */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #0a0a0f;
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash.splash-out { opacity: 0; transform: scale(1.04); }
.splash-bg {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.4), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(4, 120, 87, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(13, 148, 136, 0.18), transparent 45%),
    #0a0a0f;
}
.splash-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.55; animation: orbFloat 6s ease-in-out infinite;
}
.splash-orb-1 { width: 280px; height: 280px; background: #0d9488; top: -10%; left: 15%; }
.splash-orb-2 { width: 220px; height: 220px; background: #047857; bottom: 5%; right: 10%; animation-delay: -2s; }
.splash-orb-3 { width: 160px; height: 160px; background: #14b8a6; top: 40%; left: 55%; opacity: 0.3; animation-delay: -4s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
.splash-particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  left: calc(12% + var(--i) * 11%); top: 100%;
  animation: particleRise 4.5s ease-in infinite;
  animation-delay: calc(var(--i) * 0.45s);
}
@keyframes particleRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-100vh) scale(1.2); opacity: 0; }
}
.splash-content { position: relative; text-align: center; padding: 2rem; z-index: 1; }
.splash-logo-wrap {
  position: relative; width: 100px; height: 100px; margin: 0 auto 1.75rem;
  animation: logoEnter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.splash-ring {
  position: absolute; inset: -8px; border-radius: 28px;
  border: 2px solid transparent;
  background: linear-gradient(#0a0a0f, #0a0a0f) padding-box,
    linear-gradient(135deg, #0d9488, #047857, #14b8a6, #0d9488) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: ringSpin 3s linear infinite; opacity: 0.85;
}
@keyframes ringSpin {
  0% { background-position: 0 0, 0% 50%; transform: rotate(0deg); }
  100% { background-position: 0 0, 100% 50%; transform: rotate(360deg); }
}
.splash-logo {
  position: relative; width: 80px; height: 80px; margin: 10px;
  filter: drop-shadow(0 8px 28px rgba(13, 148, 136, 0.55));
  animation: logoPulse 2.2s ease-in-out infinite;
}
.splash-logo svg { width: 100%; height: 100%; display: block; border-radius: 16px; }
@keyframes logoEnter {
  from { opacity: 0; transform: scale(0.5) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.splash-title {
  margin: 0 0 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  background: linear-gradient(90deg, #fff 0%, #99f6e4 40%, #5eead4 70%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: titleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both, titleShimmer 4s linear 1.2s infinite;
}
@keyframes titleIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes titleShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.splash-tagline {
  margin: 0 0 1.75rem; font-size: 1.05rem; color: rgba(255,255,255,0.65);
  animation: fadeUp 0.8s ease 0.45s both;
}
.splash-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 50px; padding: 0.8rem 2.25rem;
  font-size: 1rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #0d9488, #047857);
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.45);
  animation: fadeUp 0.8s ease 0.6s both;
}
.splash-btn-text { position: relative; z-index: 1; }
.splash-btn-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 2.8s ease-in-out infinite 1.5s;
}
@keyframes btnShine {
  0%, 40% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}
.splash-btn:hover { transform: translateY(-3px) scale(1.03); }
.splash-progress {
  width: min(200px, 50vw); height: 3px; margin: 1.5rem auto 0;
  background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden;
}
.splash-progress-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #0d9488, #047857, #14b8a6);
  animation: progressFill 5s linear both;
}
@keyframes progressFill { from { width: 0%; } to { width: 100%; } }
.splash-hint {
  margin: 1rem 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
body.splash-active { overflow: hidden; }
