/* Custom Styles */
:root {
    --primary-red: #B8860B;
    --primary-gold: #FFD700;
    --secondary-gold: #DAA520;
    --light-gold: #FFF8DC;
    --rich-gold: #D4AF37;
    --warm-white: #FFFAF0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--warm-white);
}

/* Shining effect for registration button */
@keyframes shine {
    0% {
        box-shadow: 0 0 5px var(--primary-gold);
    }
    50% {
        box-shadow: 0 0 20px var(--rich-gold), 0 0 30px var(--secondary-gold);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 5px var(--primary-gold);
    }
}

.fixed.bottom-6.right-6 {
    animation: shine 2s infinite;
    background: linear-gradient(45deg, var(--rich-gold), var(--primary-gold));
    border: 2px solid var(--secondary-gold);
}

/* Carousel styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--light-gold), transparent);
    padding: 1rem;
    border-radius: 1rem;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: auto;
    border: 3px solid var(--secondary-gold);
    border-radius: 0.5rem;
    overflow: hidden;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--secondary-gold);
    margin: 0 5px;
    padding: 0;
    background-color: var(--light-gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots button.active {
    background-color: var(--rich-gold);
    transform: scale(1.2);
}

/* Blessing form styles */
.blessing-phrase {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--secondary-gold);
    background: linear-gradient(135deg, #FFE4B5, #FFF8DC, #FFFFE0);
    border-radius: 16px;
    padding: 12px 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(218, 165, 32, 0.15);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.blessing-phrase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.blessing-phrase:hover::before {
    left: 100%;
}

.blessing-phrase:hover {
    transform: scale(1.08) translateY(-2px);
    background: linear-gradient(135deg, var(--primary-gold), var(--rich-gold), #FFD700);
    color: #8B4513;
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.3);
    border-color: var(--rich-gold);
}

.blessing-phrase:active {
    transform: scale(1.02) translateY(0);
    box-shadow: 0 2px 10px rgba(218, 165, 32, 0.4);
}

.blessing-phrase.selected {
    background: linear-gradient(135deg, #32CD32, #90EE90, #98FB98);
    border-color: #228B22;
    color: #006400;
    animation: pulse 1s infinite;
}

.blessing-phrase .emoji {
    font-size: 1.5rem;
    margin-bottom: 4px;
    display: block;
    animation: float 2s ease-in-out infinite;
}

.blessing-phrase .text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.blessing-bounce:hover .emoji {
    animation: bounce 0.6s ease-in-out;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Grid layout for blessing phrases */
.blessing-grid {
    gap: 12px;
}

@media (max-width: 640px) {
    .blessing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blessing-phrase .emoji {
        font-size: 1.2rem;
    }
    
    .blessing-phrase .text {
        font-size: 0.75rem;
    }
}

/* Form elements styling */
input[type="text"], textarea {
    border: 2px solid var(--secondary-gold);
    background-color: var(--warm-white);
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--rich-gold);
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

/* Section styling */
.bg-white {
    background: linear-gradient(135deg, var(--warm-white), white);
    border: 1px solid rgba(218, 165, 32, 0.1);
}

.shadow-lg {
    box-shadow: 0 4px 6px -1px rgba(218, 165, 32, 0.1), 0 2px 4px -1px rgba(218, 165, 32, 0.06);
}

/* Header styling */
header.fixed {
    background: linear-gradient(to right, var(--warm-white), white);
    border-bottom: 2px solid var(--secondary-gold);
}

/* Success message styling */
.success-message {
    background: linear-gradient(45deg, var(--rich-gold), var(--primary-gold));
    color: var(--warm-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

    .text-2xl {
        font-size: 1.5rem;
    }

    .blessing-phrase {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Button hover effects */
button[type="submit"] {
    background: linear-gradient(45deg, var(--rich-gold), var(--primary-gold));
    border: none;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(45deg, var(--primary-gold), var(--rich-gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2);
}

/* YouTube player responsive container */
.aspect-w-16.aspect-h-9 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-w-16.aspect-h-9 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Countdown timer styles */
.timer {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Success message animation */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-message {
    animation: slideIn 0.3s ease-out;
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

/* Memory Card Game Styles */
.memory-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    cursor: pointer;
    perspective: 1000px;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
    opacity: 0.6;
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.memory-card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #5a67d8;
}

.memory-card-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 3px solid #ed64a6;
    transform: rotateY(180deg);
}

.memory-card:hover:not(.flipped):not(.matched) .memory-card-inner {
    transform: scale(1.05);
}

@keyframes cardMatch {
    0%, 100% {
        transform: rotateY(180deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
    }
}

.memory-card.matched .memory-card-inner {
    animation: cardMatch 0.5s ease-in-out;
} 