/**
 * Bangla Time Plugin Styles - Card Layout Design with Live Search
 */

/* Import Google Fonts for better typography */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #e8f4f8;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.bangla-time-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
}

.bangla-time-content {
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.bangla-time-title {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* Enhanced Search Bar with Live Results */
.bangla-time-search {
  margin-bottom: 3rem;
  text-align: center;
}

.bangla-time-search-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 500px;
}

.bangla-time-search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.bangla-time-search-input:focus {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.bangla-time-search-input::placeholder {
  color: #999;
}

/* Search Results Dropdown */
.bangla-time-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.bangla-time-search-result-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  gap: 1rem;
}

.bangla-time-search-result-item:hover,
.bangla-time-search-result-item.selected {
  background: #f8f9fa;
  color: #01af57;
}

.bangla-time-search-result-item:last-child {
  border-bottom: none;
  border-radius: 0 0 15px 15px;
}

.bangla-time-search-result-item:first-child {
  border-radius: 15px 15px 0 0;
}

.bangla-time-search-result-icon {
  width: 40px;
  height: 40px;
  background: #01af57;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bangla-time-search-result-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.bangla-time-search-result-info {
  flex: 1;
  text-align: left;
}

.bangla-time-search-result-name-bn {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.2rem;
}

.bangla-time-search-result-name-en {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.bangla-time-search-no-results {
  padding: 1.5rem;
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
}

.bangla-time-search-loading {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 1001;
}

/* Breadcrumbs */
.bangla-time-breadcrumbs {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #666;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bangla-time-breadcrumbs a {
  color: #01af57;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.bangla-time-breadcrumbs a:hover {
  color: #00d4aa;
}

/* City Cards Grid */
.bangla-time-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bangla-time-city-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.bangla-time-city-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.bangla-time-city-icon {
  width: 60px;
  height: 60px;
  background: #01af57;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bangla-time-city-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.bangla-time-city-info {
  flex: 1;
}

.bangla-time-city-name-bn {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.bangla-time-city-name-en {
  font-size: 1rem;
  color: #7f8c8d;
  font-weight: 400;
}

/* Pagination */
.bangla-time-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.bangla-time-pagination a,
.bangla-time-pagination span {
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 10px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 45px;
  text-align: center;
}

.bangla-time-pagination a:hover {
  background: #01af57;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(1, 175, 87, 0.3);
}

.bangla-time-pagination .current {
  background: #01af57;
  color: white;
  box-shadow: 0 4px 15px rgba(1, 175, 87, 0.3);
}

.bangla-time-pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bangla-time-pagination .disabled:hover {
  background: white;
  color: #2c3e50;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* No Results */
.bangla-time-no-results {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bangla-time-no-results h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.bangla-time-no-results p {
  color: #7f8c8d;
}

/* Loading Spinner */
.bangla-time-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #01af57;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Individual City Page Styles */
.bangla-time-clock-container {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #01af57, #00d4aa);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(1, 175, 87, 0.3);
  position: relative;
  overflow: hidden;
}

.bangla-time-clock-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.bangla-time-clock {
  font-size: 5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.bangla-time-date {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* Sun Info */
.bangla-time-sun-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.bangla-time-sunrise,
.bangla-time-sunset {
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bangla-time-sunrise:hover,
.bangla-time-sunset:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.bangla-time-sun-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.bangla-time-sunrise h2,
.bangla-time-sunset h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.bangla-time-sun-time {
  font-size: 2.5rem;
  font-weight: 700;
  color: #01af57;
}

/* Weather Info */
.bangla-time-weather {
  margin: 2rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.bangla-time-weather h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.bangla-time-weather-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.bangla-time-weather-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  font-weight: 500;
}

/* Info and Links */
.bangla-time-info {
  margin: 3rem 0;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bangla-time-info p {
  margin-bottom: 1rem;
}

.bangla-time-links {
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bangla-time-links h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.bangla-time-links a {
  color: #01af57;
  text-decoration: none;
  font-weight: 500;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(1, 175, 87, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.bangla-time-links a:hover {
  background: #01af57;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 175, 87, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .bangla-time-container {
    padding: 1rem;
  }

  .bangla-time-search-wrapper {
    max-width: 100%;
  }

  .bangla-time-cities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bangla-time-city-card {
    padding: 1rem;
  }

  .bangla-time-city-icon {
    width: 50px;
    height: 50px;
  }

  .bangla-time-city-icon svg {
    width: 25px;
    height: 25px;
  }

  .bangla-time-city-name-bn {
    font-size: 1.1rem;
  }

  .bangla-time-city-name-en {
    font-size: 0.9rem;
  }

  .bangla-time-title {
    font-size: 2rem;
  }

  .bangla-time-clock {
    font-size: 3.5rem;
  }

  .bangla-time-date {
    font-size: 1.4rem;
  }

  .bangla-time-sun-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bangla-time-weather-info {
    grid-template-columns: 1fr;
  }

  .bangla-time-pagination {
    gap: 0.25rem;
  }

  .bangla-time-pagination a,
  .bangla-time-pagination span {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .bangla-time-search-results {
    margin-top: 0.25rem;
  }

  .bangla-time-search-result-item {
    padding: 0.75rem 1rem;
  }

  .bangla-time-search-result-icon {
    width: 35px;
    height: 35px;
  }

  .bangla-time-search-result-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .bangla-time-search-input {
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
  }

  .bangla-time-city-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .bangla-time-city-icon {
    width: 60px;
    height: 60px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  }

  .bangla-time-content {
    background: rgba(44, 62, 80, 0.95);
    color: #ecf0f1;
  }

  .bangla-time-info {
    color: #bdc3c7;
  }

  .bangla-time-city-list a {
    color: #ecf0f1;
  }

  .bangla-time-letter-group {
    background: rgba(52, 73, 94, 0.8);
  }
}
