/* ═══════════════════════════════════════════
   Aşhâna — Custom Site Styles
   Mobile-First Premium Design
   ═══════════════════════════════════════════ */

/* Dynamic theme colors via CSS custom properties */
:root {
  --ashana-primary: #16a34a;
  --ashana-secondary: #1e293b;
  --ashana-accent: #d4a853;
}

/* ─── Override FlyonUI default purple → green ─── */
:root,
[data-theme="light"],
[data-theme="dark"],
[data-theme] {
  --color-primary: oklch(62% 0.194 149.214) !important;
  --color-primary-content: oklch(98% 0.018 155.826) !important;
}

/* ─── Global Mobile Improvements ─── */
* { -webkit-tap-highlight-color: transparent; }

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

section {
  scroll-margin-top: 70px;
}

/* ─── Info Banner ─── */
.info-banner {
  background: linear-gradient(135deg, var(--color-primary, #16a34a), #065f46);
  color: white;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
}
.info-banner a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}
.info-banner a:hover {
  opacity: 0.85;
  text-decoration: underline;
}
.info-banner .info-divider {
  opacity: 0.4;
  margin: 0 8px;
}

/* Mobile: Stack banner items vertically */
@media (max-width: 639px) {
  .info-banner {
    padding: 6px 12px;
    font-size: 0.72rem;
    gap: 2px !important;
    flex-direction: column !important;
  }
  .info-banner .info-divider {
    display: none !important;
  }
}

/* ─── Navbar Mobile Enhancements ─── */
@media (max-width: 1023px) {
  header.fixed {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(var(--color-base-100-rgb, 255,255,255), 0.92) !important;
  }
}

/* ─── WhatsApp Floating Button ─── */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  animation: whatsappPulse 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  animation: none;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7); }
}

@media (max-width: 639px) {
  .whatsapp-float {
    bottom: 16px;
    right: 12px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ─── Hero Section Mobile ─── */
@media (max-width: 639px) {
  #home > div {
    padding-top: 100px !important;
    gap: 28px !important;
  }
  #home h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
  #home p {
    font-size: 0.9rem !important;
    line-height: 1.6;
    padding: 0 8px;
  }
  #home .btn-lg {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.85rem !important;
    width: 100%;
    justify-content: center;
  }
  #home .flex-wrap {
    flex-direction: column !important;
    width: 100%;
    padding: 0 16px;
    gap: 10px !important;
  }
  #hero-image {
    min-height: auto !important;
    height: 200px;
    border-radius: 0;
  }
  #home .bg-base-200 {
    font-size: 0.75rem;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  #home h1 {
    font-size: 2rem !important;
  }
}

/* ─── About Section Mobile ─── */
@media (max-width: 639px) {
  #about-us .text-2xl {
    font-size: 1.5rem !important;
  }
  #about-us .text-xl {
    font-size: 0.92rem !important;
    line-height: 1.7;
  }
  #about-us img {
    border-radius: 12px;
    max-height: 220px;
    object-fit: cover;
  }
  /* Stats cards in about */
  #about-us .grid.lg\:grid-cols-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 16px 12px !important;
  }
  #about-us .text-3xl {
    font-size: 1.5rem !important;
  }
}

/* ─── Menu Section ─── */
.menu-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 8px;
}
.menu-tab {
  padding: 10px 24px;
  border-radius: 9999px;
  border: 2px solid var(--color-primary, #16a34a);
  background: transparent;
  color: var(--color-primary, #16a34a);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.menu-tab.active,
.menu-tab:hover {
  background: var(--color-primary, #16a34a);
  color: white;
}
.menu-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .menu-items-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
.menu-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  gap: 12px;
  background: rgba(255,255,255,0.5);
}
.menu-item-card:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.menu-item-info {
  flex: 1;
  min-width: 0;
}
.menu-item-name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.menu-item-detail {
  font-size: 0.82rem;
  opacity: 0.6;
  margin-top: 2px;
  line-height: 1.4;
}
.menu-item-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.75rem;
  opacity: 0.5;
}
.menu-item-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary, #16a34a);
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.menu-note {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.55;
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.5;
}

/* Mobile Menu Enhancements */
@media (max-width: 639px) {
  .menu-tab {
    padding: 8px 18px;
    font-size: 0.82rem;
  }
  .menu-category-tabs {
    gap: 6px;
    justify-content: center;
  }
  .menu-item-card {
    padding: 12px 14px;
    border-radius: 10px;
    gap: 10px;
  }
  .menu-item-name {
    font-size: 0.9rem;
  }
  .menu-item-detail {
    font-size: 0.78rem;
  }
  .menu-item-meta {
    font-size: 0.7rem;
    gap: 8px;
  }
  .menu-item-price {
    font-size: 1.05rem;
  }
  .menu-note {
    font-size: 0.72rem;
    padding: 0 12px;
  }
  #menu .text-2xl,
  #menu .md\:text-3xl,
  #menu .lg\:text-4xl {
    font-size: 1.5rem !important;
  }
  #menu .text-xl {
    font-size: 0.88rem !important;
    line-height: 1.6;
  }
}

