/* Estilos Globais */
:root {
    --primary-bg: linear-gradient(135deg, #0F172A, #1E293B);
    --container-bg: rgba(30, 41, 59, 0.9);
    --input-bg: rgba(15, 23, 42, 0.7);
    --primary-color: #FF5722;
    --secondary-color: #FF9800;
    --text-color: #fff;
    --text-color-muted: rgba(255, 255, 255, 0.7);
    --text-color-subtle: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --error-color: #ff6b6b;
    --success-color: #66BB6A;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    background: var(--primary-bg);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

/* Container Principal */
.trial-container {
    background: var(--container-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

/* Cabeçalho */
.trial-header {
    text-align: center;
    margin-bottom: 2rem;
}

.trial-header h1 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.trial-header p {
    color: var(--text-color-muted);
    font-size: 1rem;
}

/* Formulário */
.trial-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Botões */
.trial-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trial-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.trial-button i {
    margin-right: 8px;
}

/* Notas e Links */
.trial-note {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-color-subtle);
    font-size: 0.9rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-color-subtle);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.back-link i {
    margin-right: 8px;
}

/* Carregamento */
#loading {
    display: none;
    text-align: center;
    margin-top: 1rem;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Seleção de Jogos */
.game-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 576px) {
    .game-selection {
        grid-template-columns: 1fr 1fr;
    }
}

.game-option {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 150px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 87, 34, 0.3);
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95), rgba(35, 48, 65, 0.95));
}

.game-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(25, 35, 55, 0.95), rgba(40, 53, 70, 0.95));
}

.game-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.game-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-icon i {
    font-size: 1.5rem;
    color: white;
}

.game-option-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-option-desc {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin: 0;
}

.game-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-option.selected .game-check {
    display: flex;
}

/* Seleção de Plataforma */
.platform-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 576px) {
    .platform-selection {
        grid-template-columns: 1fr 1fr;
    }
}

.platform-option {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 150px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 87, 34, 0.3);
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.95), rgba(35, 48, 65, 0.95));
}

.platform-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(25, 35, 55, 0.95), rgba(40, 53, 70, 0.95));
}

.platform-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.platform-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.platform-icon i {
    font-size: 1.5rem;
    color: white;
}

.platform-option-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.platform-option-desc {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin: 0;
}

.platform-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.platform-option.selected .platform-check {
    display: flex;
}

/* Tela de Erro */
.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: var(--error-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.error-icon i {
    font-size: 1.8rem;
    color: white;
}

.error-message h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-message p {
    color: var(--text-color-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.error-message p:last-child {
    margin-bottom: 0;
}

/* Controle de Telas */
#platformScreen {
    display: block;
}

#consoleErrorScreen {
    display: none;
}

#emailScreen {
    display: none;
}

#gameScreen {
    display: none;
}