*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #4B5563;
    background-color: #FFFFFF;
    min-height: 100vh;
    padding: 48px 16px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
}

/* Profile Card */
.profile-card {
    text-align: center;
    padding-bottom: 32px;
}

.avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.avatar-initial {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #4B5563;
    line-height: 1;
    user-select: none;
}

.profile-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 8px;
}

.profile-tagline {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #9CA3AF;
    line-height: 1.65;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 0 0 32px;
}

/* Badges Section */
.badges-section {
    padding-bottom: 48px;
}

.category-divider {
    position: relative;
    text-align: center;
    margin: 32px 0 20px;
    border-top: 1px solid #E5E7EB;
}

.category-divider:first-child {
    margin-top: 0;
}

.category-label {
    position: relative;
    top: -10px;
    background-color: #FFFFFF;
    padding: 0 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Badge List */
.badge-list {
    list-style: none;
    margin: 0 0 8px;
}

.badge-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.badge-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.badge-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #DBEAFE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
}

.badge-content {
    flex: 1;
    min-width: 0;
}

.badge-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    line-height: 1.3;
}

.badge-date {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #9CA3AF;
    line-height: 1.4;
}

/* Badge Detail (expandable) */
.badge-detail {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms ease, opacity 200ms ease;
    opacity: 0;
    padding-left: 54px;
}

.badge-detail p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #4B5563;
    line-height: 1.65;
    padding: 8px 0 4px;
}

.badge-item.expanded .badge-detail {
    max-height: 200px;
    opacity: 1;
}

/* Links */
a {
    color: #2563EB;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #2563EB;
    transition: width 200ms ease;
}

a:hover::after {
    width: 100%;
}
