
/* ini CSS buat Home Page */

@font-face {
    font-family: "Baloo";
    src: url("../fonts/Baloo/Baloo-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}



/* header */
header {
    
    font-family: "Baloo";
    margin-bottom: 20em;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: center;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
/* header main content */
#mainHeader {
    margin-top: 6em;
    padding-left: 4em;
    padding-right: 4em;
    justify-content: space-around;
}
    #headTitle {
        font-family: "Baloo";
        font-size: 2rem;
    }
        #headSubtitle {
            font-size: 1.5rem;
            margin-top: -1rem;
        }
/* header end */

/* intro */
.cardWrapper {
    width: 100%;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
}
/* desktop layout */
.card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 2rem 2.5rem;
    max-width: 100%;
    width: auto;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: linear-gradient(180deg, #e74c3c, #f39c12, #3498db);
    border-radius: 4px 0 0 4px;
}
.avatar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.avatarFrame {
    width: 130px; height: 130px;
    border-radius: 50%;
    border: 3px solid var(--color-background-secondary);
    overflow: hidden;
    background-color: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatarFrame img {
    width: 100%; height: auto;
    object-fit: cover;
    object-position: center top;
}
.badge {
    font-size: 0.7rem; font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--color-background-info);
    color: var(--color-text-info);
    white-space: nowrap;
}

.info {
    flex: 1;
}
.charName {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}
.charTitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}
.divider {
    height: 0.5px;
    background: var(--color-border-tertiary);
    margin-bottom: 1rem;
}
.charDesc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    border: 0.5px solid var(--color-border-secondary);
    color: var(--color-text-secondary);
    background: var(--color-background-secondary);
}
/* .tag.red {background: #fcebeb; color: #a32d2d; border-color: #f09595;} */
/* .tag.blue {background: #e6f1fb; color: #185fa5; border-color: #85b7eb;} */
/* .tag.amber {background: #faeeda; color: #854f0b; border-color: #ef9f27;} */

/* mobile layout */
@media (max-width: 520px) {
    .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.75rem 1.5rem;
        gap: 1.25rem;
    }
    .card::before {
        width: 100%; height: 5px;
        top: 0; left: 0;
        background: linear-gradient(90deg, #e74c3c, #f39c23, #3498db);
        border-radius: 12px 12px 0 0;
    }
    .charName { font-size: 24px; }
    .tags { justify-content: center; }
}
/* intro end */

/* section 2 */
.section2 {
    margin-top: 10em;
}
/* section 2 end */
