/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Fredoka:wght@300;400;500;600;700&display=swap');

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: hsl(200, 40%, 98%);
  --foreground: hsl(240, 50%, 20%);
  --border: hsl(200, 30%, 85%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(240, 50%, 20%);
  --card-border: hsl(200, 30%, 88%);
  --primary: hsl(280, 65%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(45, 95%, 55%);
  --secondary-foreground: hsl(240, 50%, 20%);
  --muted: hsl(200, 35%, 92%);
  --muted-foreground: hsl(240, 30%, 35%);
  --accent: hsl(340, 75%, 92%);
  --accent-foreground: hsl(340, 60%, 30%);
  --destructive: hsl(0, 72%, 45%);
  --destructive-foreground: hsl(0, 10%, 98%);
  --font-sans: 'Quicksand', sans-serif;
  --font-serif: 'Fredoka', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

header .header-content {
  padding: 1.5rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

header p {
  font-size: 1rem;
  font-family: var(--font-serif);
  max-width: 42rem;
  margin: 0 auto 1rem;
}

/* Search Input */
.search-container {
  max-width: 28rem;
  margin: 0 auto;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem 0 2.5rem;
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  background-color: var(--card);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(280, 65%, 55%, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(250, 250, 250, 0.95), rgba(250, 250, 250, 0.5), transparent);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hero-text {
  text-align: center;
  max-width: 48rem;
  padding-bottom: 3rem;
}

.hero-text h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07));
}

.hero-text .hero-description {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  line-height: 1.625;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.05));
}

.hero-text .hero-subtitle {
  font-size: 1rem;
  font-family: var(--font-serif);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.05));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.875rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-outline.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background-color: var(--muted);
}

/* Category Filters */
.category-filters {
  overflow-x: auto;
  margin: 0 -1rem;
  padding: 0 1rem 0.5rem;
}

.category-buttons {
  display: flex;
  gap: 0.75rem;
  min-width: max-content;
  justify-content: center;
  flex-wrap: wrap;
}

/* Gallery Section */
.gallery-section {
  padding: 3rem 0;
  background-color: hsla(340, 75%, 92%, 0.3);
}

.gallery-title {
  text-align: center;
  font-size: 1.875rem;
  margin-bottom: 2.5rem;
}

.drawings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Drawing Card */
.drawing-card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.drawing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -4px rgb(0 0 0 / 0.12), 0 4px 8px -2px rgb(0 0 0 / 0.06);
}

.drawing-image-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--muted);
}

.drawing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.drawing-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.drawing-card:hover .drawing-overlay {
  opacity: 1;
}

.download-icon-circle {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  padding: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.drawing-title {
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA Section */
.cta-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, hsla(280, 65%, 55%, 0.1), hsla(45, 95%, 55%, 0.1));
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background-color: var(--card);
  padding: 2rem 1rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-separator {
  color: var(--muted-foreground);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-content {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 28rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.modal-image-container {
  margin: 1rem 0;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--muted);
  border: 1px solid var(--border);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hidden {
  display: none !important;
}

/* Vendas Page Styles */
.vendas-container {
  min-height: 100vh;
  background: linear-gradient(135deg, hsla(280, 65%, 55%, 0.1), hsla(340, 75%, 92%, 0.15), hsla(45, 95%, 55%, 0.1));
  padding: 2rem 1rem;
}

.vendas-content {
  max-width: 56rem;
  margin: 0 auto;
}

.back-button {
  margin-bottom: 1.5rem;
}

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

.special-offer-badge {
  display: inline-block;
  background-color: hsla(45, 95%, 55%, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.special-offer-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary-foreground);
}

.vendas-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.vendas-subtitle {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  max-width: 42rem;
  margin: 0 auto;
}

.price-card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
}

.price-section {
  text-align: center;
  margin-bottom: 2rem;
}

.price-box {
  display: inline-block;
  background-color: hsla(280, 65%, 55%, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid var(--primary);
}

.old-price {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.current-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.discount-badge {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
}

.price-note {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  margin-top: 1rem;
}

.features-section {
  margin-bottom: 2rem;
}

.features-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.features-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  padding: 0.25rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-text {
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
}

.buy-button-section {
  text-align: center;
  padding: 2rem 0;
}

.btn-buy {
  padding: 1rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

/* Responsive Design */
@media (min-width: 640px) {
  header h1 {
    font-size: 2.25rem;
  }
  
  header p {
    font-size: 1.125rem;
  }
  
  .hero-text h2 {
    font-size: 2.25rem;
  }
  
  .hero-text .hero-description {
    font-size: 1.25rem;
  }
  
  .gallery-title {
    font-size: 2.25rem;
  }
  
  .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-links a {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  .hero-text h2 {
    font-size: 2.5rem;
  }
  
  .hero-text .hero-description {
    font-size: 1.25rem;
  }
  
  .btn-primary {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
  }
  
  .gallery-title {
    font-size: 2.5rem;
  }
  
  .vendas-title {
    font-size: 3rem;
  }
  
  .vendas-subtitle {
    font-size: 1.25rem;
  }
  
  .current-price {
    font-size: 3.75rem;
  }
  
  .feature-text {
    font-size: 1.125rem;
  }
  
  .price-card {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  header h1 {
    font-size: 3rem;
  }
  
  .hero-text h2 {
    font-size: 3rem;
  }
  
  .gallery-title {
    font-size: 3rem;
  }
  
  .vendas-title {
    font-size: 3.75rem;
  }
}

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

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

.loading-card {
  aspect-ratio: 1;
  border-radius: 1rem;
}

/* Icons (using Unicode characters as fallback) */
.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}
