/* ============================================
   ATUŞ CAFE — STYLE SHEET
   Turuncu tema, mobil öncelikli tasarım
   ============================================ */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  /* Primary Orange Palette */
  --orange-50: #FFF3E0;
  --orange-100: #FFE0B2;
  --orange-200: #FFCC80;
  --orange-300: #FFB74D;
  --orange-400: #FFA726;
  --orange-500: #E8611A;   /* Logo orange */
  --orange-600: #D4550F;
  --orange-700: #BF4A0A;
  --orange-800: #8B3508;
  --orange-900: #5C2305;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #FFF8F0;
  --gray-100: #F5F0EB;
  --gray-200: #E8E0D8;
  --gray-300: #C4B8AC;
  --gray-500: #8B7E72;
  --gray-700: #4A3F35;
  --gray-800: #2D2419;
  --gray-900: #1A1108;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizing */
  --container-max: 480px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(232, 97, 26, 0.08);
  --shadow-card: 0 8px 32px rgba(232, 97, 26, 0.12);
  --shadow-glow: 0 0 40px rgba(232, 97, 26, 0.25);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---- LOADER ---- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 260px;
  max-width: 80vw;
  margin: 0 auto 30px;
  animation: loaderPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.15));
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 10px;
  animation: loaderFill 1.5s ease-in-out forwards;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ---- ANNOUNCEMENT BAR ---- */
.announcement-bar {
  background: linear-gradient(135deg, #2D2419, #3D2E1A);
  padding: 12px 20px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.announcement-text {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  animation: annBlink 1.2s ease-in-out infinite;
}

@keyframes annBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- SOLD OUT ---- */
.menu-card.sold-out {
  opacity: 0.7;
}

.menu-card.sold-out .menu-card-image img {
  filter: brightness(0.5);
}

.menu-card.sold-out {
  background: #e0e0e0;
}

.sold-out-badge {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  color: #DC2626;
  background: #FEE2E2;
  padding: 3px 8px;
  border-radius: 50px;
  white-space: nowrap;
  margin-right: 6px;
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--orange-500);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 183, 77, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(191, 74, 10, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(232, 97, 26, 0.2) 0%, transparent 70%);
  animation: bgShift 8s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: var(--container-max);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 300px;
  max-width: 85vw;
  margin: 0 auto 16px;
  animation: heroLogoIn 1s ease-out 0.3s both;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.03em;
  margin-bottom: 0;
  animation: fadeUp 0.8s ease-out 0.7s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeUp 0.8s ease-out 1s both;
  margin-bottom: 50px;
}

.hero-cta:hover, .hero-cta:active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-cta .cta-arrow-left,
.hero-cta .cta-arrow-right {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- PARTICLES ---- */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* ---- MENU SECTION ---- */
.menu-section {
  padding: 60px 20px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-400), var(--orange-500));
  border-radius: 10px;
  margin: 0 auto;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow-soft);
}

.category-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.category-tab.active {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.category-tab .tab-icon {
  font-size: 1.1rem;
}

/* All tab */
.category-tab-all {
  background: var(--gray-100);
}

/* Menu Grid */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Menu Card */
.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  cursor: default;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.menu-card:active {
  transform: scale(0.98);
}

.menu-card-image {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.08);
}

.menu-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 4px 0;
}

.menu-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
  flex: 1;
  display: flex;
  align-items: center;
}

.menu-card-desc {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.3;
  margin-top: 2px;
}

.menu-card-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--orange-500);
  background: var(--orange-50);
  padding: 6px 16px;
  border-radius: 50px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- CATEGORY HEADER IN GRID ---- */
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 4px;
  padding: 0 4px;
}

.category-header:first-child {
  margin-top: 0;
}

.category-header-icon {
  font-size: 1.4rem;
}

.category-header-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-700);
}

.category-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gray-200), transparent);
}

/* ---- CONTACT SECTION ---- */
.contact-section {
  background: var(--gray-800);
  color: var(--white);
  padding: 60px 20px 30px;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream);
  border-radius: 0 0 50% 50%;
}

.contact-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.contact-section .section-title {
  color: var(--white);
}

.contact-section .section-divider {
  background: linear-gradient(90deg, var(--orange-400), var(--orange-500));
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-card-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Google Review Button */
.google-review {
  text-align: center;
  margin-bottom: 30px;
}

.google-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #F4B400, #E8961A);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(244, 180, 0, 0.3);
}

.google-review-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(244, 180, 0, 0.5);
}

.google-review-btn .google-star {
  animation: starPulse 2s ease-in-out infinite;
}

.google-review-btn .google-star:last-child {
  animation-delay: 0.3s;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--orange-500);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 12px;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

.footer-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
}

.menu-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delay for cards */
.menu-card:nth-child(1) { transition-delay: 0.05s; }
.menu-card:nth-child(2) { transition-delay: 0.1s; }
.menu-card:nth-child(3) { transition-delay: 0.15s; }
.menu-card:nth-child(4) { transition-delay: 0.2s; }
.menu-card:nth-child(5) { transition-delay: 0.25s; }
.menu-card:nth-child(6) { transition-delay: 0.3s; }
.menu-card:nth-child(7) { transition-delay: 0.35s; }
.menu-card:nth-child(8) { transition-delay: 0.4s; }
.menu-card:nth-child(9) { transition-delay: 0.45s; }
.menu-card:nth-child(10) { transition-delay: 0.5s; }

/* Category headers in grid */
.category-header {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.category-header.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- RESPONSIVE (TABLETS) ---- */
@media (min-width: 600px) {
  :root {
    --container-max: 540px;
  }

  .hero-logo {
    width: 340px;
  }

  .hero-slogan {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .menu-card-image {
    width: 110px;
    height: 110px;
  }

  .menu-card-name {
    font-size: 1.15rem;
  }
}

/* ---- RESPONSIVE (DESKTOP) ---- */
@media (min-width: 900px) {
  :root {
    --container-max: 600px;
  }

  .hero-logo {
    width: 380px;
  }
}

/* ---- SMOOTH SCROLL OFFSET ---- */
#menu {
  scroll-margin-top: 20px;
}

/* ---- UTILITY ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