/* ─── Services Section Mobile ─── */
@media (max-width: 639px) {
  #services .card {
    border-radius: 14px;
    overflow: hidden;
  }
  #services figure img {
    height: 180px;
    object-fit: cover;
  }
  #services .card-body {
    padding: 16px !important;
  }
  #services .card-title {
    font-size: 1.1rem !important;
  }
  #services .card-body p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
  #services .text-2xl {
    font-size: 1.5rem !important;
  }
  #services .text-xl {
    font-size: 0.88rem !important;
  }
}

/* ─── Reviews Carousel Mobile ─── */
@media (max-width: 639px) {
  .carousel-slide .card-body {
    padding: 16px !important;
    gap: 12px !important;
  }
  .carousel-slide .card-body p {
    font-size: 0.88rem;
    line-height: 1.6;
  }
  .carousel-slide .size-6 {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ─── CTA Section Mobile ─── */
@media (max-width: 639px) {
  .from-primary\/6 {
    padding: 24px 16px !important;
  }
  .from-primary\/6 h2 {
    font-size: 1.25rem !important;
  }
  .from-primary\/6 p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* ─── Contact/Reservation Section Mobile ─── */
@media (max-width: 639px) {
  #contact-us .card-body {
    padding: 16px !important;
  }
  #contact-us .text-3xl {
    font-size: 1.4rem !important;
  }
  #contact-us .input-lg {
    height: 44px;
  }
  #contact-us .input-lg input {
    font-size: 0.88rem;
  }
  #contact-us textarea {
    min-height: 80px;
    font-size: 0.88rem;
  }
  #contact-us .border-base-content\/20 {
    padding: 16px !important;
  }
  #contact-us .text-xl {
    font-size: 1rem !important;
  }
}

/* ─── FAQ Section Mobile ─── */
@media (max-width: 639px) {
  #faqs .carousel-slide {
    margin: 4px !important;
  }
  #faqs .text-xl {
    font-size: 1rem !important;
    line-height: 1.4;
  }
  #faqs p {
    font-size: 0.84rem;
    line-height: 1.6;
  }
  #faqs .text-2xl {
    font-size: 1.5rem !important;
  }
}

/* ─── Footer Mobile ─── */
@media (max-width: 639px) {
  footer .flex.items-center {
    gap: 16px !important;
  }
  footer nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px !important;
  }
  footer nav a {
    font-size: 0.85rem;
  }
  footer .text-base {
    font-size: 0.85rem !important;
  }
  footer .text-sm {
    font-size: 0.75rem !important;
    padding: 0 8px;
  }
}

