/*
Theme Name: Salat Timer
Theme URI: https://fixbd.com/salat-timer
Author: FixBD Team
Author URI: https://fixbd.com
Description: A modern WordPress theme for displaying prayer times with Smart TV compatibility.
Version: 1.0.0
License: GPL v2 or later
Text Domain: salat-timer
*/

/* All CSS is included in the prayer-timer.php template */

/* * TAILWIND MIMICRY CSS (STRICT V1) */
:root {
  /* Tailwind Emerald Palette */
  --primary: #10b981;
  /* emerald-500 */
  --primary-hover: #059669;
  /* emerald-600 */
  --primary-light: #d1fae5;
  /* emerald-100 */

  /* Tailwind Slate Palette */
  --bg-body: #f8fafc;
  /* slate-50 */
  --bg-card: #ffffff;
  --text-main: #0f172a;
  /* slate-900 */
  --text-muted: #64748b;
  /* slate-500 */
  --border-color: #e2e8f0;
  /* slate-200 */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden;
  padding-bottom: 80px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 83, 86, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(13, 83, 86, 0.3);
  box-shadow: none;
  border: none;
  border-radius: 100px;
  transition: all 0.3s ease-in-out;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  box-shadow: none;
  border: none;
  border-radius: 100px;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.text-green {
  color: var(--primary);
}

.bg-green {
  background-color: var(--primary);
}

.text-muted-custom {
  color: var(--text-muted);
}

/* Soft Shadows */
.shadow-soft {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Buttons */
.btn-app {
  background-color: var(--primary);
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
}

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

.btn-outline-app {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-main);
  border-radius: 9999px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

.btn-outline-app:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Cards */
.feature-card {
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  padding: 2rem;
  height: 100%;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Mock App Phone UI */
.phone-mockup {
  border: 8px solid #1e293b;
  border-radius: 2rem;
  overflow: hidden;
  background: #fff;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  height: 600px;
}

.phone-header {
  background: var(--primary);
  color: white;
  padding: 1.5rem 1rem 2rem 1rem;
  border-radius: 0 0 1.5rem 1.5rem;
  min-height: 160px;
}

.prayer-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  margin: 0.5rem 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--bg-body);
}

.prayer-item.active {
  border-left: 4px solid var(--primary);
  background: #f0fdf4;
}

/* Phone bottom section with city input */
.phone-bottom-section {
  padding: 1rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Skeleton Loader Animations */
@keyframes skeleton-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.skeleton-loader {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 12px;
  width: 80%;
  margin: 8px 0;
}

.skeleton-text-sm {
  height: 10px;
  width: 60%;
  margin: 6px 0;
}

.skeleton-time {
  height: 40px;
  width: 100px;
  border-radius: 8px;
}

.skeleton-prayer-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  margin: 0.5rem 1rem;
  background: #fff;
  border-radius: 1rem;
}

.skeleton-prayer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 1rem;
}

.error-icon {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

/* Custom Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

/* Mobile Bottom Nav (App Mode) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 0;
  z-index: 1000;
  justify-content: space-around;
}

.nav-item-mobile {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.nav-item-mobile i {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.nav-item-mobile.active {
  color: var(--primary);
}

/* GRID VIEW MENU (Mobile Overlay) */
.grid-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s;
  height: 100%;
}

.grid-menu-btn:hover,
.grid-menu-btn:active {
  background-color: #f1f5f9;
  transform: scale(0.98);
  border-color: var(--primary);
}

.grid-menu-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.modal-header {
  border-bottom: none;
}

.modal-content {
  border-radius: 1.5rem;
  border: none;
}

/* Loading state */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Media Queries */
@media (max-width: 991px) {
  .mobile-bottom-nav {
    display: flex;
  }

  .desktop-nav-links {
    display: none !important;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 3rem;
  }

  body {
    padding-bottom: 80px;
  }

  /* Hide the main 'Get Started' button in header on mobile, rely on hamburger */
  .navbar .btn-app.d-lg-block {
    display: none;
  }

  /* Adjust phone mockup height for mobile */
  .phone-mockup {
    height: 580px;
    max-width: 280px;
  }
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }

  .mobile-hamburger {
    display: none;
  }
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 250px;
}

.nav-item-add-new {
  font-size: 2rem !important;
  margin: -35px auto 0;
  background: #ffffff;
  padding: 18px;
  border-radius: 100%;
  max-width: 80px;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
}

.mobile-bottom-nav>* {
  flex: 1 !important;
  /* All items will have equal width */
}