/* Murlidhar Sky - Custom Styles & CMS Enhancements */

@layer utilities {
  .glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
  }

  .glass-dark {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* Image Hover & Gallery */
.gallery-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.06);
}

/* Modal Animations */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

/* CMS Active Tab Styles */
.cms-tab-btn.active {
  background-color: #d97706;
  color: #ffffff;
  font-weight: 700;
}

/* Empty State Card */
.empty-state-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

/* CMS Admin Visibility: Hidden for visitors by default, shown ONLY when authenticated */
body:not(.is-admin-authenticated) .cms-admin-only {
  display: none !important;
}

body.is-admin-authenticated .cms-admin-only {
  display: inline-flex !important;
}

body.is-admin-authenticated div.cms-admin-only {
  display: flex !important;
}

body.is-admin-authenticated .visitor-only {
  display: none !important;
}
