/* ===================================================
   SECTIONS.CSS — Giới thiệu, Tổng kết
=================================================== */

/* =============================
   SECTION GIỚI THIỆU
============================= */
.profile-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 52px;
    align-items: start;
}

/* ===== CỘT TRÁI: Ảnh & Badges ===== */
.profile-photo-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 88px;
}

/* Khung ảnh với border trang trí */
.photo-frame {
    width: 220px;
    height: 290px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--teal-light);
    border: 2.5px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow: 6px 6px 0 var(--gold-light), 0 12px 32px rgba(14, 159, 140, 0.12);
}

.photo-frame:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 var(--gold-light), 0 18px 40px rgba(14, 159, 140, 0.18);
}

/* Placeholder khi chưa có ảnh */
.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.35;
}

.photo-placeholder p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal);
}

.upload-hint {
    font-size: 0.7rem;
    color: var(--text-light);
    background: rgba(255,255,255,0.7);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Ảnh khi đã upload */
#photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Nút upload nhỏ bên dưới frame */
.upload-btn {
    font-size: 0.77rem;
    color: var(--text-light);
    background: none;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 5px 14px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.upload-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}

/* Badges nhanh bên dưới ảnh */
.profile-quick-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.quick-badge {
    display: block;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-mid);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 6px 10px;
}

/* ===== CỘT PHẢI: Thông tin ===== */
.profile-info-side {}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 6px;
}

.profile-tagline {
    font-size: 0.95rem;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 22px;
    letter-spacing: 0.01em;
}

/* Danh sách thông tin chi tiết */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.detail-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.detail-row strong { color: var(--navy); }

/* Box mục tiêu học tập */
.goal-box, .portfolio-purpose {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.goal-box::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--teal), var(--gold));
    border-radius: 0 2px 2px 0;
}

.goal-box h4, .portfolio-purpose h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--navy);
    margin-bottom: 8px;
}

.goal-box p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.portfolio-purpose ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portfolio-purpose ul li {
    font-size: 0.88rem;
    color: var(--text-mid);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.portfolio-purpose ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    font-size: 0.45rem;
    top: 0.5em;
    color: var(--gold);
}

/* =============================
   SECTION TỔNG KẾT
============================= */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.summary-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Card chiếm full chiều ngang */
.summary-card-wide {
    grid-column: 1 / -1;
}

.summary-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1;
}

.summary-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.summary-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* Danh sách kỹ năng trong card */
.summary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-list li {
    font-size: 0.88rem;
    color: var(--text-mid);
    padding-left: 14px;
    position: relative;
    line-height: 1.6;
}

.summary-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.summary-list strong { color: var(--navy); }

/* Layout 2 cột bên trong card wide */
.summary-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
    }
    .profile-photo-side {
        flex-direction: row;
        align-items: flex-start;
        position: static;
    }
    .photo-frame { width: 160px; height: 210px; }
    .profile-quick-badges { flex: 1; }
    .quick-badge { text-align: left; }
}

@media (max-width: 640px) {
    .summary-grid { grid-template-columns: 1fr; }
    .summary-two-col { grid-template-columns: 1fr; }
    .profile-photo-side { flex-direction: column; align-items: center; }
}
