/* Custom styles for the wedding website */

/* Section transitions */
.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}


/* Bento grid hover effects */
.bento-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-template-rows: masonry;

}

.bento-card {
    background: #F6F5F2;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(58, 90, 64, 0.10);
    padding: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

/* Only clickable cards get hover effect */
a.bento-card:hover, a.bento-card:focus, .bento-card.bento-card-hover:hover, .bento-card.bento-card-hover:focus {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(58, 90, 64, 0.18);
}

.card-hover {
    transition: box-shadow 0.3s, transform 0.3s;
}

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

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

::-webkit-scrollbar-thumb {
    background: #A3C9A8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3A5A40;
}

/* Form styles */
input, textarea, select {
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    color: #1B4332;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3A5A40;
    box-shadow: 0 0 0 2px #A3C9A8;
}

::placeholder {
    color: #3A5A40;
    opacity: 0.7;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #B76E79, #D4A5A5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card glass effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .bento-card {
        padding: 1.25rem;
    }
}

@media (min-width: 769px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    
    .section {
        display: block !important;
        page-break-inside: avoid;
    }
}

footer {
    color: #1B4332;
}

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F6F5F2 0%, #A3C9A8 100%);
}

.font-serif {
    font-family: 'Playfair Display', serif;
}


/* Remove tap highlight on mobile */
.bento-card, button, a {
    -webkit-tap-highlight-color: transparent;
}

.funny-ripple {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.funny-ripple .ripple {
  background-color: rgba(58, 90, 64, 1); /* verd bosc translúcid */
  border-radius: 50%;
  position: absolute;
  transform: scale(0);
  animation: ripple .5s linear forwards;
  pointer-events: none;
  z-index: 2;
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
