/* Additional styles for wedding invitation website */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate-fade-in {
  animation: fadeIn 1.5s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 1s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Paper texture background */
.paper-texture {
  background-image: url("https://www.transparenttextures.com/patterns/white-paper.png");
  background-repeat: repeat;
}

/* Dotted dividers */
.dotted-divider {
  border: none;
  height: 1px;
  background-image: linear-gradient(
    to right,
    transparent,
    #ccc 50%,
    transparent
  );
  margin: 2rem auto;
  width: 60%;
  position: relative;
}

/* Add floral element to dotted divider */
.dotted-divider::before,
.dotted-divider::after {
  content: "❦";
  position: absolute;
  top: -10px;
  color: #d1c9c0;
  font-size: 20px;
}

.dotted-divider::before {
  left: 30%;
}

.dotted-divider::after {
  right: 30%;
  transform: scaleX(-1);
}

/* Envelope effect */
.envelope-effect {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(210, 210, 210, 0.4);
}

.envelope-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.envelope-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, #e6e6e6, #f0f0f0, #e6e6e6);
}

/* Photo frame effect */
.photo-frame {
  padding: 8px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.photo-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Wedding watermark */
.section-divider {
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 120px;
  height: 120px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23f8f8f8" d="M50 92.5c-1.5 0-2.9-.6-3.9-1.6L19.1 64c-10.5-10.5-10.5-27.6 0-38.1C29.6 15.4 46.7 15.4 57.2 26l4 3.9 3.9-3.9C75.6 15.4 92.7 15.4 103.2 26c10.5 10.5 10.5 27.6 0 38.1L76.3 90.9c-1 1-2.4 1.6-3.9 1.6H50z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* Responsive image grid */
@media (max-width: 640px) {
  .responsive-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Decorative floral corner element */
.floral-corner {
  position: relative;
}

.floral-corner::before,
.floral-corner::after {
  position: absolute;
  color: #d1c9c0;
  font-size: 24px;
}

.floral-corner::before {
  content: "✿";
  top: -15px;
  left: -15px;
  transform: rotate(45deg);
}

.floral-corner::after {
  content: "✿";
  bottom: -15px;
  right: -15px;
  transform: rotate(225deg);
}

/* Elegant button hover effect */
.elegant-button {
  position: relative;
  overflow: hidden;
}

.elegant-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.elegant-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Form styling enhancements */
.form-input:focus {
  border-color: #888;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Handwritten text effect */
.handwritten {
  font-family: "Great Vibes", cursive;
  line-height: 1.6;
  letter-spacing: 1px;
}

/* Wedding countdown styling */
.countdown-item {
  position: relative;
}

.countdown-item:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -20px;
  top: 5px;
  font-size: 2rem;
  color: #d1c9c0;
}

/* Wax seal effect for buttons */
.wax-seal {
  position: relative;
  padding-top: 10px;
  padding-right: 30px;
}

.wax-seal::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-color: #dc9f96;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.wax-seal::after {
  content: "J&S";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Great Vibes", cursive;
  font-size: 12px;
  color: white;
  z-index: 2;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .mobile-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-text-center {
    text-align: center;
  }
}
