﻿/* style.css - Theme chung cho LearnQuest AI */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI',sans-serif; }
body { background:linear-gradient(135deg,#ff9a9e,#fad0c4); min-height:100vh; padding:20px; }
.container { max-width:900px; margin:auto; background:white; border-radius:20px; overflow:hidden; box-shadow:0 15px 35px rgba(0,0,0,0.15); }
header { background:#e11d48; color:white; padding:20px 30px; position:relative; text-align:left; }
h1 { font-size:24px; margin-bottom:8px; }
.subtitle { font-size:14px; opacity:0.9; margin-left:5px; }

.user-info { position:absolute; top:15px; right:15px; font-size:13px; background:#ffffff33; padding:5px 10px; border-radius:20px; display:flex; align-items:center; gap:10px; }
.logout-btn, .profile-btn { background:#be123c; color:white; border:none; padding:5px 12px; border-radius:20px; font-size:12px; cursor:pointer; margin-left:5px; }
.stats { display:flex; gap:15px; font-size:13px; }
.stat-item { display:flex; align-items:center; gap:5px; }

.auth, .quiz, .game-board, .profile { padding:30px; }
.auth { text-align:center; }
input { width:100%; padding:12px; margin:10px 0; border-radius:10px; border:1px solid #ddd; transition:0.3s; }
input:focus { border-color:#e11d48; outline:none; }
button.main-btn { background:#e11d48; color:white; border:none; padding:12px 24px; border-radius:50px; margin:5px; cursor:pointer; font-weight:bold; transition:0.3s; position:relative; overflow:hidden; }
button.main-btn:disabled { background:#ccc; cursor:not-allowed; }
button.main-btn.loading::after { content:''; position:absolute; width:16px; height:16px; border:2px solid #fff; border-top-color:transparent; border-radius:50%; animation:spin 0.8s linear infinite; left:50%; top:50%; margin:-8px 0 0 -8px; }
@keyframes spin { to { transform:rotate(360deg); } }

.alert { background:#fee2e2; color:#991b1b; padding:12px; border-radius:10px; margin:15px 0; text-align:center; font-weight:bold; display:none; }
.question { margin-bottom:25px; padding:20px; background:#fff5f5; border-radius:15px; border-left:5px solid #e11d48; }
.options { display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.option { padding:12px; background:white; border:2px solid #fecaca; border-radius:12px; cursor:pointer; transition:0.3s; }
.option:hover { border-color:#e11d48; background:#fef2f2; }
.option.selected { background:#e11d48; color:white; border-color:#e11d48; }
.other-input { margin-top:10px; display:none; }
.other-input input { width:100%; padding:10px; border:2px solid #ddd; border-radius:10px; }
.hidden { display:none !important; }

.game-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:20px; margin-top:20px; }
.game-card { background:white; border-radius:15px; padding:20px; text-align:center; box-shadow:0 5px 15px rgba(0,0,0,0.1); cursor:pointer; transition:0.3s; position:relative; }
.game-card:hover { transform:translateY(-5px); box-shadow:0 10px 25px rgba(0,0,0,0.15); }
.game-icon { font-size:40px; margin-bottom:10px; }
.game-title { font-weight:bold; font-size:18px; margin-bottom:5px; }
.game-level { font-size:14px; color:#e11d48; }
.recommended { border:3px solid #e11d48; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(225,29,72,0.7)} 50%{box-shadow:0 0 0 10px rgba(225,29,72,0)} }
.badge { position:absolute; top:-10px; right:-10px; background:#e11d48; color:white; padding:3px 8px; border-radius:12px; font-size:12px; }

.profile-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.radar-container { width:300px; height:300px; margin:20px auto; }
.trait-list { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; margin:20px 0; }
.trait-item { background:#f8f9fa; padding:12px; border-radius:12px; text-align:center; }
.trait-name { font-weight:bold; color:#e11d48; }
.trait-bar { height:8px; background:#eee; border-radius:4px; margin-top:5px; overflow:hidden; }
.trait-fill { height:100%; background:#e11d48; border-radius:4px; }

.toast { position:fixed; bottom:20px; right:20px; background:#333; color:white; padding:12px 20px; border-radius:10px; box-shadow:0 5px 15px rgba(0,0,0,0.3); z-index:1000; animation:toast 3s forwards; font-size:14px; }

@keyframes toast { 0%{opacity:0;transform:translateY(20px)} 10%{opacity:1;transform:translateY(0)} 90%{opacity:1} 100%{opacity:0} }
.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  color: #e11d48;
  border-bottom: 3px solid #e11d48;
}

.tab-btn:hover:not(.active) {
  color: #e11d48;
}

.forgot-link {
  text-align: right;
  margin: 8px 0;
  font-size: 14px;
}

.forgot-link a {
  color: #e11d48;
  text-decoration: none;
}

.forgot-link a:hover {
  text-decoration: underline;
}
