/* Paleta de colores personalizada */
:root {
    --champagne-pink: #EFD9CE;
    --mauve: #DEC0F1;
    --wisteria: #B79CED;
    --tropical-indigo: #957FEF;
    --slate-blue: #7161EF;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-700: #374151;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--wisteria);
    min-height: 100vh;
    color: var(--gray-900);
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* DaisyUI Card Style */
.container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 650px;
    width: 100%;
    border: 1px solid var(--gray-200);
}

.logo {
    font-size: 3rem;
    text-align: center;
    color: var(--slate-blue);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

h2 {
    color: var(--slate-blue);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    color: var(--tropical-indigo);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* DaisyUI Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--gray-900);
}

.form-group input:focus {
    outline: none;
    border-color: var(--slate-blue);
    box-shadow: 0 0 0 3px rgba(113, 97, 239, 0.1);
}

#player-names-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.player-name-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.player-name-input:focus {
    outline: none;
    border-color: var(--slate-blue);
    box-shadow: 0 0 0 3px rgba(113, 97, 239, 0.1);
}

/* DaisyUI Button Styles */
.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--slate-blue);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background: var(--tropical-indigo);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary:active {
    transform: translateY(0);
    background: var(--wisteria);
}

.btn-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--white);
    color: var(--slate-blue);
    border: 2px solid var(--slate-blue);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-secondary:hover {
    background: var(--mauve);
    border-color: var(--tropical-indigo);
    transform: translateY(-2px);
}

/* Mode Selector - DaisyUI Tabs Style */
.mode-selector {
    display: flex;
    gap: 0;
    margin-top: 0.75rem;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.mode-btn {
    flex: 1;
    padding: 0.875rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-700);
}

.mode-btn:hover {
    background: var(--gray-200);
}

.mode-btn.active {
    background: var(--slate-blue);
    color: var(--white);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* DaisyUI Alert/Highlight Box */
.highlight-box {
    background: var(--mauve);
    padding: 2rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.large-text {
    font-size: 1.5rem;
    color: var(--slate-blue);
    font-weight: 600;
}

.large-text strong {
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
    margin-top: 0.5rem;
    color: var(--slate-blue);
}

.instruction {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-700);
    margin: 1.25rem 0;
    line-height: 1.6;
}

/* Player Reveal Buttons */
#player-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.player-reveal-btn {
    padding: 1.25rem;
    background: var(--white);
    border: 2px solid var(--slate-blue);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-reveal-btn:hover {
    background: var(--slate-blue);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.player-reveal-btn.revealed {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-700);
    cursor: not-allowed;
    opacity: 0.7;
}

.player-reveal-btn.revealed:hover {
    transform: none;
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Role Cards - DaisyUI Card Style */
.role-card {
    padding: 2.5rem;
    border-radius: 1rem;
    margin: 2rem 0;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.role-card.impostor {
    background: var(--slate-blue);
    color: white;
    border: 3px solid var(--wisteria);
}

.role-card.normal {
    background: var(--champagne-pink);
    color: var(--slate-blue);
    border: 3px solid var(--tropical-indigo);
}

.role-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.role-card.impostor .role-title,
.role-card.impostor .role-description {
    color: white;
}

.role-card.normal .role-title {
    color: var(--slate-blue);
}

.role-card.normal .role-info {
    color: var(--slate-blue);
}

.role-card.normal .role-description {
    color: var(--gray-700);
}

.role-info {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.role-description {
    font-size: 1rem;
    line-height: 1.8;
}

.role-description p {
    margin: 0.75rem 0;
}

/* Info Box - DaisyUI Alert Style */
.info-box {
    background: var(--champagne-pink);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--slate-blue);
    margin: 1.5rem 0;
}

.info-box p {
    margin: 0.75rem 0;
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Vote Container */
#vote-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.vote-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-option:hover {
    background: var(--mauve);
    border-color: var(--slate-blue);
    transform: translateX(4px);
}

.vote-option input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--slate-blue);
}

.vote-option label {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Vote Feedback - DaisyUI Alert Style */
.vote-feedback {
    background: var(--champagne-pink);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 2px solid var(--tropical-indigo);
}

.vote-feedback h4 {
    color: var(--slate-blue);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feedback-item {
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.feedback-item.wrong {
    background: #FEE2E2;
    border-color: #EF4444;
}

.feedback-item.partial {
    background: #FEF3C7;
    border-color: #F59E0B;
}

.feedback-item p {
    margin: 0.375rem 0;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-900);
}

/* Result Sections - DaisyUI Card Style */
#result-content {
    margin: 2rem 0;
}

.result-section {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
    border-left: 4px solid var(--gray-300);
}

.result-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.result-section p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--gray-700);
}

.result-section.success {
    background: #D1FAE5;
    border-color: #10B981;
}

.result-section.success h3 {
    color: #065F46;
}

.result-section.fail {
    background: #FEE2E2;
    border-color: #EF4444;
}

.result-section.fail h3 {
    color: #991B1B;
}

.impostor-name {
    color: var(--wisteria);
    font-weight: 700;
    font-size: 1.125rem;
}

.footballer-name {
    color: var(--slate-blue);
    font-weight: 700;
}

/* Badge Style */
#round-number {
    display: inline-block;
    background: var(--slate-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    #player-names-container,
    #player-buttons-container,
    #vote-container {
        grid-template-columns: 1fr;
    }
    
    .role-info {
        font-size: 2rem;
    }
}

/* Celebration Screen */
.celebration-content {
    position: relative;
    overflow: hidden;
}

.celebration-title {
    font-size: 2.5rem;
    color: var(--slate-blue);
    margin-bottom: 2rem;
    animation: bounce 0.6s ease infinite alternate;
}

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

.celebration-message {
    background: var(--mauve);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    border: 3px solid var(--slate-blue);
}

.celebration-message p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-blue);
    margin: 1rem 0;
    text-align: center;
}

.celebration-message .impostor-found {
    font-size: 2rem;
    color: var(--slate-blue);
    margin: 1.5rem 0;
    animation: pulse 1s ease infinite;
}

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

.emoji-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.emoji-rain span {
    position: absolute;
    font-size: 2rem;
    animation: fall linear forwards;
    opacity: 0;
}

@keyframes fall {
    0% {
        top: -10%;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.3;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
