/**
 * Hotel Totem Assistente - Estilos CSS
 * Versão: 1.0.0
 * Design moderno e responsivo para interface de totem
 */

/* Reset e Base */
.totem-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Telas do Sistema */
.totem-screen {
    display: none;
    min-height: calc(100vh - 40px);
    align-items: center;
    justify-content: center;
}

.totem-screen.active {
    display: flex;
}

/* Cards Principais */
.totem-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-card {
    max-width: 600px;
}

.booking-card {
    max-width: 1200px;
}

/* Cabeçalho */
.totem-header {
    margin-bottom: 40px;
}

.totem-logo {
    margin-bottom: 30px;
}

.logo-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    line-height: 80px;
    font-size: 40px;
    color: #2c3e50;
    margin: 0 auto;
}

.totem-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
}

.totem-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

/* Botões */
.totem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    margin: 10px;
}

.totem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.totem-btn-primary {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
}

.totem-btn-primary:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.totem-btn-secondary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #2c3e50;
}

.totem-btn-secondary:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.totem-btn-outline {
    background: transparent;
    color: #7f8c8d;
    border: 2px solid #bdc3c7;
}

.totem-btn-outline:hover {
    background: #ecf0f1;
    border-color: #95a5a6;
}

.btn-icon {
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Formulários */
.totem-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #f39c12;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.form-actions .totem-btn {
    flex: 1;
    margin: 0;
    min-width: auto;
}

/* Grid de Quartos */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.room-card {
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #f39c12;
}

.room-card.selected {
    border-color: #f39c12;
    background: #fef9e7;
}

.room-image {
    margin-bottom: 20px;
}

.room-placeholder {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: #ecf0f1;
    border-radius: 10px;
    line-height: 80px;
    font-size: 30px;
}

.room-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.room-price {
    font-size: 2rem;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.room-price span {
    font-size: 1rem;
    color: #7f8c8d;
}

.room-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.room-features li {
    padding: 5px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.room-features li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
    margin-right: 5px;
}

/* Formulário de Reserva */
.booking-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #f39c12;
}

/* Telas de Resultado */
.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-info {
    background: #ecf0f1;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: left;
}

.result-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.success-message {
    color: #7f8c8d;
    margin: 25px 0;
    font-size: 1.1rem;
}

.sms-notification {
    background: #d5f4e6;
    border: 2px solid #27ae60;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.sms-message {
    font-weight: 600;
    color: #27ae60;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.sms-details {
    color: #27ae60;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .totem-container {
        padding: 10px;
    }
    
    .totem-card {
        padding: 30px 20px;
    }
    
    .totem-title {
        font-size: 2rem;
    }
    
    .totem-btn {
        min-width: 250px;
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .room-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .totem-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .totem-title {
        font-size: 1.8rem;
    }
    
    .totem-subtitle {
        font-size: 1rem;
    }
    
    .totem-btn {
        min-width: 200px;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 30px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.totem-screen.active {
    animation: fadeIn 0.5s ease-out;
}

/* Estados de Loading */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f39c12;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}