/* Global Countdowns Hub - Custom Styles */

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

/* Smooth transitions */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom button styles */
.btn-primary {
    @apply bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors;
}

.btn-secondary {
    @apply bg-gray-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-gray-700 focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 transition-colors;
}

.btn-danger {
    @apply bg-red-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-red-700 focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition-colors;
}

.btn-success {
    @apply bg-green-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-green-700 focus:ring-2 focus:ring-green-500 focus:ring-offset-2 transition-colors;
}

/* Card styles */
.card {
    @apply bg-white rounded-lg shadow-md overflow-hidden;
}

.card-hover {
    @apply hover:shadow-lg transition-shadow duration-300;
}

/* Countdown timer styles */
.countdown-timer {
    @apply grid grid-cols-2 md:grid-cols-4 gap-4;
}

.countdown-item {
    @apply bg-white bg-opacity-20 rounded-lg p-4 text-center;
}

.countdown-number {
    @apply text-3xl md:text-4xl font-bold;
}

.countdown-label {
    @apply text-sm opacity-90 mt-1;
}

/* Event card styles */
.event-card {
    @apply bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition-shadow duration-300;
}

.event-card-image {
    @apply w-full h-48 object-cover;
}

.event-card-content {
    @apply p-6;
}

.event-card-title {
    @apply text-xl font-semibold mb-2;
}

.event-card-excerpt {
    @apply text-gray-600 mb-4;
}

.event-card-meta {
    @apply flex items-center justify-between text-sm text-gray-500;
}

/* Badge styles */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-blue {
    @apply bg-blue-100 text-blue-800;
}

.badge-green {
    @apply bg-green-100 text-green-800;
}

.badge-yellow {
    @apply bg-yellow-100 text-yellow-800;
}

.badge-red {
    @apply bg-red-100 text-red-800;
}

.badge-purple {
    @apply bg-purple-100 text-purple-800;
}

.badge-gray {
    @apply bg-gray-100 text-gray-800;
}

/* Form styles */
.form-input {
    @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

.form-help {
    @apply text-gray-500 text-sm mt-1;
}

/* Modal styles */
.modal-overlay {
    @apply fixed inset-0 bg-gray-600 bg-opacity-50 z-50;
}

.modal-content {
    @apply bg-white rounded-lg shadow-xl max-w-md w-full mx-4;
}

/* Loading spinner */
.spinner {
    @apply animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600;
}

/* Alert styles */
.alert {
    @apply p-4 rounded-lg border;
}

.alert-success {
    @apply bg-green-100 border-green-400 text-green-700;
}

.alert-error {
    @apply bg-red-100 border-red-400 text-red-700;
}

.alert-warning {
    @apply bg-yellow-100 border-yellow-400 text-yellow-700;
}

.alert-info {
    @apply bg-blue-100 border-blue-400 text-blue-700;
}

/* Table styles */
.table {
    @apply min-w-full divide-y divide-gray-200;
}

.table-header {
    @apply bg-gray-50;
}

.table-header-cell {
    @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

.table-body {
    @apply bg-white divide-y divide-gray-200;
}

.table-row {
    @apply hover:bg-gray-50;
}

.table-cell {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
}

/* Navigation styles */
.nav-link {
    @apply text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium transition-colors;
}

.nav-link-active {
    @apply text-blue-600 px-3 py-2 text-sm font-medium;
}

/* Mobile menu styles */
.mobile-menu {
    @apply md:hidden bg-white shadow-lg;
}

.mobile-menu-item {
    @apply block px-3 py-2 text-base font-medium text-gray-700 hover:text-blue-600;
}

/* Footer styles */
.footer {
    @apply bg-gray-800 text-white;
}

.footer-section {
    @apply mb-8;
}

.footer-title {
    @apply text-lg font-semibold mb-4;
}

.footer-link {
    @apply text-gray-300 hover:text-white transition-colors;
}

.footer-link-list {
    @apply space-y-2;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full {
        width: 100%;
    }
}

@media (min-width: 641px) {
    .desktop-hidden {
        display: none;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Custom gradients */
.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        @apply bg-gray-900 text-white;
    }
    
    .dark-mode .card {
        @apply bg-gray-800 border-gray-700;
    }
    
    .dark-mode .form-input {
        @apply bg-gray-800 border-gray-600 text-white;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .high-contrast {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom utility classes */
.text-balance {
    text-wrap: balance;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Event-specific styles */
.event-hero {
    @apply bg-gradient-to-r from-blue-400 to-purple-500;
}

.event-meta {
    @apply flex flex-wrap items-center gap-4;
}

.event-actions {
    @apply flex flex-wrap gap-4;
}

/* Calendar styles */
.calendar-grid {
    @apply grid grid-cols-7 gap-1;
}

.calendar-day {
    @apply aspect-square flex items-center justify-center text-sm font-medium;
}

.calendar-day-other {
    @apply text-gray-400;
}

.calendar-day-current {
    @apply bg-blue-100 text-blue-600;
}

.calendar-day-today {
    @apply bg-blue-600 text-white;
}

.calendar-day-event {
    @apply bg-green-100 text-green-800;
}

/* Search styles */
.search-highlight {
    @apply bg-yellow-200 px-1 rounded;
}

/* Loading states */
.skeleton {
    @apply animate-pulse bg-gray-200 rounded;
}

.skeleton-text {
    @apply h-4 bg-gray-200 rounded;
}

.skeleton-avatar {
    @apply w-10 h-10 bg-gray-200 rounded-full;
}

.skeleton-card {
    @apply bg-gray-200 rounded-lg h-48;
}
