/* Premium Modern Design System */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --border: #e2e8f0;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary) !important;
  letter-spacing: -0.025em;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.938rem;
  transition: color 0.15s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

/* Navbar toggler (hamburger) - mobilde görünür olsun */
.navbar-toggler {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  z-index: 1030;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.35);
}
.navbar-toggler-icon {
  width: 1.25em;
  height: 1.25em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f172a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Container */
.container {
  max-width: 1200px;
}

/* Buttons */
.btn {
  border-radius: var(--radius-sm);
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  font-size: 0.938rem;
  transition: all 0.15s ease;
  border: none;
  line-height: 1.5;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-outline-secondary {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 1.5rem;
}

.card-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.938rem;
  color: var(--text-primary);
}

/* Forms */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.625rem 0.875rem;
  transition: all 0.15s ease;
  font-size: 0.938rem;
  color: var(--text-primary);
  background: var(--bg);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.form-control-lg {
  padding: 0.875rem 1rem;
  font-size: 1rem;
}

.form-control-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.form-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.input-group-text {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text-secondary);
}

/* Table */
.table {
  font-size: 0.938rem;
}

.table thead {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border);
}

.table thead th {
  border: none;
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.813rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-color: var(--border);
  color: var(--text-primary);
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: var(--bg-secondary);
}

/* Badges */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-danger {
  background-color: var(--danger) !important;
}

.bg-light {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

.text-dark {
  color: var(--text-primary) !important;
}

/* Alerts */
.alert {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 1rem 1.25rem;
  font-size: 0.938rem;
}

.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* Hero */
.hero-section {
  background: var(--primary);
  color: white;
  padding: 6rem 0;
  margin: -2rem -1rem 4rem -1rem;
}

.hero-section h1 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Admin Header */
.admin-header {
  background: var(--primary);
  color: white;
  padding: 2.5rem 0;
  margin: -2rem -1rem 3rem -1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h1 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-header p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

/* Auth Pages */
.auth-card {
  max-width: 460px;
  margin: 4rem auto;
}

.auth-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.auth-icon i {
  font-size: 1.75rem;
  color: white;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-card h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.938rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Stats Cards */
.stats-card {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.stats-card h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.stats-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Admin Cards */
.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  background: var(--bg);
}

.admin-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.admin-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-card-icon i {
  font-size: 1.5rem;
  color: white;
}

.admin-card h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.admin-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5rem;
  padding: 3.5rem 0 0;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

.footer-contact li i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
  text-align: center;
}

.footer h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer p, .footer a {
  font-size: 0.875rem;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* Dropdown */
.dropdown-menu {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  border-radius: 6px;
  padding: 0.5rem 0.875rem;
  font-size: 0.938rem;
  transition: background-color 0.15s ease;
  color: var(--text-primary);
}

.dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.dropdown-item i {
  width: 18px;
}

/* Utilities */
.text-muted {
  color: var(--text-secondary) !important;
}

.text-primary {
  color: var(--accent) !important;
}

.bg-dark {
  background-color: var(--primary) !important;
}

/* Product Grid */
.product-image {
  height: 240px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.product-image:hover {
  opacity: 0.9;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Spacing */
.mb-6 { margin-bottom: 4rem; }
.mt-6 { margin-top: 4rem; }
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }

/* Transitions */
a, button, .card, .btn {
  transition: all 0.15s ease;
}

/* Selection */
::selection {
  background-color: var(--accent);
  color: white;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Loading States */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .admin-header {
    padding: 2rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Checkout */
.checkout-page {
  margin-bottom: 3rem;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.checkout-steps .step {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: #f9fafb;
}

.checkout-steps .step.done {
  background: #eef2f7;
  color: #334155;
}

.checkout-steps .step.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.checkout-form .checkout-section,
.checkout-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.checkout-panel {
  display: none;
}

.checkout-panel.active {
  display: block;
}

.checkout-subsection {
  border-top: 1px solid #eef2f7;
  padding-top: 1rem;
}

.section-title {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.6rem;
}

.section-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.choice-list {
  display: grid;
  gap: 0.65rem;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  cursor: pointer;
}

.choice-item--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.choice-item--disabled * {
  cursor: not-allowed !important;
}

.choice-item span {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.choice-item small {
  color: var(--text-secondary);
}

.choice-item i {
  color: #6b7280;
  font-size: 1.2rem;
}

.terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.pdf-link {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.pdf-link:hover {
  color: var(--text-primary);
}

.legal-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafafa;
  padding: 0.85rem;
  color: #374151;
  font-size: 0.83rem;
  line-height: 1.5;
}

.legal-box--tall {
  max-height: 170px;
  overflow-y: auto;
}

.legal-box--pdf {
  padding: 0;
  height: 320px;
  overflow: hidden;
}

.legal-box--pdf iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.legal-text-content p {
  margin-bottom: 0.65rem;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #fff8db;
  font-size: 0.84rem;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.15rem;
}

.consent-row--highlight {
  background: #fff1bf;
  border: 1px solid #ffd86b;
}

.order-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.order-items-list li {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
}

.order-items-list li small {
  color: var(--text-secondary);
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-actions .btn {
  min-width: 140px;
}

@media (max-width: 991px) {
  .checkout-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-actions {
    flex-wrap: wrap;
  }

  .checkout-actions .btn {
    flex: 1;
  }
}
