/* CSS spécifique pour les cartes romantiques */

.card-creation-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.card-creation-page h1 {
  text-align: center;
  color: #e91e63;
  margin-bottom: 10px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.2);
}

.card-creation-page .subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.form-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(233, 30, 99, 0.15);
  border: 2px solid #fce4ec;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 1.1em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #e91e63;
  background: white;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

#messagePreview {
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.btn-primary {
  background: linear-gradient(135deg, #e91e63 0%, #ff6090 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .icon {
  margin-right: 8px;
}

/* Page d'affichage de la carte */
.card-display-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.romantic-card {
  background: linear-gradient(135deg, #e91e63 0%, #ff6090 50%, #f48fb1 100%);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 40px rgba(233, 30, 99, 0.3);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.romantic-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.card-header {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.romantic-heart {
  font-size: 4em;
  margin-bottom: 15px;
  display: block;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.15);
  }
}

.romantic-title {
  font-size: 2.5em;
  margin: 0;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  font-style: italic;
}

.card-content {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.recipient-info {
  margin-bottom: 25px;
}

.recipient-info h2 {
  font-size: 1.8em;
  margin: 0;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-style: italic;
}

.romantic-messages {
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.romantic-message {
  margin: 0;
  font-size: 1.2em;
  font-weight: 500;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  display: block;
  width: fit-content;
  max-width: 90%;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.romantic-message:nth-child(1) { animation-delay: 0.2s; }
.romantic-message:nth-child(2) { animation-delay: 0.4s; }
.romantic-message:nth-child(3) { animation-delay: 0.6s; }

.sender-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.from-message {
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
  font-style: italic;
}

.sender-name {
  font-weight: bold;
  font-size: 1.2em;
  margin-left: 8px;
}

.card-footer {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.hearts-animation {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 1.5em;
}

.hearts-animation span {
  animation: pulse 1s infinite;
}

.hearts-animation span:nth-child(1) { animation-delay: 0s; }
.hearts-animation span:nth-child(2) { animation-delay: 0.2s; }
.hearts-animation span:nth-child(3) { animation-delay: 0.4s; }
.hearts-animation span:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.card-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .card-creation-page {
    padding: 15px;
  }

  .card-creation-page h1 {
    font-size: 2em;
  }

  .form-card {
    padding: 20px;
  }

  .btn-primary {
    width: 100%;
    padding: 12px 20px;
  }

  .card-display-page {
    padding: 15px;
  }

  .romantic-card {
    padding: 30px 20px;
  }

  .romantic-title {
    font-size: 2em;
  }

  .romantic-heart {
    font-size: 3em;
  }

  .card-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

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

.form-card {
  animation: fadeIn 0.6s ease-out;
}

.card-creation-page h1 {
  animation: heartbeat 2s infinite;
}

/* Thème sombre */
.dark-theme .form-card {
  background: #1a1a1a;
  border-color: #444;
  color: #fff;
}

.dark-theme .form-group label {
  color: #fff;
}

.dark-theme .form-group input,
.dark-theme .form-group select {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group select:focus {
  border-color: #e91e63;
  background: #333;
}

.dark-theme .card-creation-page .subtitle {
  color: #ccc;
}

/* Effet romantique en arrière-plan */
.card-creation-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 96, 144, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(244, 143, 177, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Share section styles */
.share-section {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.share-section h3 {
  color: #e91e63;
  margin-bottom: 15px;
}

.share-url {
  background: #f5f5f5;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9em;
  word-break: break-all;
  margin-bottom: 15px;
  color: #333;
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.action-buttons .btn {
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-buttons .btn:not(.btn-whatsapp):not(.btn-facebook) {
  background: linear-gradient(135deg, #e91e63 0%, #ff6090 100%);
  color: white;
}

.action-buttons .btn-whatsapp {
  background: #25D366;
  color: white;
}

.action-buttons .btn-facebook {
  background: #1877F2;
  color: white;
}

.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-theme .share-url {
  background: #333;
  color: #fff;
}

.dark-theme .share-section h3 {
  color: #ff6090;
}
