/* ==============================================================================
   ZamanMaliyeti - Apple iPhone (iOS / SF Pro) Typography & Design
   ============================================================================== */

@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand-color: #10b981;
  --brand-hover: #059669;
  --brand-light: #ecfdf5;
  --card-border-light: rgba(226, 232, 240, 0.8);
  --card-border-dark: rgba(30, 41, 59, 0.8);
  --bg-dark: #000000; /* iPhone True Black OLED */
  --surface-dark: #121212;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.015em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-sans);
  letter-spacing: -0.035em;
  font-weight: 700;
}

[data-bs-theme="dark"] body {
  background-color: var(--bg-dark);
  color: #f8fafc;
}

[data-bs-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

/* Navbar */
.navbar-custom {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border-light);
  transition: background-color 0.2s ease;
}

[data-bs-theme="dark"] .navbar-custom {
  background-color: rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .navbar-custom {
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -1px rgba(16, 185, 129, 0.25);
  transition: transform 0.2s ease;
}

.brand-badge:hover {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--bs-body-color);
  display: inline-flex;
  align-items: center;
}

.brand-title .text-accent {
  color: var(--brand-color);
  font-weight: 700;
}

/* Nav Links */
.nav-link-custom {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.5rem 0.85rem !important;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.08);
}

/* Cards */
.card-custom {
  border-radius: 1.25rem;
  border: 1px solid var(--card-border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .card-custom {
  background-color: var(--surface-dark);
  border-color: var(--card-border-dark);
}

[data-bs-theme="light"] .card-custom {
  background-color: #ffffff;
  border-color: rgba(226, 232, 240, 0.85);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
}

/* Time Display Hero Card */
.time-hero-card {
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #0f172a 0%, #064e3b 100%);
  color: #ffffff;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  filter: blur(40px);
}

.time-number {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #ffffff;
}

.time-unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: #34d399;
}

/* Buttons */
.btn-brand {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
}

.btn-brand:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Form Controls */
.form-control-custom {
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--card-border-light);
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .form-control-custom {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: var(--card-border-dark);
  color: #f8fafc;
}

.form-control-custom:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background-color: transparent;
}

/* ==============================================================================
   REKLAM ALANLARI (ADVERTISEMENT ZONES)
   ============================================================================== */
.ad-slot {
  margin: 1.5rem auto;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background-color: rgba(148, 163, 184, 0.04);
  padding: 0.75rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .ad-slot {
  border-color: rgba(51, 65, 85, 0.7);
  background-color: rgba(15, 23, 42, 0.3);
}

.ad-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.ad-leaderboard {
  max-width: 728px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-incontent {
  max-width: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-placeholder-text {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border-light);
  z-index: 1050;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

[data-bs-theme="dark"] .mobile-nav {
  background-color: rgba(11, 15, 25, 0.92);
  border-top-color: var(--card-border-dark);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.mobile-nav-item i {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--brand-color);
}

@media (max-width: 991.98px) {
  .mobile-nav {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
}

/* Preset badge buttons */
.preset-btn {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--card-border-light);
  background-color: #f1f5f9;
  color: #334155;
  transition: all 0.15s ease;
}

[data-bs-theme="dark"] .preset-btn {
  background-color: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.preset-btn:hover {
  background-color: #e2e8f0;
}

[data-bs-theme="dark"] .preset-btn:hover {
  background-color: #334155;
}

/* Social Media Share Preview Card in Modal */
.share-preview-card {
  background: linear-gradient(145deg, #0f172a 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.share-preview-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  filter: blur(30px);
}

/* TikTok / Story 9:16 Preview Card */
.share-preview-card.tiktok-preview {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto 1.25rem auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, #000000 0%, #041d15 40%, #022c22 70%, #000000 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
}
