

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */

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

.main-title {
  font-family: "Barrio", Arial;
  font-size: 3rem;
  font-weight: 700;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #6b6b69;
  font-size: 1rem;
}

/* Mode selector */
.mode-selector {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.mode-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
}

.mode-btn.active {
  background: #4a4a4a;
  color: white;
}

.mode-btn:not(.active) {
  background: white;
  color: #4a4a4a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-btn:not(.active):hover {
  background: #f5f5f4;
}

/* Card mode */
.card-container {
  max-width: 700px;
  margin: 0 auto;
}

.proverb-card {
  background: #f5f0e8;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 3rem;
  border-radius: 10px;
  border: 2px solid #4a4a4a;
  position: relative;
  overflow: hidden;
}

.card-content {
  text-align: center;
  margin-bottom: 2rem;
}

.category-badge {
  display: inline-block;
  background: #4a4a4a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.proverb-text {
  font-size: 1.35rem;
  line-height: 1.6;
  color: #4a4a4a;
  font-weight: 500;
  font-family: "Atma", serif;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
}

.action-btn.primary {
  background: #4a4a4a;
  color: white;
}

.action-btn.primary:hover {
  background: #2a2a2a;
}

.action-btn.secondary {
  background: white;
  color: #4a4a4a;
}

.action-btn.secondary:hover {
  background: #f5f5f4;
}

.action-btn.favorite {
  background: white;
  color: #4a4a4a;
}

.action-btn.favorite.active {
  background: #c62828;
  color: white;
}

.action-btn.favorite:hover:not(.active) {
  background: #fee2e2;
}

.card-footer {
  text-align: center;
  margin-top: 2rem;
  color: #767674;
  font-size: 1rem;
}

/* List mode */
.list-container {
  max-width: 900px;
  margin: 0 auto;
}

.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e5e0d8;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: "Nunito", sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: #4a4a4a;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #767674;
}

.category-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e0d8;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
}

.category-select:focus {
  outline: none;
  border-color: #4a4a4a;
}

.proverbs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proverb-item {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e0d8;
  transition: all 0.2s ease;
  display: flex;
  gap: 1rem;
  align-items: start;
}

.proverb-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.proverb-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.proverb-content {
  flex: 1;
}

.proverb-item-text {
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.proverb-item-category {
  display: inline-block;
  background: #f5f5f4;
  color: #6b6b69;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}

.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #767674;
  transition: color 0.2s ease;
}

.favorite-btn:hover {
  color: #c62828;
}

.favorite-btn.active {
  color: #c62828;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.empty-state p:first-child {
  font-size: 1.25rem;
  color: #767674;
  margin-bottom: 0.5rem;
}

.empty-state p:last-child {
  font-size: 0.9rem;
  color: #6b6b69;
}

/* Favorites mode */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.favorite-card {
  background: linear-gradient(135deg, #fee2e2 0%, #fef3c7 100%);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #fecaca;
}

.favorite-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.favorite-card-category {
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: #6b6b69;
}

.favorite-card-text {
  color: #4a4a4a;
  line-height: 1.6;
  font-style: italic;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 3rem;
  color: #767674;
  font-size: 0.875rem;
  font-style: italic;
}

.footer p:first-child {
  margin-bottom: 0.5rem;
}

/* Print styles - CARTE POSTALE */
@page { size: 148mm 105mm; margin: 0; }
@media print {
  .site-header, .site-footer, .cookie-popup, .skip-link, main { display: none !important; }
  body { background: #fff; }
  .print-area { display: block !important; }
}
.print-area { display: none; }

.postcard {
  width: 148mm;
  height: 105mm;
  position: relative;
  background: linear-gradient(135deg, #fef3c7 0%, #f5f0e8 50%, #e8f5e9 100%);
  border: 3mm solid #a67b5b;
  padding: 15mm;
  box-sizing: border-box;
  font-family: "Cormorant Garamond", serif;
}

.postcard-ornament {
  position: absolute;
  font-size: 80px;
  opacity: 0.08;
}

.postcard-ornament.top-left {
  top: 10mm;
  left: 10mm;
}

.postcard-ornament.bottom-right {
  bottom: 10mm;
  right: 10mm;
}

.postcard-header {
  text-align: center;
  margin-bottom: 15mm;
}

.postcard-title {
  font-size: 20pt;
  font-weight: 700;
  color: #a67b5b;
  letter-spacing: 1px;
  margin-bottom: 3mm;
}

.postcard-subtitle {
  font-size: 10pt;
  color: #6b6b69;
  font-style: italic;
}

.postcard-content {
  text-align: center;
  margin-bottom: 15mm;
}

.postcard-category {
  display: inline-block;
  background: #4a4a4a;
  color: white;
  padding: 3mm 8mm;
  border-radius: 20mm;
  font-size: 9pt;
  font-weight: 600;
  margin-bottom: 8mm;
}

.postcard-text {
  font-size: 16pt;
  line-height: 1.6;
  color: #4a4a4a;
  font-style: italic;
  font-weight: 500;
  margin: 0 10mm;
}

.postcard-footer {
  text-align: center;
  font-size: 8pt;
  color: #767674;
  font-style: italic;
  position: absolute;
  bottom: 8mm;
  left: 15mm;
  right: 15mm;
}

.postcard-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, #a67b5b, transparent);
  margin: 8mm auto;
}

/* Icons (simple SVG alternatives) */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .proverb-card {
    padding: 2rem;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }
}

.favorite-btn{font-size:1.25rem;min-width:44px;min-height:44px}
@media (max-width:480px){.proverb-card{padding:1.5rem}.mode-btn{flex:1 1 auto}}
