/* Modern Phone Registration Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.presenter-name {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.show-name {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.returning-greeting {
    display: none;
    margin: -1.5rem 0 2rem;
    color: white;
    font-size: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.returning-greeting.show {
    display: block;
}

/* Input group styling */
.input-group {
    position: relative;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.input-group.center-input {
    transform: translateY(-30px);
}

#playerName {
    width: 100%;
    padding: 1.2rem 7rem 1.2rem 1.5rem;
    font-size: 1.8rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    outline: none;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#playerName:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#playerName::placeholder {
    color: #999;
    font-size: 1.6rem;
}

.enter-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.enter-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.enter-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.enter-btn.fall {
    animation: fallDown 0.5s ease forwards;
    pointer-events: none;
}

@keyframes fallDown {
    to {
        transform: translateY(150px);
        opacity: 0;
    }
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Player info display */
.player-info {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.player-info.show {
    opacity: 1;
    transform: translateY(0);
}

.player-info p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Team number circle */
.number-circle {
    width: 200px;
    height: 200px;
    background: white;
    border: 15px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 400;
    margin: 2rem auto;
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.number-circle.show {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    }
}

/* Confirm button */
.confirm-button {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-200%);
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #d90024 0%, #8B0000 100%);
    color: white;
    border: 4px solid white;
    border-radius: 20px;
    font-size: 1.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    box-shadow: 0 0 20px rgba(217, 0, 36, 0.6), 0 0 10px rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border: 3px solid #fff;
    width: 90% !important;
    max-width: 440px !important;
    padding: 1rem 1.5rem !important;
    height: auto !important;
    min-height: 120px !important;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

.confirm-button.show {
    opacity: 1;
    pointer-events: auto;
    animation: slideDownFromTop 1.5s ease-out forwards, electricGlow 0.8s ease-in-out 1.5s infinite alternate;
}

@keyframes electricGlow {
    0%, 100% {
        box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #DC143C, 0 0 30px #DC143C;
        transform: translateX(-50%) translateY(280px) scale(1);
    }
    50% {
        box-shadow: 0 0 15px #fff, 0 0 25px #fff, 0 0 50px #DC143C, 0 0 70px #DC143C;
        transform: translateX(-50%) translateY(280px) scale(1.02);
        opacity: 0.95;
    }
    25%, 75% {
        box-shadow: 0 0 12px #fff, 0 0 22px #DC143C, 0 0 45px #DC143C;
        transform: translateX(-50%) translateY(280px) scale(1.01);
        opacity: 1;
    }
}

@keyframes slideDownFromTop {
    0% {
        transform: translateX(-50%) translateY(-200%);
    }
    100% {
        transform: translateX(-50%) translateY(280px);
    }
}

.confirm-button.show:hover {
    transform: translateX(-50%) translateY(280px) scale(1.05);
}

.pill-btn {
    background: #fff !important;
    color: #d90024 !important;
    padding: 0.4rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 900 !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: auto !important;
}

.button-text {
    line-height: 1.2;
    font-size: 1.2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    width: 100%;
    display: block;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 4px solid white;
    animation: slideUp 0.4s ease;
}

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

.modal h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-btn {
    padding: 1.3rem 2rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1.3;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#existingPlayer {
    background: linear-gradient(135deg, #ff8811 0%, #ff6600 100%);
}

#existingPlayer:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 136, 17, 0.4);
}

.duplicate-name-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.duplicate-heading {
    font-size: 1.8rem;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.suffix-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
}

.suffix-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: 400;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#nameSuffix {
    width: 70px;
    padding: 0.4rem;
    text-align: center;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 400;
    outline: none;
    text-transform: uppercase;
}

#nameSuffix::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.confirm-new-btn {
    background: linear-gradient(135deg, #3a0ca3 0%, #5520d0 100%);
    width: 100%;
    margin-top: 0.5rem;
}

.confirm-new-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(58, 12, 163, 0.5);
}

.confirm-new-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
    box-shadow: none;
    transform: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .show-name {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    #playerName {
        font-size: 1.5rem;
        padding: 1rem 6rem 1rem 1.2rem;
    }
    
    .enter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .number-circle {
        width: 150px;
        height: 150px;
        font-size: 4rem;
        border-width: 12px;
    }
    
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
    }
    
    .modal h2 {
        font-size: 2.5rem;
    }
    
    .confirm-button {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
}

