/* mybadge.id — Pop-Art Chrome Badge Gallery */

:root {
    --chrome-hi: #f4f4f5;
    --chrome-mid: #a1a1aa;
    --chrome-lo: #52525b;
    --chrome-deep: #27272a;
    --chrome-shadow: #d4d4d8;
    --pop-red: #ef4444;
    --pop-yellow: #facc15;
    --pop-blue: #3b82f6;
    --pop-pink: #ec4899;
    --keyline: #000000;
    --bg-void: #18181b;
    --dot-size: 2px;
    --dot-gap: 6px;
    --sidebar-width: 280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-void);
    color: #e4e4e7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ======================== SIDEBAR ======================== */

#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 100;
    background: linear-gradient(180deg, #d4d4d8 0%, #a1a1aa 100%);
    background-image:
        radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
    background-size: 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 4px solid var(--keyline);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 0 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: 3px solid var(--keyline);
}

.sidebar-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--keyline);
    background: linear-gradient(135deg, #e4e4e7 0%, #a1a1aa 40%, #f4f4f5 55%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-rack {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
}

.badge-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--keyline);
    background: linear-gradient(145deg, #f4f4f5 0%, #a1a1aa 30%, #d4d4d8 50%, #71717a 80%, #52525b 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s ease;
}

.badge-thumb .material-symbols-outlined {
    font-size: 20px;
    color: var(--keyline);
}

.badge-thumb:hover {
    transform: scale(1.1);
}

.badge-thumb .pulse-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--pop-blue);
    opacity: 0;
    pointer-events: none;
}

.badge-thumb.active .pulse-ring {
    animation: pulseRing 1.8s ease-out infinite;
}

.badge-thumb[data-color="pop-blue"] .pulse-ring { border-color: var(--pop-blue); }
.badge-thumb[data-color="pop-red"] .pulse-ring { border-color: var(--pop-red); }
.badge-thumb[data-color="pop-yellow"] .pulse-ring { border-color: var(--pop-yellow); }
.badge-thumb[data-color="pop-pink"] .pulse-ring { border-color: var(--pop-pink); }

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.sidebar-footer {
    padding: 16px 0;
    width: 100%;
    border-top: 3px solid var(--keyline);
}

.halftone-strip {
    display: block;
    height: 20px;
    background-image: radial-gradient(circle, rgba(0,0,0,0.15) 2px, transparent 2px);
    background-size: 6px 6px;
}

/* ======================== HAMBURGER ======================== */

#hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #f4f4f5, #a1a1aa);
    border: 3px solid var(--keyline);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 3px 3px 0px var(--keyline);
}

#hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--keyline);
    border-radius: 1px;
    transition: all 0.3s ease;
}

#hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#hamburger.open span:nth-child(2) {
    opacity: 0;
}
#hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ======================== MAIN STAGE ======================== */

#main-stage {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

/* ======================== CHROME STRIPS & DIVIDERS ======================== */

.chrome-strip {
    height: 8px;
    background: linear-gradient(90deg, transparent 0%, #f4f4f5 20%, #a1a1aa 50%, #f4f4f5 80%, transparent 100%);
}

.halftone-divider {
    height: 40px;
    background-size: 12px 12px;
}

.divider-red {
    background-image: radial-gradient(circle, var(--pop-red) 3px, transparent 3px);
}
.divider-blue {
    background-image: radial-gradient(circle, var(--pop-blue) 3px, transparent 3px);
}
.divider-pink {
    background-image: radial-gradient(circle, var(--pop-pink) 3px, transparent 3px);
}

/* ======================== SPEECH BUBBLES ======================== */

.speech-bubble {
    background: #f4f4f5;
    border: 4px solid var(--keyline);
    border-radius: 16px;
    padding: 20px 32px;
    position: relative;
    box-shadow: 4px 4px 0px var(--keyline);
    margin-top: 40px;
}

.speech-bubble p {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: #18181b;
    text-align: center;
}

.bubble-tail {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 20px solid var(--keyline);
}

.bubble-tail::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -13px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-bottom: 16px solid #f4f4f5;
}

/* ======================== PANEL 1: THE MINT ======================== */

