/**
 * D&D AI RPG - Rest System Styles
 * Short rest and long rest modal UI
 */

.rest-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.rest-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rest-modal-content h2 {
    color: #3498db;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.rest-status {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.status-label {
    color: #95a5a6;
    font-size: 14px;
}

.status-value {
    color: #ecf0f1;
    font-size: 20px;
    font-weight: bold;
}

.status-value.low {
    color: #e74c3c;
}

.rest-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.rest-option {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #34495e;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.rest-option:hover {
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.rest-option h3 {
    color: #f39c12;
    margin: 0 0 10px 0;
    font-size: 22px;
}

.rest-description {
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.hit-dice-selector {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hit-dice-selector label {
    color: #bdc3c7;
    font-size: 13px;
}

.hit-dice-selector input {
    width: 60px;
    padding: 8px;
    border: 2px solid #2ecc71;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    text-align: center;
}

.hit-dice-selector .estimate {
    color: #2ecc71;
    font-size: 12px;
}

.rest-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.rest-benefits li {
    color: #7f8c8d;
    font-size: 13px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.rest-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
}

.rest-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rest-btn.short {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.rest-btn.short:hover {
    background: linear-gradient(135deg, #5dade2, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.rest-btn.long {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.rest-btn.long:hover {
    background: linear-gradient(135deg, #a569bd, #9b59b6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

.rest-close-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    background: rgba(127, 140, 141, 0.3);
    border: 2px solid #7f8c8d;
    border-radius: 8px;
    color: #bdc3c7;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.rest-close-btn:hover {
    background: rgba(127, 140, 141, 0.5);
    border-color: #95a5a6;
}

/* Rest Results */
.rest-results {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-item {
    color: #2ecc71;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .rest-modal-content {
        padding: 20px;
    }

    .rest-options {
        grid-template-columns: 1fr;
    }

    .rest-status {
        flex-direction: column;
        align-items: center;
    }
}
