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

:root {
  --primary: #E67E22;
  --secondary: #8B4513;
  --bg: #FFF8F0;
  --text: #2C1810;
  --text-light: #6B4C3B;
  --white: #FFFFFF;
  --border: #E8D5C4;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

a:hover {
  color: var(--secondary);
}

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

h1, h2, h3 {
  color: var(--secondary);
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--text-light); }

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

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

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-list a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section h1 {
  margin-bottom: 1rem;
}

/* Admin */
.admin-body {
  background: #f0ebe6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.admin-login-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
}

.admin-login-box h1 {
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--bg);
  transition: border 0.2s;
}

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

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-error {
  background: #FDE8E8;
  color: #C0392B;
  border: 1px solid #F5C6CB;
}

/* Admin Layout */
.admin-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--secondary);
  color: var(--white);
  padding: 24px 16px;
  flex-shrink: 0;
}

.admin-sidebar h2 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  text-align: center;
}

.admin-sidebar nav ul {
  list-style: none;
}

.admin-sidebar nav li {
  margin-bottom: 4px;
}

.admin-sidebar nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.2s;
  font-size: 0.95rem;
}

.admin-sidebar nav a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.admin-content {
  flex: 1;
  padding: 32px;
  background: #f8f4f0;
  min-height: 100vh;
}

.admin-content h1 {
  margin-bottom: 24px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.admin-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.admin-card h3 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.admin-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Admin Utilities */
.hidden { display: none; }
.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--bg);
}
.inline-input:focus { outline: none; border-color: var(--primary); }

.btn-small { padding: 6px 14px; font-size: 0.85rem; }
.btn-danger { background: #E74C3C; }
.btn-danger:hover { background: #C0392B; }

.admin-toolbar { margin-bottom: 20px; }

.admin-form { max-width: 800px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--text);
}

.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.admin-menu-category {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.admin-menu-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

/* Menu Page */
.menu-category {
  margin-bottom: 32px;
}

.menu-category h2 {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

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

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-item-info h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.menu-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  margin-left: 16px;
}

.menu-empty {
  color: var(--text-light);
  font-style: italic;
}

/* Restorandan */
.haber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.haber-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
  color: var(--text);
}

.haber-card:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.haber-card-image {
  height: 200px;
  overflow: hidden;
}

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

.haber-card-body {
  padding: 16px;
}

.haber-card-body h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.haber-card-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.haber-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-right: 8px;
}

.haber-card-category {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--primary);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.haber-detay {
  max-width: 800px;
}

.haber-detay-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.haber-detay-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 16px 0;
}

.haber-detay-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.haber-detay-content h2 {
  margin-top: 24px;
}

.haber-detay-content p {
  margin-bottom: 16px;
}

.haber-detay-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}

/* Galeri Page */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.galeri-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  aspect-ratio: 4 / 3;
}

.galeri-item:hover {
  transform: scale(1.02);
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Admin Galeri */
.admin-galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.admin-galeri-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-galeri-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.admin-galeri-item-info {
  padding: 10px;
}

.admin-galeri-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

/* İletişim */
.iletisim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.iletisim-info h2,
.iletisim-form h2 {
  margin-bottom: 16px;
}

.iletisim-info p {
  margin-bottom: 8px;
}

.iletisim-info a {
  color: var(--text);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  text-align: left;
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-info h4,
.footer-nav h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-info p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.footer-info a {
  color: rgba(255,255,255,0.7);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
}

.footer p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    gap: 12px;
  }

  .nav-list.open {
    display: flex;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 40px 0;
  }

  .iletisim-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
