/* Name Image Card Styles */
.ano-name-card-container {
  margin: 30px 0;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.ano-name-card-container h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.ano-name-card-container h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  margin: 10px auto 0;
  border-radius: var(--radius-full);
}

.ano-name-card-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.ano-name-card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ano-name-card {
  position: relative;
  width: 100%;
  padding-top: 52.5%; /* 16:9 Aspect Ratio */
  background-color: #6366f1; /* Default background */
  overflow: hidden;
}

.ano-name-card-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 2;
}

.ano-name-card-border {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  z-index: 1;
}

.ano-name-card-inner-border {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(251, 191, 36, 0.6);
  border-radius: var(--radius-sm);
  z-index: 1;
}

.ano-name-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  line-height: 1.2;
}

.ano-name-divider {
  position: relative;
  width: 60%;
  height: 2px;
  background-color: rgba(251, 191, 36, 0.6);
  margin: 15px 0;
}

.ano-name-divider::before,
.ano-name-divider::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #f59e0b;
  border-radius: 50%;
  top: -3px;
}

.ano-name-divider::before {
  left: 0;
}

.ano-name-divider::after {
  right: 0;
}

.ano-name-divider-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #f59e0b;
  border-radius: 50%;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.ano-name-meaning-label {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
}

.ano-name-meaning-label::before,
.ano-name-meaning-label::after {
  content: "~";
  position: absolute;
  color: #f59e0b;
  font-size: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.ano-name-meaning-label::before {
  left: -25px;
}

.ano-name-meaning-label::after {
  right: -25px;
}

.ano-name-meaning {
  font-size: 1.25rem;
  color: white;
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.ano-name-card-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.ano-name-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 8px;
}

.ano-name-card-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ano-download-btn {
  background-color: var(--primary);
}

.ano-download-btn:hover {
  background-color: var(--primary-dark);
}

.ano-share-btn {
  background-color: var(--secondary);
}

.ano-share-btn:hover {
  background-color: #db2777;
}

.ano-name-card-caption {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-medium);
  text-align: center;
}

/* Decorative elements */
.ano-card-decoration {
  position: absolute;
  z-index: 1;
}

.ano-card-decoration-1 {
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border-top: 3px solid #f59e0b;
  border-left: 3px solid #f59e0b;
  border-top-left-radius: 10px;
}

.ano-card-decoration-2 {
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-top: 3px solid #f59e0b;
  border-right: 3px solid #f59e0b;
  border-top-right-radius: 10px;
}

.ano-card-decoration-3 {
  bottom: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid #f59e0b;
  border-left: 3px solid #f59e0b;
  border-bottom-left-radius: 10px;
}

.ano-card-decoration-4 {
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid #f59e0b;
  border-right: 3px solid #f59e0b;
  border-bottom-right-radius: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .ano-name-title {
    font-size: 2.5rem;
  }

  .ano-name-meaning-label {
    font-size: 1.25rem;
  }

  .ano-name-meaning {
    font-size: 1rem;
  }

  .ano-name-card-actions {
    flex-direction: column;
  }

  .ano-name-card-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ano-name-title {
    font-size: 2rem;
  }

  .ano-name-meaning-label {
    font-size: 1.1rem;
  }

  .ano-name-meaning {
    font-size: 0.9rem;
    max-width: 90%;
  }

  .ano-name-card-border {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
  }

  .ano-name-card-inner-border {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