/* ─── General Mobile Typography ─── */
@media (max-width: 639px) {
  .text-5xl { font-size: 1.75rem !important; }
  .text-4xl { font-size: 1.5rem !important; }
  .text-3xl { font-size: 1.3rem !important; }
  
  /* Better touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  .btn-sm {
    min-height: 36px;
    min-width: 36px;
  }
  
  /* Improve readability on mobile */
  body {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Section spacing reduction */
  .py-8 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .sm\:py-16 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .mb-12 { margin-bottom: 1.5rem !important; }
  .sm\:mb-16 { margin-bottom: 1.5rem !important; }
  .gap-12 { gap: 1.5rem !important; }
}

/* ─── Tablet adjustments ─── */
@media (min-width: 640px) and (max-width: 1023px) {
  section {
    scroll-margin-top: 75px;
  }
  .menu-items-grid {
    gap: 12px;
  }
}

/* ─── Reservation Info Banner ─── */
.reservation-banner {
  background: linear-gradient(135deg, var(--color-primary, #16a34a), #065f46);
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-size: 0.9rem;
}

/* ─── Footer Designer Credit ─── */
.designer-credit {
  opacity: 0.7;
  font-size: 0.85rem;
}
.designer-credit a {
  color: var(--color-primary, #16a34a);
  text-decoration: none;
}
.designer-credit a:hover {
  text-decoration: underline;
}

/* ─── Menu category panel visibility ─── */
.menu-panel {
  display: none;
}
.menu-panel.active {
  display: block;
  animation: fadeInMenu 0.3s ease;
}

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

/* ─── Scroll to top button mobile fix ─── */
@media (max-width: 639px) {
  #scrollToTopBtn {
    bottom: 80px !important;
    right: 12px !important;
  }
}

/* ─── Card hover lift on mobile (subtle) ─── */
@media (max-width: 639px) {
  .card:active {
    transform: scale(0.98);
    transition: transform 0.15s;
  }
}

/* ─── Improve stats section overflow on mobile ─── */
@media (max-width: 639px) {
  .intersect\:motion-preset-fade {
    overflow-x: hidden;
  }
}

/* ─── Premium Map Section ─── */
.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 35%, transparent 65%);
}
.map-card-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.map-glass-card {
  max-width: 380px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  pointer-events: auto;
}
.map-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(22,163,74,0.35);
}
.map-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(22,163,74,0.55);
}
.map-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s;
}
.map-btn-secondary:hover {
  background: rgba(255,255,255,0.18);
}

/* Mobile map adjustments */
@media (max-width: 639px) {
  #konum > div:first-child {
    height: 580px !important;
  }
  .map-overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%) !important;
  }
  .map-card-wrapper {
    align-items: flex-end;
    padding-bottom: 16px;
  }
  .map-glass-card {
    max-width: 100%;
    padding: 22px 18px;
    border-radius: 16px;
  }
}

/* ─── Hero Slider ─── */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
  min-width: 100%;
  width: 100%;
}
.hero-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 1.2rem;
}
.hero-slider-btn:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.1);
}
.hero-slider-btn.prev { left: 12px; }
.hero-slider-btn.next { right: 12px; }
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.hero-dot.active {
  background: var(--color-primary, #16a34a);
  transform: scale(1.3);
}

/* ─── Menu Item Modal ─── */
.menu-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.menu-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.menu-modal {
  background: var(--color-base-100, #fff);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.menu-modal-overlay.active .menu-modal {
  transform: translateY(0) scale(1);
}
.menu-modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}
.menu-modal-body {
  padding: 24px;
}
.menu-modal-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-base-content, #1e293b);
  margin-bottom: 8px;
}
.menu-modal-desc {
  color: var(--color-base-content, #64748b);
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.menu-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.menu-modal-tag {
  background: rgba(22,163,74,0.1);
  color: var(--color-primary, #16a34a);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.menu-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.2s;
}
.menu-modal-close:hover { background: rgba(0,0,0,0.7); }

/* ─── Mobile Hero Spacing Fix ─── */
@media (max-width: 639px) {
  #home > div {
    padding-top: 100px !important;
    gap: 1rem !important;
  }
  #home h1 { font-size: 1.5rem !important; }
  #home #hero-subtitle { font-size: 0.85rem !important; }
  .hero-slider-btn { width: 36px; height: 36px; font-size: 1rem; }
  .hero-slider-btn.prev { left: 6px; }
  .hero-slider-btn.next { right: 6px; }
  .menu-modal-img { height: 180px; }
  .menu-modal-body { padding: 18px; }
}

/* ─── Image Fade-in Animations ─── */
.fade-in-view {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-view.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Menu Item Card Clickable ─── */
.menu-item-card {
  cursor: pointer;
  transition: all 0.2s;
}
.menu-item-card:hover {
  background: rgba(22,163,74,0.05);
  transform: translateX(4px);
}
