/* Custom styles for UFC Fight Scoring Website */

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* UFC Red color variations */
.bg-ufc-red {
    background-color: #d20a11;
}

.hover\:bg-ufc-red:hover {
    background-color: #d20a11;
}

.text-ufc-red {
    color: #d20a11;
}

.border-ufc-red {
    border-color: #d20a11;
}

/* UFC Gold color */
.text-ufc-gold {
    color: #ffd700;
}

/* Custom animations */
@keyframes pulse-ufc {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* Landing page animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(210, 10, 17, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(210, 10, 17, 0.6);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Enhanced hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(210, 10, 17, 0.4);
}

/* Staggered animation delays */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

/* Fight Pick Demo Animations */
@keyframes pickBarFill {
    0% {
        width: 0%;
    }
    100% {
        width: var(--target-width);
    }
}

@keyframes selectionPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fighterHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes selectionGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }
}

.animate-pick-bar {
    animation: pickBarFill 2s ease-out forwards;
    --target-width: 66.7%;
}

.fighter-a-bar {
    --target-width: 66.7%;
    animation: pickBarFill 2s ease-out forwards;
}

.fighter-b-bar {
    --target-width: 33.3%;
    animation: pickBarFill 2s ease-out forwards;
    animation-delay: 0.5s;
}

.animate-selection-pulse {
    animation: selectionPulse 2s ease-in-out infinite;
}

.animate-fighter-hover {
    animation: fighterHover 3s ease-in-out infinite;
}

.animate-selection-glow {
    animation: selectionGlow 2s ease-in-out infinite;
}

/* Fight Pick Demo Styling */
.fight-pick-demo {
    position: relative;
    overflow: hidden;
}

.fight-pick-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.fighter-avatar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.fighter-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.fighter-avatar.selected {
    border: 2px solid #6b7280;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.selection-indicator {
    animation: selectionPulse 2s ease-in-out infinite;
}

.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* User Profile Demo Animations */
@keyframes userGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
    }
}

@keyframes scorePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

@keyframes scoreBarFill {
    0% {
        width: 0%;
    }
    100% {
        width: 80%;
    }
}

@keyframes rankBarFill {
    0% {
        width: 0%;
    }
    100% {
        width: 60%;
    }
}

@keyframes scoreNotification {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-user-glow {
    animation: userGlow 2s ease-in-out infinite;
}

.animate-score-pulse {
    animation: scorePulse 1.5s ease-in-out infinite;
}

.animate-score-bar {
    animation: scoreBarFill 2s ease-out forwards;
    animation-delay: 1s;
}

.animate-rank-bar {
    animation: rankBarFill 2s ease-out forwards;
    animation-delay: 1.5s;
}

.user-profile-demo {
    position: relative;
    overflow: hidden;
}

.user-profile-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.user-avatar {
    transition: all 0.3s ease;
}

.leaderboard-icon {
    transition: all 0.3s ease;
}

.score-indicator {
    animation: scoreNotification 0.8s ease-out;
    animation-delay: 0.5s;
}

/* Leaderboard Movement Animations */
@keyframes rankMoveUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rankMoveDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(5px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }
}

