/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Crimson+Text:wght@400;600&display=swap');

/* Crimson Red Teması */
:root {
  --main-bg: #f7f7fa;
  --main-bg-light: #f0f4fa;
  --main-bg-lighter: #ffdada;
  --accent: #dc143c;
  --accent-dark: #f82355;
  --text-main: #222;
  --text-secondary: #444;
  --border: #e0e6ef;
  --shadow: 0 4px 24px rgba(220,20,60,0.08);
}

/* Sonbahar Teması (autumn-theme sınıfı ile aktif edilir) */
:root {
  --main-bg: #f5e9da;
  --main-bg-light: #ffe5b4;
  --main-bg-lighter: #fff8ed;
  --accent: #E94E1A;
  --accent-dark: #d2691e;
  --text-main: #7c4f1d;
  --text-secondary: #a05a2c;
  --border: #ffd700;
  --shadow: 0 4px 24px rgba(255,179,71,0.10);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  font-family: 'Crimson Text', serif;
  background: var(--main-bg);
  color: var(--text-main);
  background-attachment: fixed;
}

.cafe-background {
  background: linear-gradient(135deg, var(--main-bg-light) 0%, var(--main-bg-lighter) 100%);
  padding: 20px;
  position: relative;
}

.cafe-background::before {
  background-image: none;
}

/* Cafe Background */
.cafe-background {
  background: 
    radial-gradient(circle at 20% 80%, rgba(0,0,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(100,100,100,0.08) 0%, transparent 50%),
    linear-gradient(135deg, #fff 0%, #eaeaea 100%);
  /* min-height: 100vh; */
  padding: 20px;
  position: relative;
}

.cafe-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
  pointer-events: none;
}

/* Decorative Frame */
.decorative-frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  background: var(--main-bg-light);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  position: relative;
}

.decorative-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  pointer-events: none;
}

.decorative-frame::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  bottom: 25px;
  border: 1px solid rgba(220,20,60,0.08);
  border-radius: 10px;
  pointer-events: none;
}

/* Container */
.container {
  background: var(--main-bg-lighter);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  color: var(--text-main);
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Menu Header */
.menu-header {
  text-align: center;
  margin-bottom: 3px;
  padding: 5px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.menu-header h1 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.18);
}

.navigation-info {
  color: var(--main-bg-lighter);
  font-size: 1.1em;
  margin-top: 10px;
  font-weight: 600;
}

/* Flip Book */
.flip-book {
  box-shadow: 
    0 0 40px rgba(0,0,0,0.12),
    0 10px 30px rgba(100,100,100,0.08);
  display: none;
  background-size: cover;
  border-radius: 10px;
  overflow: hidden;
}

/* Page Styles */
.page {
  padding: 25px;
  background: var(--main-bg-lighter);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  overflow: hidden;
  position: relative;
}

.page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0,0,0,0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(100,100,100,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.page-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
}

.page-header {
  height: auto;
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
  letter-spacing: 1px;
}

/* Menu Section */
.menu-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100% - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--main-bg-light);
}

/* Custom Scrollbar for Webkit browsers */
.menu-section::-webkit-scrollbar {
  width: 8px;
}

.menu-section::-webkit-scrollbar-track {
  background: var(--main-bg-light);
}

.menu-section::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 1px solid var(--main-bg-light);
  border-radius: 4px;
}

.menu-section::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.menu-item {
  background: rgba(220,20,60,0.04);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(220,20,60,0.06);
  transition: transform 0.2s ease;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
}

.menu-item:hover {
  box-shadow: 0 6px 18px rgba(220,20,60,0.12);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.item-name {
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 1.3em;
  font-weight: 700;
  flex: 1;
}

.item-price {
  color: var(--accent-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.2em;
  font-weight: 700;
  margin-left: 10px;
}

.item-description {
  color: var(--text-secondary);
  font-size: 0.9em;
  line-height: 1.4;
  font-style: italic;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-footer {
  color: var(--accent);
  border-top: 1.5px solid var(--accent);
  height: 30px;
  font-size: 1.1em;
  text-align: center;
  padding-top: 8px;
  font-weight: 600;
  margin-top: 20px;
}

/* Page Shadows */
.page.--left {
  border-right: 0;
  box-shadow: inset -10px 0 20px -5px rgba(0,0,0,0.08);
}

.page.--right {
  border-left: 0;
  box-shadow: inset 10px 0 20px -5px rgba(100,100,100,0.08);
}

.page.--right .page-footer {
  text-align: center;
}

/* Hard Pages */
.page.hard {
  background: linear-gradient(135deg, var(--main-bg-light) 0%, var(--main-bg-lighter) 100%);
  border: 2px solid var(--accent);
}

/* Cover Pages */
.page.page-cover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--main-bg-light) 100%);
  color: #fff;
  border: 3px solid var(--accent);
  position: relative;
}

