/* mybadge.page - Mid-Century Achievement Display */
/* Colors: #60906A, #B0926A, #408080, #2A2218, #E08040, #5A4A3A, #8A7A68, #F0ECE0 */
/* Fonts: DM Serif Display, Figtree */

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

body {
    font-family: 'Figtree', sans-serif;
    color: #5A4A3A;
    background: #F0ECE0;
    overflow-x: hidden;
}

/* Hero */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2A2218;
    padding: 60px 20px 80px;
    overflow: hidden;
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Avatar */
.avatar-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #B0926A;
}

.avatar-initial {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: #F0ECE0;
}

.hero__name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #F0ECE0;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.hero__bio {
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8A7A68;
    max-width: 500px;
    margin: 0 auto 24px;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.hero__stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

.stat {
    font-family: 'Figtree', sans-serif;
    font-size: 0.85rem;
    color: #8A7A68;
}

.stat__number {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: #E08040;
    display: block;
}

/* Atomic Stars */
.atomic-star {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 1;
    opacity: 0;
    animation: starAppear 0.4s ease 0.5s forwards;
}

.atomic-star::before,
.atomic-star::after {
    content: '';
    position: absolute;
    background: #B0926A;
}

.atomic-star::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.atomic-star::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.atomic-star--1 {
    top: 15%;
    left: 10%;
    animation-delay: 0.5s;
}

.atomic-star--2 {
    top: 20%;
    right: 12%;
    width: 28px;
    height: 28px;
    animation-delay: 0.8s;
}

/* Organic Curve Divider */
.organic-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.organic-curve svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* Badge Wall */
.badge-wall {
    padding: 60px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.wall-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: #2A2218;
    text-align: center;
    margin-bottom: 40px;
}

/* Masonry Layout */
.masonry {
    columns: 3;
    column-gap: 20px;
}

/* Badge Frame */
.badge-frame {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid #B0926A;
    padding: 28px 24px;
    background: #F0ECE0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.badge-frame.visible {
    opacity: 1;
    transform: translateY(0);
}

.badge-frame:hover {
    box-shadow: 0 4px 16px rgba(42, 34, 24, 0.08);
}

/* Badge Shapes */
.badge-shape {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.badge-shape--shield {
    clip-path: polygon(50% 0%, 100% 15%, 100% 70%, 50% 100%, 0% 70%, 0% 15%);
}

.badge-shape--circle {
    border-radius: 50%;
}

.badge-shape--hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.badge-shape--orange { background: linear-gradient(135deg, #E08040, #c06830); }
.badge-shape--teal { background: linear-gradient(135deg, #408080, #306868); }
.badge-shape--green { background: linear-gradient(135deg, #60906A, #4a7854); }

.badge-frame__title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #2A2218;
    text-align: center;
    margin-bottom: 8px;
}

.badge-frame__desc {
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5A4A3A;
    text-align: center;
    margin-bottom: 12px;
}

.badge-frame__date {
    font-family: 'Figtree', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #8A7A68;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    text-align: center;
}

/* Footer */
.footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #B0926A;
    max-width: 1000px;
    margin: 0 auto;
}

.footer__text {
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    color: #8A7A68;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes starAppear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 0.5; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .masonry {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .masonry {
        columns: 1;
    }

    .hero__stats {
        gap: 20px;
    }
}