.panel-mint {
    background: linear-gradient(145deg, #27272a 0%, #18181b 50%, #27272a 100%);
}

.halftone-convergence {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.halftone-convergence .dot {
    position: absolute;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-badge {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: tilt 4s ease-in-out infinite alternate;
}

.hero-badge.visible {
    opacity: 1;
}

@keyframes tilt {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(3deg); }
}

.badge-ring {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 4px solid var(--keyline);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0px var(--keyline);
}

.badge-chrome {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4f4f5 0%, #a1a1aa 30%, #d4d4d8 50%, #71717a 80%, #52525b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.badge-dots {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.2) 2px, transparent 2px);
    background-size: 6px 6px;
}

.badge-icon {
    font-size: 144px;
    color: var(--keyline);
    position: relative;
    z-index: 1;
    -webkit-text-stroke: 1px white;
}

.badge-ribbon {
    margin-top: -20px;
    background: var(--keyline);
    padding: 8px 40px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    position: relative;
    z-index: 3;
}

.ribbon-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    letter-spacing: 0.12em;
    color: var(--chrome-hi);
    text-transform: uppercase;
}

.mint-bubble {
    z-index: 2;
}

/* ======================== PANEL 2: THE COLLECTION ======================== */

.panel-collection {
    background: linear-gradient(145deg, #18181b 0%, #27272a 100%);
    padding: 60px 40px;
}

.panel-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #e4e4e7 0%, #a1a1aa 40%, #f4f4f5 55%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 50px;
    text-align: center;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    width: 100%;
}

.badge-card {
    background: var(--chrome-hi);
    border: 4px solid var(--keyline);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 4px 4px 0px var(--keyline);
    opacity: 0;
    transform: translateY(60px) rotate(-8deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.card-1.visible { transform: rotate(-3deg); }
.card-2.visible { transform: rotate(2deg); }
.card-3.visible { transform: rotate(-2deg); }
.card-4.visible { transform: rotate(3deg); }
.card-5.visible { transform: rotate(-4deg); }
.card-6.visible { transform: rotate(2deg); }

.badge-card:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 6px 6px 0px var(--keyline);
}

.badge-card:hover .card-badge-dots {
    opacity: 0.4;
}

.card-badge-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--keyline);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-badge-chrome {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4f4f5 0%, #a1a1aa 30%, #d4d4d8 50%, #71717a 80%, #52525b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-badge-dots {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-size: 6px 6px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.dots-red { background-image: radial-gradient(circle, var(--pop-red) 2px, transparent 2px); }
.dots-blue { background-image: radial-gradient(circle, var(--pop-blue) 2px, transparent 2px); }
.dots-yellow { background-image: radial-gradient(circle, var(--pop-yellow) 2px, transparent 2px); }
.dots-pink { background-image: radial-gradient(circle, var(--pop-pink) 2px, transparent 2px); }

.card-badge-chrome .material-symbols-outlined {
    font-size: 48px;
    color: var(--keyline);
    position: relative;
    z-index: 1;
}

.card-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--keyline);
    text-transform: uppercase;
}

.collection-bubble {
    margin-top: 40px;
}

/* ======================== PANEL 3: THE ANATOMY ======================== */

.panel-anatomy {
    background: linear-gradient(145deg, #27272a 0%, #18181b 100%);
    padding: 80px 40px;
}

.anatomy-container {
    position: relative;
    width: 360px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.anatomy-layer {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.5s ease;
}

.anatomy-badge-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--keyline);
    background: transparent;
}

.anatomy-badge-chrome {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4f4f5 0%, #a1a1aa 30%, #d4d4d8 50%, #71717a 80%, #52525b 100%);
}

.anatomy-badge-dots {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.3) 2px, transparent 2px);
    background-size: 6px 6px;
}

.anatomy-icon {
    font-size: 80px;
    color: var(--keyline);
}

.anatomy-seal {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pop-blue);
    border: 3px solid var(--keyline);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.annotation {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    left: 220px;
}

.annotation.visible {
    opacity: 1;
}

.annotation-bubble {
    background: #f4f4f5;
    border: 3px solid var(--keyline);
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 3px 3px 0px var(--keyline);
    white-space: nowrap;
    position: relative;
}

.annotation-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid var(--keyline);
}

.annotation-bubble::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 9px solid #f4f4f5;
}

.annotation-bubble p {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #18181b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.annotation-bubble span {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    color: #3f3f46;
    display: block;
}

.annotation-line {
    width: 40px;
    height: 0;
    border-top: 2px dashed #a1a1aa;
    position: absolute;
    left: -50px;
    top: 50%;
}

/* ======================== PANEL 4: THE CLAIM ======================== */

.panel-claim {
    background: linear-gradient(145deg, #18181b 0%, #27272a 50%, #18181b 100%);
    min-height: 100vh;
}

.claim-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pulse-ring-element {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--chrome-mid);
    opacity: 0;
    animation: pulseRadiate 3s ease-out infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}
.ring-2 {
    width: 400px;
    height: 400px;
    animation-delay: 0.4s;
}
.ring-3 {
    width: 600px;
    height: 600px;
    animation-delay: 0.8s;
}
.ring-4 {
    width: 800px;
    height: 800px;
    animation-delay: 1.2s;
}
.ring-5 {
    width: 1000px;
    height: 1000px;
    animation-delay: 1.6s;
}

@keyframes pulseRadiate {
    0% {
        transform: scale(0.5);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.claim-text {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 12vw, 10rem);
    text-transform: none;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #e4e4e7 0%, #a1a1aa 40%, #f4f4f5 55%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ======================== MOBILE ======================== */

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    #sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #hamburger {
        display: flex;
    }

    #main-stage {
        margin-left: 0;
        width: 100%;
    }

    .badge-ring {
        width: 240px;
        height: 240px;
    }

    .badge-icon {
        font-size: 96px;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-badge-ring {
        width: 80px;
        height: 80px;
    }

    .card-badge-chrome .material-symbols-outlined {
        font-size: 32px;
    }

    .anatomy-container {
        width: 280px;
        height: 400px;
    }

    .annotation {
        left: 160px;
    }

    .anatomy-badge-ring { width: 140px; height: 140px; }
    .anatomy-badge-chrome { width: 120px; height: 120px; }
    .anatomy-badge-dots { width: 100px; height: 100px; }
    .anatomy-icon { font-size: 50px; }
    .anatomy-seal { width: 40px; height: 40px; font-size: 20px; }

    .panel {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .badge-ring {
        width: 200px;
        height: 200px;
    }

    .badge-icon {
        font-size: 80px;
    }

    .annotation {
        display: none;
    }
}
