/* Tournament Registration Status Widget */
/* Following CLAUDE.md: NO inline CSS/JS in views */

.tournament-status-widget {
    background: var(--surface-1, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid var(--theme-border-subtle, rgba(99, 102, 241, 0.1));
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.tournament-status-widget:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--theme-divider, rgba(99, 102, 241, 0.08));
    position: relative;
}

.status-header i {
    font-size: 0.9rem;
    color: var(--tournament-primary, #6366f1);
}

.status-title {
    font-weight: 600;
    color: var(--theme-text-primary, #1a202c);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex: 1;
}

.status-count {
    background: var(--tournament-primary, #6366f1);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 1.25rem;
    text-align: center;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--theme-surface-2, rgba(249, 250, 251, 0.5));
    border: 1px solid var(--theme-border-subtle, rgba(99, 102, 241, 0.05));
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.status-item:hover {
    background: var(--theme-surface-3, rgba(249, 250, 251, 0.8));
    border-color: var(--tournament-primary, #6366f1);
    transform: translateX(2px);
}

.status-item-info {
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.tournament-name {
    font-weight: 600;
    color: var(--theme-text-primary, #1a202c);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.tournament-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--theme-text-secondary, #718096);
    font-size: 0.75rem;
}

.tournament-date i {
    font-size: 0.75rem;
    color: var(--tournament-primary, #6366f1);
    opacity: 0.7;
}

.status-item-badge {
    flex-shrink: 0;
}

.badge-confirmed,
.badge-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
}

.badge-confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge-confirmed i {
    font-size: 0.625rem;
}

.badge-pending {
    background: rgba(251, 146, 60, 0.1);
    color: #ea580c;
    border: 1px solid rgba(251, 146, 60, 0.15);
}

.badge-pending i {
    font-size: 0.625rem;
}

.status-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--divider, rgba(0, 0, 0, 0.05));
    color: var(--tournament-primary, #6366f1);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.status-view-all:hover {
    gap: 0.75rem;
}

.status-view-all i {
    font-size: 0.75rem;
}

/* Compact version for navigation */
.nav-tournament-status {
    position: relative;
}

.nav-tournament-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.03) 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--theme-text-primary, #2d3748);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-tournament-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.1) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.nav-tournament-indicator:hover {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    border-color: var(--tournament-primary, #6366f1);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.nav-tournament-indicator:hover::before {
    left: 100%;
}

.nav-tournament-indicator i {
    font-size: 1rem;
    background: linear-gradient(135deg, var(--tournament-primary, #6366f1), var(--tournament-accent, #8b5cf6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tournament-indicator span {
    font-weight: 600;
    font-size: 0.875rem;
}

.nav-tournament-count {
    background: linear-gradient(135deg, var(--tournament-primary, #6366f1), var(--tournament-accent, #8b5cf6));
    color: white;
    padding: 0.125rem 0.4375rem;
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 1.125rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

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

.nav-tournament-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: -1rem;
    width: 320px;
    background: var(--surface-1, rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid var(--theme-border-subtle, rgba(99, 102, 241, 0.1));
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(99, 102, 241, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-tournament-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 2rem;
    width: 12px;
    height: 12px;
    background: var(--surface-1, white);
    border-left: 1px solid var(--theme-border-subtle, rgba(99, 102, 241, 0.1));
    border-top: 1px solid var(--theme-border-subtle, rgba(99, 102, 241, 0.1));
    transform: rotate(45deg);
}

.nav-tournament-status:hover .nav-tournament-dropdown,
.nav-tournament-status:focus-within .nav-tournament-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-tournament-dropdown .tournament-status-widget {
    border: none;
    box-shadow: none;
    background: transparent;
}

.nav-tournament-dropdown .tournament-status-widget::before {
    display: none;
}

/* Dark mode support */
[data-bs-theme="dark"] .tournament-status-widget,
.dark-mode .tournament-status-widget {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-bs-theme="dark"] .tournament-status-widget::before,
.dark-mode .tournament-status-widget::before {
    background: linear-gradient(90deg, 
        var(--tournament-primary, #6366f1) 0%, 
        var(--tournament-accent, #a78bfa) 50%, 
        var(--tournament-primary, #6366f1) 100%);
}

[data-bs-theme="dark"] .status-header,
.dark-mode .status-header {
    border-bottom-color: rgba(99, 102, 241, 0.15);
}

[data-bs-theme="dark"] .status-item,
.dark-mode .status-item {
    background: linear-gradient(135deg, 
        rgba(51, 65, 85, 0.8) 0%, 
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(99, 102, 241, 0.1);
}

[data-bs-theme="dark"] .status-item:hover,
.dark-mode .status-item:hover {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--tournament-primary, #6366f1);
}

[data-bs-theme="dark"] .nav-tournament-indicator,
.dark-mode .nav-tournament-indicator {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .nav-tournament-dropdown,
.dark-mode .nav-tournament-dropdown {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3), 
        0 10px 10px -5px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

[data-bs-theme="dark"] .nav-tournament-dropdown::before,
.dark-mode .nav-tournament-dropdown::before {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tournament-status-widget {
        padding: 0.75rem;
    }
    
    .nav-tournament-dropdown {
        width: calc(100vw - 2rem);
        right: -0.5rem;
    }
}