/* Landing page specific styles */

/* Page content wrapper */
.page-content-wrapper {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-card {
    width: 80%;
    max-width: 1100px; /* Aumentado para permitir mais expansão */
    margin: 0 auto;
    text-align: center;
}

.landing-header {
    margin-bottom: 40px;
}

.floating-logo { /* Renomeado de .landing-logo para refletir o nome no HTML */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite; /* Mantido aqui para garantir que a animação funcione */
}

.floating-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.landing-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
}

.landing-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
}

.landing-description {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.landing-button {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.landing-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.landing-button:hover::before {
    left: 100%;
}

.btn-start-quiz {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-start-quiz:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

.btn-register {
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(72, 52, 212, 0.4);
}

.btn-register:hover {
    background: linear-gradient(135deg, #3742fa 0%, #5f27cd 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(72, 52, 212, 0.5);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 15px;
    display: block;
}

.feature-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.email-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.email-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.email-input::placeholder {
    color: #6c757d;
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-content-wrapper {
        width: 90%;
    }
    
    .landing-card {
        width: 95%; /* Ajuste para telas menores, para não ficar muito apertado */
        padding: 20px; 
    }
    
    .landing-title {
        font-size: 2rem;
    }
    
    .landing-subtitle {
        font-size: 1rem;
    }
    
    .floating-logo { /* Também renomeado aqui */
        width: 100px;
        height: 100px;
    }
    
    .landing-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .landing-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .landing-card {
        padding: 20px; /* Garante um padding base em telas menores */
    }

    .level-buttons { /* Ajuste para que em telas menores os botões voltem a ser coluna */
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-content-wrapper {
        width: 95%;
    }
    
    .landing-title {
        font-size: 1.8rem;
    }
    
    .landing-subtitle {
        font-size: 0.9rem;
    }
    
    .landing-description {
        padding: 20px;
        font-size: 0.9rem;
    }
    
    .landing-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .landing-card {
        width: 98%; /* Ajuste para telas muito pequenas */
        padding: 15px; 
    }
}

/* Animation for page load */
.landing-card {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation for logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Seções do formulário com espaçamento adequado */
.welcome-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-section h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.welcome-section p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.email-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.level-selection {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.level-selection h3 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.action-buttons {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-link {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Estilos para os botões de nível */
.level-buttons {
    /* As classes grid e gap do Tailwind no HTML já controlam isso */
    /* Removido `display: flex; flex-direction: column;` pois entra em conflito com o grid do Tailwind */
    gap: 15px; /* Mantém o espaçamento entre os botões */
    margin-top: 20px;
}

.btn-level {
    padding: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

.btn-level:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.btn-level.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
    transform: scale(1.02) !important;
}

.level-name {
    font-weight: bold !important;
    font-size: 1.2rem !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) !important;
    margin: 5px 0 !important;
}

.level-desc {
    font-size: 0.9rem !important;
    opacity: 0.9 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
}

.btn-level i {
    font-size: 1.5rem !important;
    color: white !important;
    margin-bottom: 8px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Estilos para o campo de email */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Mensagens de email */
.email-message {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

/* Botões de ação */
.start-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: block !important;
}

.start-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6) !important;
}

.start-button:disabled {
    background: rgba(108, 117, 125, 0.7) !important;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: none;
    transform: none;
}

.ranking-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.ranking-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6) !important;
    text-decoration: none !important;
    color: white !important;
}

/* Link de registro */
.register-link p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.register-link a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.register-link a:hover {
    color: #ffed4e;
    text-decoration: underline;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Level button specific styles */
.level-beginner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.4)) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.level-beginner:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(22, 163, 74, 0.6)) !important;
    border-color: rgba(34, 197, 94, 0.8) !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.level-intermediate {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.4)) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.level-intermediate:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(245, 158, 11, 0.6)) !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.level-advanced {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4)) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.level-advanced:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(220, 38, 38, 0.6)) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.level-mix {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(126, 34, 206, 0.4)) !important;
    border-color: rgba(147, 51, 234, 0.6) !important;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.level-mix:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.5), rgba(126, 34, 206, 0.6)) !important;
    border-color: rgba(147, 51, 234, 0.8) !important;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.3);
    transform: translateY(-2px) scale(1.02);
}

/* Selected state for level buttons */
.level-beginner.selected {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.6), rgba(22, 163, 74, 0.7)) !important;
    border-color: rgba(34, 197, 94, 1) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3), 0 6px 20px rgba(34, 197, 94, 0.4);
}

.level-intermediate.selected {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.6), rgba(245, 158, 11, 0.7)) !important;
    border-color: rgba(251, 191, 36, 1) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3), 0 6px 20px rgba(251, 191, 36, 0.4);
}

.level-advanced.selected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.6), rgba(220, 38, 38, 0.7)) !important;
    border-color: rgba(239, 68, 68, 1) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 6px 20px rgba(239, 68, 68, 0.4);
}

.level-mix.selected {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.6), rgba(126, 34, 206, 0.7)) !important;
    border-color: rgba(147, 51, 234, 1) !important;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3), 0 6px 20px rgba(147, 51, 234, 0.4);
}

/* Register link margin */
.text-sm {
    margin-top: 15px;
}