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

:root {
  --primary: #7a1a2e;
  --primary-dark: #5d1323;
  --primary-light: #9d2a3f;
  --text: #1a1a1a;
  --text-light: #5a5a5a;
  --text-lighter: #8a8a8a;
  --bg: #fefefe;
  --bg-light: #fafafa;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --gradient: linear-gradient(135deg, #7a1a2e 0%, #8b2d42 100%);
  --gradient-soft: linear-gradient(135deg, rgba(122, 26, 46, 0.05) 0%, rgba(139, 45, 66, 0.05) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.page-root {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 240, 243, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(122, 26, 46, 0.12);
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.brand-logo {
  width: 170px;
  height: 56px;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 0.35rem 0.75rem;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.section {
  padding: 5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-alt {
  background-color: var(--bg-light);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
  padding-top: 2rem;
  background: linear-gradient(180deg, rgba(122, 26, 46, 0.035) 0%, rgba(122, 26, 46, 0.012) 100%);
  border: 1px solid rgba(122, 26, 46, 0.08);
  border-radius: 24px;
  margin-top: 1.25rem;
}

#restaurant-management {
  background: linear-gradient(180deg, rgba(122, 26, 46, 0.02) 0%, rgba(122, 26, 46, 0.055) 100%);
  border: 1px solid rgba(122, 26, 46, 0.1);
  border-radius: 24px;
  margin-top: 1.5rem;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

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

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 0.5rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2.25rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.1px;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-ghost {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--bg-light);
  transform: translateY(-1px);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.hero-list {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-light);
  list-style: disc;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.hero-list li + li {
  margin-top: 0.25rem;
}

.hero-panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.panel {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(122, 26, 46, 0.2);
}

.panel-header {
  padding: 1rem 1.25rem;
  background: var(--gradient);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.panel-body {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.panel-label {
  color: var(--text-light);
}

.panel-value {
  font-weight: 600;
  color: var(--text);
}

.panel-menu {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

.panel-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.menu-name {
  font-weight: 600;
  color: var(--text);
}

.menu-meta {
  font-size: 0.75rem;
  color: var(--text-lighter);
}

.menu-price {
  font-weight: 600;
  color: var(--primary);
}

.menu-edit-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-light);
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.menu-edit-btn:hover {
  background: white;
  border-color: var(--primary);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.75;
}

.section-split {
  padding-top: 2rem;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(122, 26, 46, 0.12);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 700;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  background: white;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-top: 0.25rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

.admin-login {
  max-width: 520px;
  margin: 24px auto 28px auto;
  padding: 12px 10px 10px 10px;
}

.admin-error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #b3261e;
}

.hidden {
  display: none !important;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  font-weight: 600;
  color: var(--text);
}

.status {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
}

.status-active {
  background-color: rgba(0, 128, 0, 0.08);
  color: #176b1f;
}

.status-pending {
  background-color: rgba(255, 165, 0, 0.1);
  color: #a86a06;
}

.site-footer {
  padding: 2rem 1.5rem 2.25rem;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-light);
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-left {
  max-width: 40rem;
  line-height: 1.55;
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.8125rem;
}

.footer-legal a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  background: rgba(122, 26, 46, 0.06);
  border: 1px solid rgba(122, 26, 46, 0.12);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-legal a:hover {
  background: rgba(122, 26, 46, 0.11);
  border-color: rgba(122, 26, 46, 0.22);
  color: var(--primary-dark);
}

.footer-legal span[aria-hidden='true'] {
  display: none;
}

/* Restoran giriş sayfası — yasal metinler kartın dışında, pill linkler */
.login-page-footer {
  width: 100%;
  max-width: 28rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
  text-align: center;
}

.login-page-footer-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 0.65rem;
}

.login-page-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.login-page-footer-links a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(122, 26, 46, 0.07);
  border: 1px solid rgba(122, 26, 46, 0.14);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.login-page-footer-links a:hover {
  background: rgba(122, 26, 46, 0.13);
  border-color: rgba(122, 26, 46, 0.25);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-panel {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.modal-header {
  background: var(--gradient);
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.modal-header h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  background: var(--bg-light);
}

.restaurant-detail-section {
  margin-bottom: 20px;
}

.restaurant-detail-section h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.restaurant-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.restaurant-info-item {
  font-size: 0.875rem;
  color: var(--text-light);
}

.restaurant-info-item strong {
  color: var(--text);
}

.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.menu-item-info {
  flex: 1;
}

.menu-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.menu-item-category {
  font-size: 0.75rem;
  color: var(--text-lighter);
}

.menu-item-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .split-grid {
    grid-template-columns: 1fr;
  }

  .form-row-inline {
    grid-template-columns: 1fr;
  }

  .brand {
    flex-direction: column;
    text-align: left;
    gap: 6px;
  }

  .brand-logo {
    width: 150px;
    height: 48px;
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

  /* Yeni responsive kurallar */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }

  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .restaurant-login-section {
    padding: 40px 20px;
  }

  .restaurant-login-section h3 {
    font-size: 24px;
  }

  .login-btn {
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* Restaurant Login Section */
.restaurant-login-section {
  background: var(--gradient);
  color: white;
  padding: 4rem 1.25rem;
  text-align: center;
  margin-top: 2.5rem;
}

.login-container {
  max-width: 600px;
  margin: 0 auto;
}

.restaurant-login-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.restaurant-login-section p {
  font-size: 1rem;
  margin-bottom: 1.75rem;
  opacity: 0.95;
}

.login-btn {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

@media (max-width: 600px) {
  .section {
    padding: 2rem 1.25rem;
  }

  .site-header {
    padding: 1rem 1.25rem;
  }

  .modal {
    padding: 10px;
  }

  .modal-content {
    max-height: 95vh;
  }

  .restaurant-info-grid {
    grid-template-columns: 1fr;
  }
}
