/* ====================================
   Mini Diversão - Main Styles
   ==================================== */

/* Variables */
:root {
  --primary-color: #FF6B6B;
  --secondary-color: #4ECDC4;
  --accent-color: #FFE66D;
  --text-color: #2C3E50;
  --text-light: #7F8C8D;
  --bg-light: #FFF8E7;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-white);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-main {
  color: var(--primary-color);
}

.logo-suffix {
  color: var(--text-color);
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--accent-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--secondary-color);
}

.card-description {
  color: var(--text-light);
  margin: 0;
}

/* Business Card */
.business-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.business-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.business-card-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.business-card-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.business-card-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.business-card-info .category {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.business-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.business-card-meta i {
  color: var(--primary-color);
  margin-right: 0.25rem;
}

/* Rating Stars */
.rating-stars {
  color: #fbbf24;
}

.rating-stars .far {
  color: #d1d5db;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-open {
  background: #dcfce7;
  color: #16a34a;
}

.badge-closed {
  background: #fee2e2;
  color: #dc2626;
}

.badge-featured {
  background: var(--accent-color);
  color: var(--secondary-color);
}

/* Breadcrumb */
.breadcrumb-section {
  background: var(--bg-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb .separator {
  color: var(--border-color);
}

.breadcrumb .current {
  color: var(--text-color);
  font-weight: 600;
}

/* Community Header */
.community-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #4a2c7a 100%);
  padding: 3rem 0;
  color: white;
}

.community-header h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.community-header p {
  opacity: 0.9;
  margin: 0;
}

.community-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.community-stats .stat-item {
  text-align: center;
}

.community-stats .stat-item h3 {
  font-size: 2rem;
  margin: 0;
  color: var(--primary-color);
}

.community-stats .stat-item p {
  margin: 0;
  font-size: 0.85rem;
}

/* City Header */
.city-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #4a2c7a 100%);
  padding: 2rem 0;
  color: white;
}

.city-header h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

/* Province Cards */
.provinces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.province-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
}

.province-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.province-card h3 {
  margin: 0 0 0.5rem;
  color: var(--secondary-color);
}

.province-card .count {
  color: var(--primary-color);
  font-weight: 600;
}

/* Cities Grid */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.city-link {
  display: block;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.city-link:hover {
  border-color: var(--primary-color);
  background: var(--accent-color);
}

.city-link .name {
  font-weight: 600;
}

.city-link .count {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Business List */
.businesses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a {
  background: white;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .current {
  background: var(--primary-color);
  color: white;
}

/* Form Elements */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

/* Utilities */
.text-center {
  text-align: center;
}

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

.text-secondary {
  color: var(--secondary-color);
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 3rem; padding-bottom: 3rem; }

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .community-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .community-stats .stat-item {
    flex: 1;
    min-width: 80px;
  }
  
  .businesses-list {
    grid-template-columns: 1fr;
  }
  
  .provinces-grid {
    grid-template-columns: 1fr;
  }
  
  .business-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .business-card-meta {
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .main-nav,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}
