/* ===== Estilos específicos para Ruleta ===== */

/* ===== Roulette Container ===== */
.roulette-container {
    max-width: 2800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.roulette-sidebar {
    position: sticky;
    top: 2rem;
}

/* ===== List Selection ===== */
.list-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid #21262d;
}

.list-selection label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

.list-selection input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===== Controls ===== */
.roulette-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.roulette-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar */
.roulette-content::-webkit-scrollbar {
    width: 12px;
}

.roulette-content::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 10px;
    border: 1px solid #21262d;
}

.roulette-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4a9eff 0%, #2b7dd8 100%);
    border-radius: 10px;
    border: 2px solid #0d1117;
}

.roulette-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6bb3ff 0%, #4a9eff 100%);
}

/* Firefox scrollbar */
.roulette-content {
    scrollbar-width: thin;
    scrollbar-color: #4a9eff #0d1117;
}

.roulette-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.roulette-btn.primary {
    background: var(--gradient-demon);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.roulette-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
}

.roulette-btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.roulette-btn.secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* ===== Progress Info ===== */
.roulette-info {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid #21262d;
    text-align: center;
}

.roulette-info p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.roulette-info .highlight {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* ===== Demons Display ===== */
.demons-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.demon-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid #21262d;
    padding: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.demon-card.active {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.demon-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.demon-details {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr;
    gap: 2rem;
    padding: 2rem;
}

.demon-header {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.demon-number {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.demon-rank {
    color: #ffffff;
    font-weight: 700;
    background: #0d1117;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 1.1rem;
}

.demon-thumbnail {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 300px;
    height: auto;
    border-radius: 8px;
    align-self: start;
}

.demon-info {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin-bottom: 0;
}

.demon-title-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.demon-name {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0;
    font-weight: 700;
}

.demon-creator {
    color: var(--text-secondary);
    font-size: 1.3rem;
}

.demon-id {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(107, 179, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
}

.demon-actions {
    border-top: 2px solid #21262d;
    padding: 1.5rem;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demon-actions.completed {
    border-top: none;
    padding: 0;
    background: transparent;
}

.completed-info {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
}

.demon-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.percent-input {
    padding: 0.75rem 1rem;
    background: #0d1117;
    border: 2px solid #21262d;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    flex: 1;
}

.percent-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.percent-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.complete-btn,
.give-up-inline-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.complete-btn {
    background: var(--gradient-demon);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.give-up-inline-btn {
    background: #dc2626;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
}

.give-up-inline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
    background: #b91c1c;
}

.demon-completed {
    display: flex;
    align-items: center;
}

.completed-percent {
    display: inline-block;
    background: #10b981;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.view-level-link {
    display: none;
}

/* ===== Results Section ===== */
.results-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
    margin-bottom: 2rem;
}

.results-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.results-section p {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.results-section span {
    color: var(--accent-color);
    font-weight: 700;
}

/* ===== Nav links ===== */
.nav a {
    text-decoration: none;
    display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .roulette-container {
        grid-template-columns: 1fr;
    }

    .roulette-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .demon-details {
        grid-template-columns: 150px 1fr;
    }

    .demon-thumbnail {
        width: 150px;
    }

    .demon-name {
        font-size: 1.4rem;
    }

    .demon-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .percent-input {
        width: 100%;
    }

    .complete-btn,
    .give-up-inline-btn {
        width: 100%;
    }

    .results-section h2 {
        font-size: 2rem;
    }

    .results-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .demon-details {
        grid-template-columns: 120px 1fr;
    }

    .demon-thumbnail {
        width: 120px;
    }

    .demon-name {
        font-size: 1.2rem;
    }

    .demon-number,
    .demon-rank {
        font-size: 0.9rem;
    }

    .roulette-btn {
        width: 100%;
    }
}
