/* ============================================================
   LOCAL CDMX — pages.css
   Page-specific styles: landing, search, profile, publish, account
   ============================================================ */

/* ==================== LANDING PAGE ==================== */
.landing-page .hero-section {
  min-height: 520px;
  display: flex;
  align-items: center;
}

.landing-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
}

.landing-stat {
  text-align: center;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md) var(--space-lg);
  min-width: 140px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform var(--transition), box-shadow var(--transition);
}

.landing-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,127,63,0.1);
}

.landing-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  line-height: 1;
}

.landing-stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.landing-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 500;
}

/* ==================== HERO PREMIUM ELEMENTS ==================== */

/* Glassmorphism search wrapper */
.hero-search-glass {
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  padding: 8px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
}

.hero-search-glass .hero-search-box {
  margin: 0;
}

/* Floating decorative shapes */
.hero-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-decor-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -100px;
  background: radial-gradient(circle, rgba(255,127,63,0.12) 0%, transparent 70%);
  filter: blur(60px);
  animation: floatSlow 15s ease-in-out infinite;
}

.hero-decor-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: 5%;
  background: radial-gradient(circle, rgba(255,165,0,0.08) 0%, transparent 70%);
  filter: blur(40px);
  animation: floatSlow 20s ease-in-out infinite reverse;
}

.hero-decor-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: 80%;
  background: radial-gradient(circle, rgba(255,127,63,0.06) 0%, transparent 70%);
  filter: blur(30px);
  animation: floatSlow 12s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-20px) translateX(10px); }
  66% { transform: translateY(10px) translateX(-10px); }
}

/* ==================== SOCIAL ICON CIRCLES ==================== */
.social-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
  text-decoration: none;
}

.social-icon-circle:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(255,127,63,0.4);
}

/* ==================== FOOTER GRADIENT LINE ==================== */
.footer-gradient-line {
  height: 4px;
  background: linear-gradient(90deg,
    #FF7F3F 0%, #FFB347 25%, #FF6B35 50%, #FFD700 75%, #FF7F3F 100%);
  background-size: 200% 100%;
  animation: shimmerLine 3s ease infinite;
}

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

/* ==================== CARD IMAGE OVERLAY ==================== */
.card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-xl) var(--space-xl) calc(var(--space-xl) + 4px);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

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

/* Large quotation mark SVG background decoration */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 16px;
  width: 80px;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='0' y='85' font-size='100' font-family='Georgia,serif' fill='%23FF7F3F' opacity='0.05'%3E%E2%80%9C%3C/text%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.testimonial-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(255,127,63,0.2);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.testimonial-role {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Alcaldias preview */
.alcaldias-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 700px;
  margin: 0 auto;
}

.alcaldia-chip {
  padding: 10px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.alcaldia-chip::before {
  content: '📍';
  font-size: 0.7em;
  margin-right: 2px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.alcaldia-chip:hover::before {
  opacity: 1;
}

.alcaldia-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-primary);
}

/* ==================== SEARCH RESULTS PAGE ==================== */
.search-featured-section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-md);
}

.search-featured-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-featured-carousel {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}

.search-featured-carousel::-webkit-scrollbar {
  display: none;
}

.search-no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.search-no-results-icon {
  font-size: 64px;
  margin-bottom: var(--space-md);
}

.search-no-results h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.search-no-results p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

/* Map collapsed toggle */
.map-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==================== BUSINESS PROFILE PAGE ==================== */
.profile-page .profile-cover--default {
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFE8D6 40%, #FFF5EC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-page .profile-cover--default .cover-icon {
  font-size: 80px;
  opacity: 0.3;
}

/* Hours display */
.hours-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 4px var(--space-md);
  font-size: var(--font-size-sm);
}

.hours-day {
  font-weight: 600;
  color: var(--text);
}

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

.hours-today {
  color: var(--green);
  font-weight: 600;
}

/* Premium video section */
.profile-video-section {
  margin-bottom: var(--space-lg);
}

/* Profile breadcrumb */
.profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

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

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

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

/* Share button */
.share-dropdown {
  position: relative;
}

.share-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 180px;
  z-index: var(--z-dropdown);
  display: none;
}

.share-menu.open {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.share-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.share-option:hover {
  background: var(--bg);
  color: var(--primary);
}

/* ==================== PUBLISH FORM PAGE ==================== */
.publish-page-hero {
  background: var(--primary-gradient-soft);
  padding: var(--space-xl) 0;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.publish-page-hero h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.publish-page-hero p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.publish-plan-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.plan-card {
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  position: relative;
}

.plan-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.plan-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-glow-primary);
}

.plan-card--pro {
  border-color: var(--pro-gold);
}

.plan-card--pro.selected {
  border-color: var(--pro-gold);
  background: var(--pro-gold-light);
  box-shadow: var(--shadow-glow-gold);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
}

.plan-icon {
  font-size: 36px;
  margin-bottom: var(--space-sm);
}

.plan-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-price {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.plan-price span {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-light);
}

.plan-features {
  text-align: left;
  margin-top: var(--space-md);
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  padding: 4px 0;
}

.plan-feature-icon {
  color: var(--green);
  font-size: 14px;
}

/* Category-specific dynamic fields */
.dynamic-fields-container {
  background: var(--primary-light);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  border: 1px dashed rgba(255,127,63,0.3);
}

.dynamic-fields-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

/* ==================== MY ACCOUNT PAGE ==================== */
.account-businesses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.account-business-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-md);
  transition: all var(--transition);
}

.account-business-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.account-business-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.account-business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-business-info {
  flex: 1;
  min-width: 0;
}

.account-business-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 4px;
}

.account-business-status {
  font-size: var(--font-size-xs);
  margin-bottom: var(--space-sm);
}

.account-business-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
}

/* ==================== FAVORITES PAGE ==================== */
.favorites-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.favorites-header {
  margin-bottom: var(--space-xl);
}

.favorites-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 800;
}

.favorites-header p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

/* ==================== LOGIN/REGISTER MODALS ==================== */
.auth-modal .modal-body {
  padding: var(--space-lg) var(--space-xl);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.auth-logo-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto var(--space-sm);
  box-shadow: var(--shadow-glow-primary);
}

.auth-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.auth-switch {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* ==================== PAGE TRANSITIONS ==================== */
.page-enter {
  animation: fadeInUp 0.4s ease forwards;
}

/* ==================== RESPONSIVE PAGES ==================== */
@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .publish-plan-selector {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .landing-stats {
    gap: var(--space-lg);
  }
  .landing-stat-number {
    font-size: var(--font-size-xl);
  }
  .map-toggle-btn {
    display: flex;
  }
  .favorites-grid {
    grid-template-columns: 1fr;
  }
  .account-businesses-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .landing-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  .alcaldias-cloud {
    gap: 6px;
  }
  .alcaldia-chip {
    padding: 6px 12px;
    font-size: var(--font-size-xs);
  }
}
