/* ============================================
   AGAPE Restaurant - Minimal Design
   ============================================ */

:root {
  --primary: #2d2d2d;
  --accent: #c17f59;
  --light: #faf8f5;
  --white: #ffffff;
  --gray: #6b6b6b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--light);
  color: var(--primary);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.logo-icon {
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: 50px 50px;
}

.hero-overlay,
.floating-shapes,
.christmas-lights,
.scroll-indicator {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 2rem;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 450px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #a86d4a;
  transform: translateY(-2px);
}

/* ============================================
   Snowflakes - Hidden
   ============================================ */
.snowflakes {
  display: none;
}

/* ============================================
   Menu Section
   ============================================ */
.menu-section {
  padding: 8rem 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header .decoration {
  display: none;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1rem;
}

.section-header.light h2,
.section-header.light p {
  color: var(--white);
}

.menu-categories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.menu-category {
  background: var(--light);
  border-radius: 16px;
  padding: 2.5rem;
}

.category-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.category-title::before {
  display: none;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.menu-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.menu-item-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #a86d4a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.menu-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.menu-item-description {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.menu-item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  padding: 8rem 0;
  background: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .decoration {
  display: none;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.feature-icon {
  font-size: 1.75rem;
}

.feature span:last-child {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--primary);
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-frame {
  padding: 0;
  background: none;
  border-radius: 16px;
  transform: none;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
  padding: 8rem 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  transition: transform 0.3s;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  padding: 8rem 0;
  background: var(--primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.25rem;
  color: var(--accent);
}

.contact-item h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.contact-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.contact-item a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

.special-notice {
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-content {
  background: rgba(255,255,255,0.05);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.notice-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1.5rem;
}

.notice-content h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.notice-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.notice-cta {
  font-weight: 600;
  color: var(--accent) !important;
  margin-top: 1.5rem !important;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #1a1a1a;
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.1em;
}

.footer-brand .logo-icon {
  display: none;
}

.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.copyright {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.admin-link {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.admin-link:hover {
  color: var(--accent);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-features {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-items {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================
   Auth/Login Page
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  padding: 2rem;
}

.auth-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.auth-card .logo {
  justify-content: center;
  margin-bottom: 2rem;
  display: block;
}

.auth-card h2 {
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  font-family: var(--font);
}

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

.btn-block {
  width: 100%;
}

.auth-link {
  margin-top: 1.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.error-message {
  background: #fff0f0;
  color: #c44;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
  font-size: 0.9rem;
}

.success-message {
  background: #f0fff0;
  color: #484;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
  font-size: 0.9rem;
}

/* ============================================
   Admin Dashboard
   ============================================ */
.admin-page {
  min-height: 100vh;
  background: var(--light);
}

.admin-header {
  background: var(--primary);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header .logo {
  color: var(--white);
  font-size: 1.25rem;
}

.admin-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

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

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

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

.admin-content {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.admin-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.admin-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.admin-card h3 {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.admin-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-menu-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem;
  background: var(--light);
  border-radius: 8px;
  transition: background 0.2s;
}

.admin-menu-item:hover {
  background: #f0f0f0;
}

.admin-menu-item-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #a86d4a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.admin-menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.admin-menu-item-details {
  flex: 1;
}

.admin-menu-item-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-menu-item-price {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.admin-menu-item-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

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

.btn-edit:hover {
  background: #a86d4a;
}

.image-upload-preview {
  width: 100%;
  height: 140px;
  border: 1px dashed #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.image-upload-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-upload-preview span {
  color: #aaa;
  font-size: 0.9rem;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  background: var(--light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.file-input-btn:hover {
  background: #e8e8e8;
}

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

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  padding: 3rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Menu Item Modal
   ============================================ */
.menu-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-modal.active {
  display: flex;
  opacity: 1;
}

.menu-modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.menu-modal.active .menu-modal-content {
  transform: scale(1);
}

.menu-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.menu-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.menu-modal-image {
  width: 100%;
  min-height: 200px;
  max-height: 60vh;
  background: linear-gradient(135deg, var(--accent), #a86d4a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: white;
}

.menu-modal-image img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

.menu-modal-details {
  padding: 2rem;
  text-align: center;
}

.menu-modal-name {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.menu-modal-description {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.menu-modal-price {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--light);
  padding: 0.75rem 2rem;
  border-radius: 50px;
}

@media (max-width: 768px) {
  .menu-modal {
    padding: 1rem;
  }

  .menu-modal-image {
    min-height: 150px;
    max-height: 50vh;
    font-size: 4rem;
  }

  .menu-modal-image img {
    max-height: 50vh;
  }

  .menu-modal-details {
    padding: 1.5rem;
  }

  .menu-modal-name {
    font-size: 1.4rem;
  }

  .menu-modal-description {
    font-size: 1rem;
  }
}

/* ============================================
   Gallery Modal
   ============================================ */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.gallery-modal-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .gallery-modal {
    padding: 1rem;
  }

  .gallery-modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .gallery-modal-image {
    max-width: 95vw;
    max-height: 85vh;
  }
}
