@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

:root {
    --bg-color: #f0f7ff;
    --primary: #4e89ae;
    --orange: #ff9f43;
    --green: #1dd1a1;
    --pink: #ff6b6b;
    --blue: #48dbfb;
    --text-dark: #333;
    --white: #fff;
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
}

.login-bg {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
}

.logo-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 900;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #444;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 30px;
    border: 2px solid #ddd;
    margin-top: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-google:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Dashboard */
.dashboard-header {
    background: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info h2 { color: var(--primary); font-size: 1.5rem; }

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--orange);
}

.level-badge {
    background: #fffa65;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.2rem;
    color: #b78a00;
    white-space: nowrap;
}

.btn-logout {
    text-decoration: none;
    background-color: #ffeff1;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--pink);
    font-weight: bold;
    transition: all 0.2s;
}

.btn-logout:hover {
    background-color: var(--pink);
    color: white;
}

.dashboard-content {
    padding: 30px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

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

.game-card {
    text-decoration: none;
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 0 rgba(0,0,0,0.15);
}

.game-card:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 rgba(0,0,0,0.15);
}

.bg-orange { background: var(--orange); }
.bg-green { background: var(--green); }
.bg-pink { background: var(--pink); }
.bg-blue { background: var(--blue); }

.game-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.game-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
}

.progress-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.progress-section h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.progress-bar-container {
    background: #e1e8ed;
    height: 30px;
    border-radius: 15px;
    margin: 20px auto;
    overflow: hidden;
    max-width: 600px;
}

.progress-bar {
    background: linear-gradient(90deg, #1dd1a1, #10ac84);
    height: 100%;
    border-radius: 15px;
    transition: width 0.5s ease-in-out;
}

/* Jogo Layout */
.game-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-header-btn {
    text-decoration: none;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2rem;
    background: var(--bg-color);
    padding: 10px 20px;
    border-radius: 30px;
}

.score-hud {
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--bg-color);
    padding: 10px 20px;
    border-radius: 30px;
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg-color);
}

.word-display {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: 5px;
    color: var(--primary);
    min-height: 80px;
}

.options-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.option-btn {
    font-size: 2.5rem;
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 5px 0 #d1d8e0;
    font-weight: bold;
    transition: transform 0.1s, visibility 0.1s;
}

.option-btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #d1d8e0;
}

.feedback-msg {
    margin-top: 30px;
    font-size: 2rem;
    font-weight: bold;
    min-height: 48px;
}

.feedback-success { color: var(--green); animation: pop 0.3s ease-out; }
.feedback-error { color: var(--pink); animation: shake 0.3s ease-in-out; }

@keyframes pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}
