/* Backup CSS for hosting when Vite doesn't work */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Custom styles for LuckySpin */
.bg-gradient-to-b {
    background: linear-gradient(to bottom, #fdf2f8, #fce7f3);
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.text-red-600 {
    color: #dc2626;
}

.text-gray-700 {
    color: #374151;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.bg-red-500 {
    background-color: #ef4444;
}

.text-white {
    color: #ffffff;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.block {
    display: block;
}

.text-center {
    text-align: center;
}

.flex-1 {
    flex: 1 1 0%;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sm\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.bg-white {
    background-color: #ffffff;
}

.border-t {
    border-top-width: 1px;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.p-2 {
    padding: 0.5rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.text-gray-600 {
    color: #4b5563;
}

.hover\:text-gray-900:hover {
    color: #111827;
}

/* Wheel styles */
.wheel-wrapper {
    position: relative;
    margin: 0 auto;
}

#wheelCanvas {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

#wheelGlow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, rgba(255,165,0,0.2) 30%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

/* Button styles */
#spinBtn {
    border-radius: 50px;
    width: min(160px, 40vw);
    height: min(60px, 12vw);
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 700;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    color: white;
    cursor: pointer;
}

#spinBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* History styles */
#resultBox {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 1rem;
    color: #6b7280;
}

#historyList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, #fef3c7, #fed7aa);
    border-radius: 0.5rem;
    border: 1px solid #fbbf24;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.history-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .history-item {
        flex-direction: row;
        align-items: center;
    }
}

.history-number {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .history-number {
        margin-bottom: 0;
    }
}

.history-content {
    flex: 1;
}

.history-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.history-details {
    color: #6b7280;
    font-size: 0.875rem;
}

.history-time {
    text-align: left;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .history-time {
        text-align: right;
    }
}

/* Responsive text */
.responsive-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.responsive-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

/* Footer */
footer {
    background-color: #ffffff;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}
