/* AppLock Landing Page - Uygulama ekran tasarımlarına uyumlu, light/dark tema */

/* Design tokens (uygulama ile aynı) */
:root {
  --primary: #115ea5;
  --primary-dark: #003d75;
  --accent: #007AFF;
  --background-light: #F5F7FA;
  --background-dark: #111921;
  --text-main: #0F172A;
  --text-sub: #64748B;
  --border-light: #E2E8F0;
  --key-ring: #E5E7EB;
  --container-max: 1200px;
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 10px 25px -5px rgba(17, 94, 165, 0.3);
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Light theme (varsayılan) */
  --bg-page: var(--background-light);
  --bg-card: #ffffff;
  --text: var(--text-main);
  --text-muted: var(--text-sub);
  --border: var(--border-light);
  --link: var(--primary);
  --tag-color: var(--primary);
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-border: var(--border-light);
}

[data-theme="dark"] {
  --bg-page: var(--background-dark);
  --bg-card: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.1);
  --link: rgba(255, 255, 255, 0.9);
  --tag-color: rgba(255, 255, 255, 0.8);
  --header-bg: rgba(17, 25, 33, 0.9);
  --header-border: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Material Symbols (uygulama ile aynı) */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-family: 'Material Symbols Outlined';
  user-select: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0.5rem;
}

.logo-text {
  display: inline-block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dil seçici - EN / TR */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle .lang-label {
  padding: 0.15rem 0.25rem;
  border-radius: 0.2rem;
}

.lang-toggle .lang-label.active {
  color: var(--primary);
}

/* Tema düğmesi */
.theme-toggle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: background 0.2s, transform 0.1s;
}

.theme-toggle:hover {
  background: var(--border);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  font-size: 1.25rem;
}

.theme-icon-light {
  display: block;
}

.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: block;
}

/* Buttons - uygulama butonları (rounded-full, shadow-glow) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: var(--shadow-glow);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  min-height: 3.5rem;
}

/* Dil: sadece seçili dildeki metinler görünsün */
[data-lang="tr"] [data-en],
[data-lang="en"] [data-tr] {
  display: none !important;
}

.hero-title [data-tr],
.hero-title [data-en],
.hero-summary [data-tr],
.hero-summary [data-en] {
  display: block;
}

.play-badge-en {
  display: none;
}

.play-badge-tr {
  display: block;
}

[data-lang="en"] .play-badge-en {
  display: block !important;
}

[data-lang="en"] .play-badge-tr {
  display: none !important;
}

[data-lang="tr"] .play-badge-en {
  display: none !important;
}

[data-lang="tr"] .play-badge-tr {
  display: block !important;
}

/* Hero - tek sayfa, kısa özet + 3 ekran + Play badge */
.hero {
  padding: 2.5rem 0 4rem;
  text-align: center;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-summary {
  margin: 0 auto 2.5rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* 3 ekran yan yana - referans görseldeki gibi hafif eğim ve üst üste binme */
.screens-wrap {
  margin: 0 auto 2.5rem;
  overflow: hidden;
}

.screens-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  min-height: 320px;
  padding: 1rem 0;
}

.phone-mockup {
  position: relative;
  flex-shrink: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.phone-mockup img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 160px;
}

.phone-left {
  transform: rotate(-8deg);
  z-index: 3;
  margin-right: -1.5rem;
}

.phone-center {
  transform: rotate(2deg);
  z-index: 2;
}

.phone-right {
  transform: rotate(8deg);
  z-index: 1;
  margin-left: -1.5rem;
}

@media (min-width: 640px) {
  .phone-mockup img {
    max-width: 200px;
  }

  .phone-left { margin-right: -2rem; }
  .phone-right { margin-left: -2rem; }
}

@media (min-width: 900px) {
  .phone-mockup img {
    max-width: 260px;
  }

  .phone-left { margin-right: -2.5rem; }
  .phone-right { margin-left: -2.5rem; }
}

/* Get it on Google Play - resmi rozet */
.cta-wrap {
  margin-top: 1rem;
}

.play-badge-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s, transform 0.1s;
}

.play-badge-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

.play-badge-link:active {
  transform: scale(0.98);
}

.play-badge {
  display: block;
  height: auto;
  max-width: 200px;
}

.play-badge-tr {
  max-height: 77px;
  width: auto;
}

/* Legal links (Gizlilik / Şartlar) - Google Play altında ortada */
.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.legal-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--link);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.legal-link:hover {
  text-decoration: underline;
}

.legal-sep {
  color: var(--text-muted);
  font-size: 0.875rem;
  user-select: none;
}

/* Legal sayfaları - /privacy ve /terms tam sayfa */
.legal-page {
  padding: 2.5rem 0 4rem;
  min-height: 60vh;
}

.legal-page-inner {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.legal-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  color: var(--link);
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.legal-page-back:hover {
  text-decoration: underline;
}

.legal-page-back .material-symbols-outlined {
  font-size: 1.25rem;
}

.legal-page-title {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.legal-page-body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page-body p {
  margin: 0 0 1rem;
}

.legal-page-body p:last-child {
  margin-bottom: 0;
}

.legal-page-body .legal-page-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.legal-page-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.legal-page-body h2:first-of-type {
  margin-top: 0;
}

.legal-page-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.legal-page-body h4 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.legal-page-body ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
}

.legal-page-body li {
  margin-bottom: 0.35rem;
}

.legal-page-body li:last-child {
  margin-bottom: 0;
}

.legal-page-body .legal-page-declaration {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

[data-theme="dark"] .footer {
  background: rgba(255, 255, 255, 0.03);
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