@keyframes arrowUp {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rankGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

@keyframes scoreIncrease {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rankIncrease {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes beforeFadeOut {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.2;
    }
}

@keyframes afterFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-rank-move-up {
    animation: rankMoveUp 2s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
    transform: translateY(40px);
}

.animate-rank-move-down {
    animation: rankMoveDown 2s ease-out;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
}

.animate-arrow-up {
    animation: arrowUp 1s ease-out;
    animation-delay: 1.2s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.animate-rank-glow {
    animation: rankGlow 2s ease-in-out infinite;
    animation-delay: 2.5s;
}

.animate-rank-glow:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation-play-state: running;
}

.animate-score-increase {
    animation: scoreIncrease 1s ease-out;
    animation-delay: 2.8s;
}

.animate-rank-increase {
    animation: rankIncrease 1s ease-out;
    animation-delay: 3s;
}

.leaderboard-movement .opacity-60 {
    animation: beforeFadeOut 1s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

/* Events Scroll Demo Animations */
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes eventCardGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(210, 10, 17, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(210, 10, 17, 0.6);
    }
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.events-scroll-demo {
    position: relative;
    overflow: hidden;
}

.events-scroll-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 10, 17, 0.1), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.events-scroll-container {
    position: relative;
    mask: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.events-scroll-content {
    animation: scrollUp 20s linear infinite;
}

.event-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(210, 10, 17, 0.3);
}

.event-card.live {
    animation: eventCardGlow 2s ease-in-out infinite;
}

.live-badge {
    animation: livePulse 1.5s ease-in-out infinite;
}

/* Fight card hover effects */
.fight-card {
    transition: all 0.3s ease;
}

.fight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(210, 10, 17, 0.2);
}

/* Custom button styles */
.btn-ufc {
    background: linear-gradient(135deg, #d20a11 0%, #b91c1c 100%);
    transition: all 0.3s ease;
}

.btn-ufc:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
}

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

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

/* Custom form styles */
.form-input {
    background-color: #121212;
    border: 1px solid #4b5563;
    color: white;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #d20a11;
    outline: none;
    box-shadow: 0 0 0 3px rgba(210, 10, 17, 0.1);
}

/* Radio button custom styles */
.radio-ufc {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #6b7280;
    border-radius: 50%;
    background-color: #121212;
    transition: all 0.3s ease;
}

.radio-ufc:checked {
    border-color: #d20a11;
    background-color: #d20a11;
    box-shadow: 0 0 0 3px rgba(210, 10, 17, 0.1);
}

/* Success/Error message animations */
.message-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.message-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.message-exit {
    opacity: 1;
    transform: translateY(0);
}

.message-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 300ms, transform 300ms;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .mobile-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-menu.open {
        transform: translateX(0);
    }
}

