/* Lucky Name Spinner Styles */
.lucky-spinner-wrapper {
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 100vh;
}

.lucky-spinner-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.lucky-spinner-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titlePulse 2s infinite;
}

.tagline {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
}

.lucky-spinner-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Left Section - Inputs */
.lucky-spinner-inputs {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.input-group label {
    font-weight: bold;
    color: #2c3e50;
}

.input-group input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.players-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.player-input-group:hover {
    transform: translateX(5px);
}

.player-input-group input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.player-input-group input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Right Section - Wheel */
.lucky-spinner-wheel {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50, #2c3e50);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3),
                inset 0 0 30px rgba(0, 0, 0, 0.3);
}

#wheel {
    border-radius: 50%;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Remove old spinner-arrow styles */
.spinner-arrow {
    display: none;
}

/* Remove old wheel spinning animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(var(--final-rotation)); }
}

.wheel-spinning {
    /* Remove animation property */
}

/* Buttons */
.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.spinner-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.btn-icon {
    font-size: 1.2rem;
}

.spinner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.spinner-btn.primary {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.spinner-btn.primary:hover {
    background: linear-gradient(45deg, #27ae60, #219a52);
}

.spinner-btn.warning {
    color: #e74c3c;
}

/* History Section */
.history-section {
    border-top: 2px solid #f8f9fa;
    padding-top: 1rem;
}

.section-icon {
    margin-right: 0.5rem;
}

.spin-history {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    animation: slideIn 0.3s ease;
}

/* Winner Popup */
.winner-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.winner-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.winner-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.winner-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    border-radius: 8px;
    color: white;
}

/* Animations */
@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f1c40f;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .lucky-spinner-container {
        flex-direction: column-reverse;
    }
    
    .lucky-spinner-inputs,
    .lucky-spinner-wheel {
        flex: 0 0 100%;
    }

    .lucky-spinner-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    
    #wheel {
        width: 300px;
        height: 300px;
    }
    
    .button-group {
        flex-direction: column;
    }

    .lucky-spinner-header h1 {
        font-size: 1.5rem;
    }
} 