.page.page-cover::before {
  background-image: none;
}

/* Cover Design */
.cover-design {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cafe-logo {
  font-size: 4em;
  margin-bottom: 20px;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
}
.cafe-logo img {
  width: 200px; /* veya istediğin bir boyut */
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
}

.cover-design h2 {
  color: var(--accent);
  text-shadow: 2px 2px 8px rgba(220,20,60,0.10);
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  font-weight: 700;
  margin: 20px 0;
  letter-spacing: 3px;
}

.subtitle {
  color: var(--accent-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  font-style: italic;
  margin-bottom: 20px;
}

.ornament {
  color: var(--accent);
  font-size: 2em;
  margin: 20px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.12);
}

.welcome-text {
  color: var(--accent);
  font-size: 1.2em;
  font-style: italic;
  max-width: 300px;
  line-height: 1.4;
}

/* Back Cover */
.back-cover-design {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.back-cover-design h2 {
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  margin-bottom: 30px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.12);
}

.contact-info {
  margin: 20px 0;
  font-size: 1.1em;
  line-height: 1.6;
}

.contact-info p {
  margin: 8px 0;
  color: var(--text-secondary);
}

.tagline {
  color: var(--accent-dark);
  font-style: italic;
  font-size: 1.3em;
  margin-top: 20px;
}

/* Cover Shadows */
.page-cover-top {
  box-shadow: 
    inset 0px 0 30px 0px rgba(0,0,0,0.08), 
    -5px 0 15px 2px rgba(100,100,100,0.04);
}

.page-cover-bottom {
  box-shadow: 
    inset 0px 0 30px 0px rgba(100,100,100,0.08), 
    10px 0 15px 0px rgba(0,0,0,0.04);
}

/* Navigation Controls */
.navigation-controls {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px;
}

.btn-prev, .btn-next {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: 2px solid var(--accent-dark);
  padding: 12px 25px;
  font-size: 0.7em;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-prev:hover, .btn-next:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  .cafe-background {
    padding: 10px;
  }
  .decorative-frame {
    padding: 5px;
    margin: 5px;
  }
  .container {
    padding: 15px;
  }
  .menu-header h1 {
    font-size: 1.5em;
  }
  .navigation-info {
    font-size: 1em;
  }
  .page {
    padding: 15px;
  }
  .page-header {
    font-size: 1.2em;
    padding: 10px;
  }
  .menu-section {
    gap: 10px;
    padding-right: 5px;
  }
  .menu-item {
    padding: 10px;
    min-height: 85px;
  }
  .item-name {
    font-size: 1.1em;
  }
  .item-price {
    font-size: 1em;
  }
  .item-description {
    font-size: 0.85em;
  }
  .page-footer {
    font-size: 1em;
    height: 25px;
    padding-top: 5px;
  }
  .cover-design h2 {
    font-size: 2em;
  }
  .cafe-logo {
    font-size: 3em;
  }
  .subtitle {
    font-size: 1.2em;
  }
  .welcome-text {
    font-size: 1em;
  }
  .navigation-controls {
    gap: 5px;
    margin-top: 5px;
    padding: 5px;
  }
  .btn-prev, .btn-next {
    width: 130px;
    padding: 10px 10px;
    font-size: 0.5em;
  }
  .menu-section::-webkit-scrollbar {
    width: 6px;
  }
  .menu-section {
    scrollbar-width: thin;
  }
}

@media (max-width: 480px) {
  .decorative-frame {
    padding: 3px;
    margin: 2px;
  }
  .container {
    padding: 10px;
  }
  .menu-header h1 {
    font-size: 1.2em;
  }
  .page {
    padding: 10px;
  }
  .page-header {
    font-size: 1em;
    padding: 8px;
  }
  .menu-item {
    padding: 8px;
    min-height: 75px;
  }
  .item-name {
    font-size: 1em;
  }
  .item-price {
    font-size: 0.9em;
  }
  .item-description {
    font-size: 0.8em;
  }
  .cover-design h2 {
    font-size: 1.6em;
  }
  .cafe-logo {
    font-size: 2.5em;
  }
  .btn-prev, .btn-next {
    width: 100px;
    padding: 8px 15px;
    font-size: 0.7em;
  }
}

/* Animation for page transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.flip-book {
  animation: fadeIn 0.6s ease-out;
}
