/* Estilos Principais - Visite Piumhi */

/* Importa Material Design */
@import url('material-design.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Estilos Específicos do App */
body {
  padding-top: 56px; /* Altura do app bar */
  min-height: 100vh;
}

/* Logo e Branding */
.app-logo {
  height: 40px;
  width: auto;
}

/* Página Inicial */
.home-container {
  padding: var(--md-spacing-lg) 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--md-spacing-md);
  margin-top: var(--md-spacing-lg);
}

.category-card {
  background: var(--md-surface);
  border-radius: var(--md-border-radius);
  box-shadow: var(--md-shadow-1);
  padding: var(--md-spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

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

.category-card__icon {
  font-size: 48px;
  color: var(--md-primary);
  margin-bottom: var(--md-spacing-sm);
}

.category-card__title {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-primary-dark) 100%);
  color: white;
  padding: var(--md-spacing-xl) 0;
  text-align: center;
  margin: -var(--md-spacing-lg) -var(--md-spacing-md) var(--md-spacing-lg);
}

.hero-section h1 {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: var(--md-spacing-sm);
}

.hero-section p {
  font-size: 16px;
  opacity: 0.9;
}

/* Lista de Items */
.item-list {
  padding: var(--md-spacing-md) 0;
}

.item-card {
  background: var(--md-surface);
  border-radius: var(--md-border-radius);
  box-shadow: var(--md-shadow-1);
  margin-bottom: var(--md-spacing-md);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.item-card:hover {
  box-shadow: var(--md-shadow-2);
}

.item-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.item-card__content {
  padding: var(--md-spacing-md);
}

.item-card__title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--md-spacing-sm);
  color: var(--md-primary);
}

.item-card__description {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: var(--md-spacing-md);
}

.item-card__info {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: var(--md-spacing-sm);
}

.item-card__info i {
  margin-right: var(--md-spacing-sm);
  color: var(--md-primary);
  width: 20px;
}

/* Mapa */
.map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--md-border-radius);
  overflow: hidden;
  box-shadow: var(--md-shadow-1);
  margin: var(--md-spacing-lg) 0;
}

/* Filtros */
.filter-section {
  background: var(--md-surface);
  padding: var(--md-spacing-md);
  border-radius: var(--md-border-radius);
  box-shadow: var(--md-shadow-1);
  margin-bottom: var(--md-spacing-lg);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--md-spacing-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--md-spacing-md);
  height: 32px;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.08);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.chip:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

.chip--active {
  background-color: var(--md-primary);
  color: white;
}

/* Detalhes */
.detail-header {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.detail-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-header__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: var(--md-spacing-lg);
  color: white;
}

.detail-content {
  padding: var(--md-spacing-lg);
}

/* Favoritos */
.favorite-button {
  position: absolute;
  top: var(--md-spacing-md);
  right: var(--md-spacing-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: var(--md-shadow-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.favorite-button:hover {
  transform: scale(1.1);
}

.favorite-button i {
  color: var(--md-error);
  font-size: 20px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--md-surface);
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-around;
  padding: var(--md-spacing-sm) 0;
  z-index: 1000;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--md-spacing-sm);
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.bottom-nav__item--active {
  color: var(--md-primary);
}

.bottom-nav__item i {
  font-size: 24px;
  margin-bottom: 4px;
}

.bottom-nav__item span {
  font-size: 12px;
}

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--md-spacing-xl);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--md-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--md-spacing-xl);
}

.empty-state__icon {
  font-size: 64px;
  color: rgba(0, 0, 0, 0.3);
  margin-bottom: var(--md-spacing-md);
}

.empty-state__title {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: var(--md-spacing-sm);
}

.empty-state__description {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section h1 {
    font-size: 24px;
  }
  
  body {
    padding-bottom: 64px; /* Espaço para bottom nav */
  }
}

@media (max-width: 480px) {
  .category-card {
    min-height: 120px;
  }
  
  .category-card__icon {
    font-size: 36px;
  }
  
  .category-card__title {
    font-size: 12px;
  }
}