/* =========================================================
PIXELOS BLUE PASTEL THEME (Google Material Design 3)
========================================================= */

:root {
/* Bảng màu pastel lấy cảm hứng từ Material You & PixelOS /
--bg-app: #edf3fb;               / Nền xanh lam nhạt bao phủ toàn màn hình /
--surface-card: #ffffff;         / Nền thẻ trắng tinh khiết /
--surface-tonal: #dce7f6;        / Màu nền nhấn pastel cho ô tile /
--surface-hover: #cfdff2;        / Trạng thái hover */

--primary-color: #1e5ba8;        /* Xanh dương chủ đạo cho chữ tiêu đề, icon /
--primary-container: #d6e4f9;    / Nền container của các nút bấm / badge */
--primary-on-container: #0b3b75;

--text-main: #19202a;            /* Chữ đen sắc nét /
--text-sub: #546479;             / Chữ phụ màu xám than */
--border-light: rgba(144, 169, 203, 0.25);

--shadow-smooth: 0 4px 20px -2px rgba(30, 91, 168, 0.08);
--shadow-hover: 0 8px 25px -4px rgba(30, 91, 168, 0.14);
}

/* Reset toàn trang */

{
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
-webkit-tap-highlight-color: transparent;
}

body {
background-color: var(--bg-app);
color: var(--text-main);
display: flex;
justify-content: center;
min-height: 100vh;
padding: 24px 16px 40px;
}

/* Khung giới hạn ứng dụng */
.app-container {
width: 100%;
max-width: 440px;
display: flex;
flex-direction: column;
}

/* 1. Header System Pills */
.system-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}

.pill-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
border-radius: 999px;
background-color: var(--surface-card);
border: 1px solid var(--border-light);
font-size: 12px;
font-weight: 600;
color: var(--text-sub);
box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.pill-theme {
background-color: var(--primary-container);
color: var(--primary-on-container);
border: none;
}

.status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background-color: #22c55e;
box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

/* 2. Logic chuyển đổi trang (Views) */
.page-view {
display: none;
animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-view.active {
display: block;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* 3. Thẻ Card phong cách Material 3 */
.card {
background-color: var(--surface-card);
border-radius: 28px;
padding: 24px;
box-shadow: var(--shadow-smooth);
border: 1px solid var(--border-light);
margin-bottom: 16px;
}

.profile-card {
text-align: center;
padding: 32px 24px;
}

.avatar-ring {
width: 90px;
height: 90px;
border-radius: 50%;
margin: 0 auto 16px;
padding: 4px;
background: linear-gradient(135deg, #a5c7f8, #5b92e5);
display: flex;
align-items: center;
justify-content: center;
}

.avatar-core {
width: 100%;
height: 100%;
border-radius: 50%;
background: var(--surface-card);
color: var(--primary-color);
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
font-weight: 800;
}

.profile-name {
font-size: 22px;
font-weight: 800;
letter-spacing: -0.5px;
color: var(--text-main);
margin-bottom: 4px;
}

.profile-handle {
font-size: 13px;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 14px;
}

.profile-bio {
font-size: 14px;
line-height: 1.6;
color: var(--text-sub);
}

.section-label {
font-size: 13px;
font-weight: 700;
letter-spacing: 0.8px;
text-transform: uppercase;
color: var(--text-sub);
margin: 20px 0 12px 6px;
}

/* 4. Danh sách các ô chọn (Tiles) */
.tile-list {
display: flex;
flex-direction: column;
gap: 12px;
}

.tile-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-radius: 20px;
background-color: var(--surface-card);
border: 1px solid var(--border-light);
box-shadow: var(--shadow-smooth);
text-decoration: none;
cursor: pointer;
transition: all 0.25s ease;
}

.tile-item:hover {
background-color: var(--surface-tonal);
transform: translateY(-2px);
box-shadow: var(--shadow-hover);
}

.tile-content {
display: flex;
align-items: center;
gap: 16px;
}

.icon-box {
width: 46px;
height: 46px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.color-blue { background-color: #dbeafe; color: #1d4ed8; }
.color-cyan { background-color: #e0f2fe; color: #0284c7; }
.color-indigo { background-color: #ede9fe; color: #6d28d9; }
.color-dark { background-color: #e2e8f0; color: #334155; }

.tile-texts {
text-align: left;
}

.tile-heading {
font-size: 15px;
font-weight: 700;
color: var(--text-main);
margin-bottom: 2px;
}

.tile-sub {
font-size: 12px;
color: var(--text-sub);
}

.tile-arrow {
color: #94a3b8;
font-size: 16px;
}

/* 5. Thanh tiêu đề trang con (Subpage Header) */
.subview-bar {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 20px;
}

.icon-btn-back {
width: 42px;
height: 42px;
border-radius: 50%;
border: 1px solid var(--border-light);
background-color: var(--surface-card);
color: var(--text-main);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: var(--shadow-smooth);
transition: background 0.2s ease;
}

.icon-btn-back:hover {
background-color: var(--surface-tonal);
}

.subview-title {
font-size: 20px;
font-weight: 700;
color: var(--text-main);
}

/* 6. Danh sách dự án */
.project-stack {
display: flex;
flex-direction: column;
gap: 14px;
}

.card-project-title {
font-size: 16px;
font-weight: 700;
margin: 10px 0 6px;
color: var(--text-main);
}

.card-project-desc {
font-size: 13px;
line-height: 1.6;
color: var(--text-sub);
}

.badge-status {
display: inline-block;
padding: 4px 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
}

.badge-dev { background-color: #fef3c7; color: #b45309; }
.badge-done { background-color: #dcfce7; color: #15803d; }

/* 7. Form gửi liên hệ */
.contact-form {
display: flex;
flex-direction: column;
gap: 16px;
}

.input-group label {
display: block;
font-size: 13px;
font-weight: 600;
color: var(--text-main);
margin-bottom: 6px;
}

.custom-input {
width: 100%;
padding: 12px 16px;
border-radius: 14px;
border: 1.5px solid var(--border-light);
background-color: #f8fafc;
color: var(--text-main);
font-size: 14px;
outline: none;
transition: all 0.2s ease;
}

.custom-input:focus {
border-color: var(--primary-color);
background-color: #ffffff;
box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.15);
}

.btn-primary {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 14px 20px;
border-radius: 16px;
background-color: var(--primary-color);
color: #ffffff;
border: none;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
background-color: #164887;
transform: translateY(-1px);
}

/* 8. Footer */
.app-footer {
text-align: center;
margin-top: 36px;
font-size: 12px;
font-weight: 500;
color: #94a3b8;
}