/* Custom styles for Ramen Thursdays */

/* Custom Font - Mainstay */
@font-face {
    font-family: 'Mainstay';
    src: url('../fonts/Mainstay.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom Font - GO3V2 */
@font-face {
    font-family: 'GO3V2';
    src: url('../fonts/go3v2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Mainstay font class */
.mainstay-font {
    font-family: 'Mainstay', serif !important;
}

/* GO3V2 font class */
.go3v2-font {
    font-family: 'GO3V2', sans-serif !important;
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Custom focus styles */
.focus\:ring-ramen-orange:focus {
    --tw-ring-color: #FF6B35;
}

/* Form enhancements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
}

/* Star rating styles */
.star-rating .star {
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating .star:hover {
    transform: scale(1.1);
}

.star-rating .star:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Choice card styles */
.choice-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.choice-card:hover:not(.selected) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Selected state for choice cards */
.choice-card.selected {
    border-color: #FF6B35 !important;
    background-color: #FFF8DC !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

/* Countdown timer styles */
.countdown-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

#countdown {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: 0.05em;
}

/* Animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Alert animations */
.alert {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Progress indicator */
.progress-step {
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 2rem;
    height: 2px;
    background-color: #e5e7eb;
    transform: translateY(-50%);
}

.progress-step.completed::after {
    background-color: #dc2626;
}

/* Table enhancements */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table th {
    position: sticky;
    top: 0;
    background-color: #f9fafb;
    z-index: 10;
}

/* Mobile menu */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 200px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-gradient-to-br {
        background: #dc2626 !important;
        color: white !important;
    }
    
    .shadow-lg,
    .shadow-sm {
        box-shadow: none !important;
    }
    
    .rounded-xl,
    .rounded-lg {
        border: 1px solid #e5e7eb !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .choice-card {
        border-width: 2px;
    }
    
    .choice-card:hover {
        border-color: #000;
    }
    
    .text-gray-600 {
        color: #000 !important;
    }
    
    .text-gray-500 {
        color: #333 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .choice-card:hover {
        transform: none;
    }
    
    .star-rating .star:hover {
        transform: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Currently not implemented, but structure is here for future enhancement */
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
