@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@400;500&display=swap');

.swal2-container,
.swal2-popup {
    font-family: 'Prompt', sans-serif !important;
}

/* Base Styles */
body {
    font-family: 'Prompt', sans-serif;
    background-color: #F0FDF4;
    /* Very light green hint */
}

/* Custom Scrollbar for Carousel */
.scrollbar-thin::-webkit-scrollbar {
    height: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: #D4AF37;
    /* Thai Gold */
    border-radius: 4px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: #B5952F;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Prompt', sans-serif;
}

/* Custom Colors */
.text-thai-gold {
    color: #D4AF37;
}

.bg-thai-gold {
    background-color: #D4AF37;
}

.border-thai-gold {
    border-color: #D4AF37;
}

.bg-thai-cream {
    background-color: #FFFBF0;
}

.text-thai-green {
    color: #2F855A;
}

/* Darker green for text readability */
.bg-thai-green-light {
    background-color: #C6F6D5;
}

/* Hero Section Enhancement */
.hero-pattern {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border-bottom: 4px solid #D4AF37;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Enhanced Card */
.thai-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Subtle Gold Border */
    position: relative;
    overflow: hidden;
}

.thai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #D4AF37;
    background-color: #FFFCF2;
    /* Warm glow on hover */
}

/* Corner Motif */
.thai-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37' fill-opacity='0.3'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5-9h10v2H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top -10px right -10px;
    transform: rotate(45deg);
    pointer-events: none;
    opacity: 0.6;
}

/* Floating Gold Ornaments */
.kanok-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.kanok-divider::before,
.kanok-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #D4AF37;
    margin: 0 1rem;
    opacity: 0.5;
}

.kanok-icon {
    color: #D4AF37;
    font-size: 1.5rem;
}

/* Winner Frame Style Enhanced */
.winner-frame {
    position: relative;
    padding: 8px;
    border: 4px double #D4AF37;
    border-radius: 50%;
    display: inline-block;
    background: white;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.winner-frame::after {
    content: '👑';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Buttons */
.btn-thai {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(212, 175, 55, 0.4);
    border: 1px solid #B8860B;
}

.btn-thai:hover {
    background: linear-gradient(135deg, #F1C40F 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.5);
}

.btn-vote {
    background-color: #48BB78;
    color: white;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-vote:hover {
    background-color: white;
    color: #2F855A;
    border-color: #48BB78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

/* Floating Heart Animation */
@keyframes float-up {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-80px) scale(1.5);
        opacity: 0;
    }
}

.animate-float-up {
    animation: float-up 3s ease-in infinite;
}

.delay-1000 {
    animation-delay: 1s;
}

.delay-2000 {
    animation-delay: 2s;
}