/* ==========================================
   IMPOSTOR - ESTILOS CSS
   ========================================== */

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: white;
}

#app {
    min-height: 100vh;
}

/* === BACKGROUNDS === */
.bg-gradient-main {
    background: linear-gradient(to bottom right, #581c87, #312e81, #000);
    min-height: 100vh;
    padding: 1rem;
}

.bg-gradient-game {
    background: linear-gradient(to bottom right, #1e3a8a, #6b21a8, #000);
    min-height: 100vh;
    padding: 1rem;
}

/* === CONTAINERS === */
.container {
    max-width: 1024px;
    margin: 0 auto;
}

/* === CARDS === */
.card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid rgba(107, 114, 128, 0.3);
    margin-bottom: 1.5rem;
}

/* === TYPOGRAPHY === */
.title-main {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #f87171, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-section {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-gray {
    color: #d1d5db;
}

.text-yellow {
    color: #fbbf24;
}

.text-blue {
    color: #60a5fa;
}

.text-red {
    color: #f87171;
}

/* === BUTTONS === */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(to right, #7c3aed, #2563eb);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #6d28d9, #1d4ed8);
}

.btn-success {
    background: linear-gradient(to right, #059669, #2563eb);
    color: white;
}

.btn-danger {
    background: linear-gradient(to right, #dc2626, #991b1b);
    color: white;
}

.btn-secondary {
    background: #4b5563;
    color: white;
}

.btn-secondary:hover {
    background: #374151;
}

.btn-back {
    background: #4b5563;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-full {
    width: 100%;
}

/* === MODE SELECTOR === */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .mode-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mode-card {
    position: relative;
    padding: 3rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 4px solid transparent;
    overflow: hidden;
}

.mode-card:hover {
    transform: scale(1.05);
}

.mode-card-lol {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: rgba(59, 130, 246, 0.3);
}

.mode-card-lol:hover {
    border-color: #60a5fa;
}

.mode-card-clash {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    border-color: rgba(249, 115, 22, 0.3);
}

.mode-card-clash:hover {
    border-color: #fb923c;
}

.mode-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.mode-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
}

.mode-description {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.mode-icons {
    text-align: center;
    font-size: 2rem;
}

/* === INPUT === */
.input {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #374151;
    border: 2px solid #4b5563;
    color: white;
    width: 100%;
    font-size: 1rem;
}

.input:focus {
    outline: none;
    border-color: #7c3aed;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-group .input {
    flex: 1;
}

/* === PLAYERS === */
.players-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .players-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .players-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.player-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(55, 65, 81, 0.8);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #4b5563;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid white;
}

.player-name {
    font-weight: 600;
}

.player-remove {
    color: #f87171;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
}

/* === REVEAL CARDS === */
.reveal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .reveal-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.reveal-card {
    padding: 1.5rem;
    background: linear-gradient(to bottom right, #374151, #1f2937);
    border-radius: 0.75rem;
    border: 2px solid #4b5563;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.reveal-card:hover {
    background: linear-gradient(to bottom right, #6b21a8, #7c3aed);
    border-color: #a78bfa;
    transform: scale(1.05);
}

/* === ROLE REVEAL === */
.role-card {
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.role-card-impostor {
    background: rgba(127, 29, 29, 0.8);
    border: 4px solid #ef4444;
    animation: pulse 2s infinite;
}

.role-card-tripulante {
    background: rgba(30, 58, 138, 0.8);
    border: 4px solid #3b82f6;
}

.role-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.role-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.role-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.role-description {
    font-size: 1rem;
    opacity: 0.9;
}

/* === VOTING === */
.voting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .voting-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.voting-card {
    background: rgba(55, 65, 81, 0.8);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #4b5563;
    text-align: center;
}

.voting-votes {
    color: #fbbf24;
    font-weight: bold;
    margin-top: 0.5rem;
}

.voting-select {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #4b5563;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
}

/* === RESULT === */
.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.stat-card-blue {
    background: rgba(30, 58, 138, 0.8);
    border: 2px solid #3b82f6;
}

.stat-card-red {
    background: rgba(127, 29, 29, 0.8);
    border: 2px solid #ef4444;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* === WIN/LOSE BANNER === */
.winner-banner {
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: pulse 2s infinite;
}

.winner-banner-blue {
    background: rgba(30, 58, 138, 0.8);
    border: 4px solid #3b82f6;
}

.winner-banner-red {
    background: rgba(127, 29, 29, 0.8);
    border: 4px solid #ef4444;
}

.winner-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.winner-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* === UTILITIES === */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.hidden {
    display: none;
}

/* === ANIMATIONS === */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide {
    animation: slideUp 0.5s ease-out;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .title-main {
        font-size: 2rem;
    }
    
    .mode-card {
        padding: 2rem;
    }
    
    .mode-emoji {
        font-size: 3rem;
    }
    
    .mode-title {
        font-size: 1.5rem;
    }
}