/* Lobby Specific Styles */
.lobby-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    padding-top: 20px;
    padding-bottom: 40px;
}

.lobby-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.lobby-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.lobby-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.lobby-title i {
    color: #ffd700;
    margin-right: 20px;
}

.lobby-subtitle {
    font-size: 1.3rem;
    color: #b8c5d1;
    font-weight: 300;
}

/* Game Modes */
.game-modes {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
}

.game-mode-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.mode-header {
    text-align: center;
    margin-bottom: 40px;
}

.mode-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mode-title i {
    color: #ffd700;
}

.mode-description {
    font-size: 1.1rem;
    color: #b8c5d1;
    font-weight: 300;
}

/* Game Tables Grid */
.game-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Table Cards */
.table-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ff6b35, #ffd700);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.table-card:hover::before {
    opacity: 1;
}

.table-card.tournament {
    border-color: rgba(255, 107, 53, 0.3);
}

.table-card.tournament::before {
    background: linear-gradient(90deg, #ff6b35, #ffd700, #ff6b35);
}

/* Table Header */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.table-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.table-status.available {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.table-status.starting-soon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.table-status.full {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.table-status i {
    font-size: 0.8rem;
}

/* Table Info */
.table-info {
    margin-bottom: 25px;
}

.table-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.9rem;
    color: #b8c5d1;
    font-weight: 400;
}

.detail-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

/* Feature Tags */
.table-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Table Actions */
.table-actions {
    display: flex;
    justify-content: center;
}

.join-table {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.join-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Lobby Stats */
.lobby-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #b8c5d1;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lobby-main {
        padding-top: 120px;
    }
    
    .lobby-title {
        font-size: 3rem;
    }
    
    .mode-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .game-mode-section {
        padding: 25px;
    }
    
    .game-tables {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .table-details {
        grid-template-columns: 1fr;
    }
    
    .lobby-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .lobby-title {
        font-size: 2.5rem;
    }
    
    .lobby-subtitle {
        font-size: 1.1rem;
    }
    
    .game-mode-section {
        padding: 20px;
    }
    
    .table-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Animation for countdown timer */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.table-status.starting-soon {
    animation: pulse 2s infinite;
}

/* Hover effects for tournament cards */
.table-card.tournament:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

/* Special styling for disabled buttons */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Specific styling for countdown disabled buttons */
.btn.btn-disabled-countdown {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border-color: #6c757d;
    position: relative;
}

.btn.btn-disabled-countdown::after {
    content: '⏰';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn.btn-disabled-countdown:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

/* Specific styling for tournament in progress disabled buttons */
.btn.btn-disabled-in-progress {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    position: relative !important;
}

.btn.btn-disabled-in-progress::after {
    content: "🔒";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    opacity: 0.8;
}

/* Animation for in-progress status */
.table-status.active {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

/* Active nav link styling for lobby */
.profile-nav .nav-link.active {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

/* Tournament Registration Modal Styles */
.tournament-modal {
    max-width: 600px;
    width: 90%;
}

.tournament-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.entry-fee-section {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.entry-fee-section h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fee-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.fee-notice {
    color: #ffc107;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.prize-distribution-section {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
}

.prize-distribution-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prize-pool-total {
    text-align: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

.prize-pool-total span {
    color: #ffd700;
    font-weight: bold;
}

.prize-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.prize-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-item .position {
    color: #fff;
    font-weight: 500;
}

.prize-item .percentage {
    color: #b8c5d1;
    font-size: 0.9rem;
}

.prize-item .amount {
    color: #ffd700;
    font-weight: bold;
    text-align: right;
}

.prize-note {
    color: #b8c5d1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-align: center;
    justify-content: center;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.modal-actions .btn {
    min-width: 150px;
    padding: 12px 25px;
    font-size: 1rem;
}

/* Responsive adjustments for tournament modal */
@media (max-width: 768px) {
    .tournament-modal {
        width: 95%;
        max-width: none;
    }
    
    .prize-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* Specific styling for next tournament registration buttons */
.btn.btn-next-tournament {
    opacity: 1;
    cursor: pointer;
    background: linear-gradient(135deg, #17a2b8, #138496);
    border-color: #17a2b8;
    color: #fff;
    position: relative;
}

.btn.btn-next-tournament::after {
    content: '⏭️';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn.btn-next-tournament:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
    background: linear-gradient(135deg, #138496, #117a8b);
    border-color: #138496;
}

/* Animation for next tournament buttons */
.btn.btn-next-tournament {
    animation: nextTournamentGlow 3s ease-in-out infinite;
}

@keyframes nextTournamentGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(23, 162, 184, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(23, 162, 184, 0.6), 0 0 30px rgba(23, 162, 184, 0.4);
    }
}

/* Temporary styling for just-registered next tournament buttons */
.btn.btn-next-tournament-registered {
    opacity: 1;
    cursor: pointer;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
    color: #fff;
    position: relative;
    animation: registrationSuccess 0.5s ease-out;
}

.btn.btn-next-tournament-registered::after {
    content: '✅';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes registrationSuccess {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.6), 0 0 30px rgba(40, 167, 69, 0.4);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    }
}

/* ===== TOURNAMENT REGISTRATION STATUS DISPLAY - CURRENT VS FUTURE SEPARATION ===== */

/* Main tournament status container */
.tournament-registration-status {
    margin-top: 12px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
    background: rgba(248, 249, 250, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    animation: fadeInStatus 0.4s ease-in-out !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Individual status items within the container */
.tournament-registration-status > div {
    margin: 0 0 4px 0 !important;
    padding: 6px 10px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.tournament-registration-status > div:last-child {
    margin-bottom: 0 !important;
}

/* Current Tournament Display (Green - Active Tournament) */
.tournament-registration-status > div[style*="rgba(40, 167, 69"] {
    background: rgba(40, 167, 69, 0.18) !important;
    border: 1.5px solid rgba(40, 167, 69, 0.5) !important;
    color: #155724 !important;
    font-weight: 700 !important;
}

/* Next Tournament Display (Blue - Registration Open) */
.tournament-registration-status > div[style*="rgba(23, 162, 184"] {
    background: rgba(23, 162, 184, 0.18) !important;
    border: 1.5px solid rgba(23, 162, 184, 0.5) !important;
    color: #0c5460 !important;
    font-weight: 700 !important;
}

/* Loading State Display (Gray) */
.tournament-registration-status > div[style*="rgba(108, 117, 125"] {
    background: rgba(108, 117, 125, 0.15) !important;
    border: 1px solid rgba(108, 117, 125, 0.3) !important;
    color: #495057 !important;
    font-style: italic !important;
}

/* Enhanced Tournament Card Styling */
.table-card.tournament {
    position: relative !important;
    overflow: visible !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.table-card.tournament:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.table-card.tournament .table-details {
    margin-bottom: 8px !important;
    position: relative !important;
}

/* Player Count Enhanced Styling */
.table-card.tournament .detail-value {
    font-weight: 700 !important;
    font-size: 1.05em !important;
    transition: all 0.3s ease !important;
}

/* Zero Registration State (0/16 display) - Make it visible and styled */
.table-card.tournament .detail-value[style*="opacity: 0.7"] {
    color: #6c757d !important;
    font-style: italic !important;
    font-weight: 500 !important;
    opacity: 0.8 !important; /* Make it more visible than before */
    animation: zeroCountPulse 4s infinite !important;
}

/* Hidden/No Registration State (--/16 display) - Legacy support */
.table-card.tournament .detail-value[style*="opacity: 0.6"] {
    color: #6c757d !important;
    font-style: italic !important;
    font-weight: 500 !important;
}

/* Active Registration State with Numbers */
.table-card.tournament .detail-value:not([style*="opacity"]) {
    color: #007bff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Special styling for zero count to indicate it's actively monitored */
@keyframes zeroCountPulse {
    0%, 85% { 
        opacity: 0.8; 
        transform: scale(1);
    }
    90% { 
        opacity: 0.9; 
        transform: scale(1.02);
    }
    95% { 
        opacity: 0.85; 
        transform: scale(1.01);
    }
    100% { 
        opacity: 0.8; 
        transform: scale(1);
    }
}

/* Responsive zero count styling */
@media (max-width: 768px) {
    .table-card.tournament .detail-value[style*="opacity: 0.7"] {
        font-size: 0.95em !important;
        opacity: 0.85 !important;
    }
}

/* Special Button States for Tournament Separation */
.btn.btn-next-tournament {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border-color: #17a2b8 !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3) !important;
}

.btn.btn-next-tournament:hover {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4) !important;
}

.btn.btn-next-tournament::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: nextTournamentShimmer 3s infinite;
}

.btn.btn-disabled-in-progress {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    position: relative !important;
}

.btn.btn-disabled-in-progress::after {
    content: "🔒";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    opacity: 0.8;
}

/* Visual Separator Between Current and Next Tournament Info */
.tournament-registration-status > div + div {
    margin-top: 6px !important;
    position: relative !important;
}

.tournament-registration-status > div + div::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeInStatus {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes nextTournamentShimmer {
    0% { left: -100%; }
    50% { left: -100%; }
    100% { left: 100%; }
}

/* Pulse animation for zero registrations */
.table-card.tournament .detail-value[style*="opacity: 0.6"] {
    animation: subtlePulse 3s infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .tournament-registration-status {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
        margin-top: 10px !important;
    }
    
    .tournament-registration-status > div {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }
    
    .table-card.tournament .detail-value {
        font-size: 1em !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tournament-registration-status {
        background: rgba(33, 37, 41, 0.9) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #e9ecef !important;
    }
    
    .tournament-registration-status > div[style*="rgba(40, 167, 69"] {
        background: rgba(40, 167, 69, 0.25) !important;
        color: #9fdf9f !important;
    }
    
    .tournament-registration-status > div[style*="rgba(23, 162, 184"] {
        background: rgba(23, 162, 184, 0.25) !important;
        color: #7dd3fc !important;
    }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    .tournament-registration-status > div[style*="rgba(40, 167, 69"] {
        background: #d4edda !important;
        color: #155724 !important;
        border-color: #c3e6cb !important;
        border-width: 2px !important;
    }
    
    .tournament-registration-status > div[style*="rgba(23, 162, 184"] {
        background: #bee5eb !important;
        color: #0c5460 !important;
        border-color: #abdde5 !important;
        border-width: 2px !important;
    }
}

/* Button disabled state during countdown */
.btn-disabled-countdown {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Pulse animation for tournament join button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.pulse-animation {
    animation: pulse 1s infinite;
}

/* Waiting state button */
.btn-warning.join-table {
    background: linear-gradient(135deg, #ffc107, #ffb347);
    border: none;
    color: #212529;
    font-weight: 600;
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-warning.join-table:hover {
    background: linear-gradient(135deg, #ffc107, #ffb347);
    transform: none;
    box-shadow: none;
}

/* Registered Join Section - Bottom of tournament cards */
.registered-join-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.registered-join-section.show {
    display: block;
}

.join-divider {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.join-divider span {
    background: inherit;
    padding: 0 15px;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.join-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 215, 0, 0.2);
    z-index: 0;
}

.join-tournament-now {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.join-tournament-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #20c997, #28a745);
}

.join-tournament-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

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

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

/* Tournament status states */
.table-status.completed {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border: 1px solid #28a745 !important;
    font-weight: 600 !important;
    animation: completedPulse 2s ease-in-out !important;
}

.table-status.completed i {
    color: #fff !important;
    margin-right: 6px !important;
}

@keyframes completedPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
    }
} 