/* Custom card styles */
.card-ufc {
    background: linear-gradient(135deg, #121212 0%, #0a0a0a 100%);
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

.card-ufc:hover {
    border-color: #d20a11;
    box-shadow: 0 4px 20px rgba(210, 10, 17, 0.15);
}

/* Fighter avatar styles */
.fighter-avatar {
    background: linear-gradient(135deg, #121212 0%, #2a2a2a 100%);
    border: 2px solid #6b7280;
    transition: all 0.3s ease;
}

.fighter-avatar:hover {
    border-color: #d20a11;
    transform: scale(1.05);
}

/* Progress bar styles */
.progress-ufc {
    background-color: #121212;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-ufc-fill {
    background: linear-gradient(90deg, #d20a11 0%, #ffd700 100%);
    transition: width 0.3s ease;
}

/* Leaderboard styles */
.leaderboard-row {
    transition: background-color 0.3s ease;
}

.leaderboard-row:hover {
    background-color: #121212;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
    color: #1f2937;
}

.rank-2 {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

/* Bonus breakdown styles */
.bg-gray-750 {
    background-color: #121212;
}

/* Fight tab styles */
.fight-tab-button {
    background-color: #121212;
    color: #9CA3AF;
}

.fight-tab-button.active {
    background-color: #6b7280;
    color: white;
}

.fight-tab-content {
    display: none;
}

.fight-tab-content.active {
    display: block;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #121212;
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid #4b5563;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #d20a11;
    border-color: #d20a11;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch input[type="checkbox"]:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(210, 10, 17, 0.1);
}

.toggle-switch:hover .toggle-slider {
    border-color: #6b7280;
}

.toggle-switch input[type="checkbox"]:checked:hover + .toggle-slider {
    border-color: #b91c1c;
}

/* Override any existing checkbox styles for toggle switches */
.toggle-switch input[type="checkbox"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.toggle-switch input[type="checkbox"] + .toggle-slider {
    display: block !important;
    visibility: visible !important;
}

/* Override Tailwind checkbox styles specifically */
.toggle-switch input[type="checkbox"].rounded,
.toggle-switch input[type="checkbox"].border-gray-600,
.toggle-switch input[type="checkbox"].text-ufc-red,
.toggle-switch input[type="checkbox"].focus\\:ring-ufc-red,
.toggle-switch input[type="checkbox"].bg-gray-700 {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Force toggle switches to be visible and override any conflicting styles */
.toggle-switch {
    display: inline-block !important;
    visibility: visible !important;
}

.toggle-switch .toggle-slider {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fight Event Card Component Styles */
.fight-event-card {
    font-family: 'Maven Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.fight-event-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.fighter-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.fighter-card:hover {
    transform: translateY(-1px);
}

.fighter-card.selected {
    border-color: #6b7280 !important;
    background-color: #EBF8FF !important;
}

.selection-checkmark {
    transition: all 0.2s ease;
}

.method-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.method-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.method-btn.selected {
    background-color: #6b7280 !important;
    color: white !important;
    border-color: #6b7280 !important;
}

.method-btn.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.method-btn.selected:hover::before {
    left: 100%;
}

.round-select {
    transition: all 0.2s ease;
}

.round-select:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.confirm-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.confirm-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cancel-btn {
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Community picks bar animation */
.community-pick-bar {
    transition: width 0.8s ease-in-out;
}

/* Fighter headshot styling */
.fighter-headshot {
    transition: all 0.2s ease;
}

.fighter-card:hover .fighter-headshot {
    transform: scale(1.05);
}

/* Responsive adjustments for fight event card */
@media (max-width: 640px) {
    .fight-event-card {
        margin: 0 1rem;
    }
    
    .fighter-card {
        flex-direction: column;
        text-align: center;
    }
    
    .fighter-card .flex {
        flex-direction: column;
        align-items: center;
    }
    
    .method-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
    
    .method-btn i {
        display: none;
    }
    
    /* Mobile fight card adjustments */
    .fight-event-card-integrated .fighter-card,
    .results-fight-card .fighter-card {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
    }
    
    .fight-event-card-integrated .fighter-card:first-child,
    .results-fight-card .fighter-card:first-child {
        justify-content: center;
    }
    
    .fight-event-card-integrated .fighter-card:last-child,
    .results-fight-card .fighter-card:last-child {
        justify-content: center;
    }
    
    /* Adjust VS spacing on mobile */
    .fight-event-card-integrated .flex-shrink-0,
    .results-fight-card .flex-shrink-0 {
        margin: 0.5rem 0;
    }
}

/* Dark theme adjustments for fight event cards in event pages */
.bg-ufc-bg-light .fight-event-card {
    background-color: #1a1a1a;
    border: 1px solid #374151;
}

.bg-ufc-bg-light .fight-event-card .bg-white {
    background-color: #1a1a1a;
}

.bg-ufc-bg-light .fight-event-card .text-gray-800 {
    color: #f9fafb;
}

.bg-ufc-bg-light .fight-event-card .text-gray-600 {
    color: #d1d5db;
}

.bg-ufc-bg-light .fight-event-card .text-gray-700 {
    color: #e5e7eb;
}

.bg-ufc-bg-light .fight-event-card .border-gray-200 {
    border-color: #374151;
}

.bg-ufc-bg-light .fight-event-card .bg-gray-50 {
    background-color: #121212;
}

.bg-ufc-bg-light .fight-event-card .bg-gray-200 {
    background-color: #374151;
}

.bg-ufc-bg-light .fight-event-card .text-gray-500 {
    color: #9ca3af;
}

.bg-ufc-bg-light .fight-event-card .border-gray-300 {
    border-color: #4b5563;
}

.bg-ufc-bg-light .fight-event-card .bg-white {
    background-color: #374151;
}

.bg-ufc-bg-light .fight-event-card .hover\\:bg-gray-50:hover {
    background-color: #1a1a1a;
}

/* Integrated Fight Event Card Styles */
.fight-event-card-integrated {
    transition: all 0.3s ease;
}

.fight-event-card-integrated:hover {
    border-color: #4b5563;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Fight Card Fighter Alignment - Grid Layout */
.fight-event-card-integrated .fighter-card {
    min-width: 0; /* Allow flex items to shrink */
}

.fight-event-card-integrated .fighter-card:first-child {
    justify-content: flex-start;
}

.fight-event-card-integrated .fighter-card:last-child {
    justify-content: flex-end;
}

/* Results page fight card alignment - Grid Layout */
.results-fight-card .fighter-card {
    min-width: 0; /* Allow flex items to shrink */
}

.results-fight-card .fighter-card:first-child {
    justify-content: flex-start;
}

.results-fight-card .fighter-card:last-child {
    justify-content: flex-end;
}

.fight-event-card-integrated .fighter-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 8px;
}

.fight-event-card-integrated .fighter-card:hover {
    background-color: #374151;
}

.fight-event-card-integrated .fighter-card.selected {
    border-color: #6b7280 !important;
    background-color: #374151 !important;
}

.fight-event-card-integrated .selection-checkmark {
    transition: all 0.2s ease;
}

.fight-event-card-integrated .method-btn {
    transition: all 0.2s ease;
}

.fight-event-card-integrated .method-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fight-event-card-integrated .method-btn.selected {
    background-color: #6b7280 !important;
    color: white !important;
    border-color: #6b7280 !important;
}

.fight-event-card-integrated .round-select {
    transition: all 0.2s ease;
}

.fight-event-card-integrated .round-select:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fight-event-card-integrated .confirm-btn {
    transition: all 0.2s ease;
}

.fight-event-card-integrated .confirm-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.fight-event-card-integrated .cancel-btn {
    transition: all 0.2s ease;
}

.fight-event-card-integrated .cancel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fight-event-card-integrated .community-pick-bar {
    transition: width 0.8s ease-in-out;
}

/* Hide progress bars when width is 0% */
.fight-event-card-integrated .community-pick-bar[style*="width: 0%"] {
    display: none !important;
}

.fight-event-card-integrated .community-pick-bar[style*="width: 0.0%"] {
    display: none !important;
}

/* Hide all progress bars when width is 0% */
.bg-ufc-grey[style*="width: 0%"],
.bg-red-500[style*="width: 0%"],
.bg-gray-500[style*="width: 0%"],
.bg-gradient-to-r[style*="width: 0%"] {
    display: none !important;
}

.bg-ufc-grey[style*="width: 0.0%"],
.bg-red-500[style*="width: 0.0%"],
.bg-gray-500[style*="width: 0.0%"],
.bg-gradient-to-r[style*="width: 0.0%"] {
    display: none !important;
}

/* Additional CSS to ensure 0% progress bars are hidden */
.community-pick-bar[style*="width: 0%"],
.community-pick-bar[style*="width: 0.0%"] {
    display: none !important;
}

/* Ensure progress bars fill the container properly */
.fight-event-card-integrated .community-pick-bar {
    min-width: 0;
    box-sizing: border-box;
}

/* Fix for progress bars that should fill completely - use CSS custom properties */
.fight-event-card-integrated[style*="--fighter1-percentage: 100%"] .bg-ufc-grey,
.fight-event-card-integrated[style*="--fighter2-percentage: 100%"] .bg-red-500 {
    border-radius: 0 !important;
}

/* Alternative approach - target by CSS variable value */
.fight-event-card-integrated .community-pick-bar {
    border-radius: 9999px; /* Default rounded */
}

/* Override for 100% bars using CSS custom properties */
.fight-event-card-integrated[style*="--fighter1-percentage: 100%"] .bg-ufc-grey,
.fight-event-card-integrated[style*="--fighter2-percentage: 100%"] .bg-red-500 {
    border-radius: 0 !important;
}

/* Force 100% bars to fill completely */
.fight-event-card-integrated .community-pick-bar[style*="border-radius: 0"] {
    width: 100% !important;
    border-radius: 0 !important;
}

/* Additional fix for any remaining 100% bar issues */
.fight-event-card-integrated .bg-gray-700.rounded-full {
    overflow: hidden;
}

.fight-event-card-integrated .bg-gray-700.rounded-full .community-pick-bar[style*="border-radius: 0"] {
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Full width bar class for 100% progress bars */
.full-width-bar {
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Event timer styling - now positioned in top row with status badge */
.event-timer {
    flex-shrink: 0; /* Prevent timer from shrinking */
    min-width: fit-content; /* Ensure timer has enough space */
    background-color: #fbbf24; /* Yellow background */
    color: #1f2937; /* Dark text for contrast */
    padding: 0.25rem 0.5rem; /* 4px 8px padding */
    border-radius: 0.375rem; /* 6px border radius */
    font-size: 0.875rem; /* 14px font size */
    font-weight: 500;
    white-space: nowrap; /* Prevent timer text from wrapping */
}

/* Status badge styling to match timer size */
.event-status-badge {
    padding: 0.25rem 0.5rem; /* Match timer padding: 4px 8px */
    border-radius: 0.375rem; /* Match timer border radius: 6px */
    font-size: 0.875rem; /* Match timer font size: 14px */
    font-weight: 500; /* Match timer font weight */
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Ensure timer is always visible and not cut off */
.event-timer-container {
    position: relative;
    z-index: 10; /* Ensure timer is above other elements */
}

/* Responsive adjustments for event timer and status badges */
@media (max-width: 640px) {
    .event-timer {
        font-size: 0.75rem; /* 12px on mobile */
        padding: 0.125rem 0.375rem; /* 2px 6px padding on mobile */
    }
    
    .event-status-badge {
        font-size: 0.75rem; /* 12px on mobile */
        padding: 0.125rem 0.375rem; /* 2px 6px padding on mobile */
    }
} 