/* Custom styles for Secret Santa */

/* Festive background with Christmas decorations */
body {
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='50' font-size='50' opacity='0.07'%3E🎄%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='50' font-size='40' opacity='0.06'%3E🎁%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='50' font-size='35' opacity='0.05'%3E⭐%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='50' font-size='30' opacity='0.05'%3E❄️%3C/text%3E%3C/svg%3E");
    background-size: 200px 200px, 180px 180px, 150px 150px, 120px 120px;
    background-position: 0 0, 100px 50px, 50px 100px, 150px 150px;
    pointer-events: none;
    z-index: -1;
}

/* Top decorative banner */
.page-header {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    padding: 2rem;
    margin: -2rem -1rem 2rem -1rem;
    border-radius: 0 0 2rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

/* Smooth transitions */
[x-cloak] {
    display: none !important;
}

/* Card styling */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Festive header text */
.festive-title {
    color: #c41e3a;
    text-shadow: 2px 2px 0 rgba(196, 30, 58, 0.1);
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Corner decorations */
.corner-decoration {
    position: fixed;
    font-size: 4rem;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.corner-decoration.top-left {
    top: 1rem;
    left: 1rem;
}

.corner-decoration.top-right {
    top: 1rem;
    right: 1rem;
}

.corner-decoration.bottom-left {
    bottom: 1rem;
    left: 1rem;
}

.corner-decoration.bottom-right {
    bottom: 1rem;
    right: 1rem;
}

/* Confetti animation for reveal page */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    top: 0;
    animation: confetti-fall 3s ease-out forwards;
    pointer-events: none;
}

/* Reveal animation */
@keyframes reveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.reveal-animation {
    animation: reveal 0.6s ease-out forwards;
}

/* Gentle float animation for decorative elements */
@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.float-animation {
    animation: gentle-float 4s ease-in-out infinite;
}

/* Pulse animation for important elements */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(196, 30, 58, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
    }
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Snowfall animation */
@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0;
    }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Status badges */
.badge-sent {
    background-color: #dcfce7;
    color: #166534;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-viewed {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-manual {
    background-color: #f3f4f6;
    color: #374151;
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Festive button styles */
.btn-festive {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-festive:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-festive-green {
    background: linear-gradient(135deg, #165b33 0%, #0d4025 100%);
    box-shadow: 0 4px 15px rgba(22, 91, 51, 0.3);
}

.btn-festive-green:hover {
    box-shadow: 0 6px 20px rgba(22, 91, 51, 0.4);
}

/* Responsive table */
@media (max-width: 640px) {
    .responsive-table {
        display: block;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        background: #f9fafb;
        border-radius: 0.5rem;
        padding: 1rem;
    }

    .responsive-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
    }

    .responsive-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
    }
}

/* Santa colors as CSS variables */
:root {
    --santa-red: #c41e3a;
    --santa-green: #165b33;
    --santa-gold: #d4af37;
}
