/* mybadge.id - Holographic 3D Product Badge Showcase */

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

:root {
    --bg: #09090B;
    --white: #FFFFFF;
    --silver: #A1A1AA;
    --card-base: #3B3B3B;
    --green: #34D399;
    --blue: #60A5FA;
    --purple: #C084FC;
    --pink: #FF6B9D;
    --gold: #FBBF24;
    --light-gray: #E4E4E7;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

.scene {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== HERO ===== */
.hero {
    width: 100%;
    padding: 80px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: var(--white);
    letter-spacing: -1px;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}

.hero-dot {
    font-size: 28px;
    color: var(--green);
    position: relative;
    top: -2px;
    margin-left: 2px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--silver);
    margin-top: 12px;
    opacity: 0;
    animation: fadeInDown 1s 0.3s ease forwards;
}

/* Featured Badge */
.featured-badge-container {
    margin-top: 48px;
    perspective: 1000px;
    opacity: 0;
    animation: fadeIn 1.2s 0.6s ease forwards;
}

.featured-badge {
    width: 200px;
    height: 240px;
    animation: slowRotateY 8s ease-in-out infinite;
    transform-style: preserve-3d;
}

.featured-badge-front {
    width: 100%;
    height: 100%;
    background: var(--card-base);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backface-visibility: hidden;
}

.badge-icon-large svg {
    width: 80px;
    height: 80px;
}

.badge-label-large {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green);
}

/* ===== HOLOGRAPHIC OVERLAY ===== */
.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #FF6B9D 0%,
        #C084FC 16%,
        #60A5FA 33%,
        #34D399 50%,
        #FBBF24 66%,
        #FF6B9D 83%,
        #C084FC 100%
    );
    opacity: 0.15;
    background-size: 200% 200%;
    animation: holographicShift 6s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes holographicShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes slowRotateY {
    0% { transform: rotateY(0deg); }
    25% { transform: rotateY(15deg); }
    50% { transform: rotateY(0deg); }
    75% { transform: rotateY(-15deg); }
    100% { transform: rotateY(0deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BADGE SECTION ===== */
.badge-section {
    width: 100%;
    max-width: 960px;
    padding: 40px 24px 80px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--white);
    margin-bottom: 32px;
    text-align: center;
}

/* ===== BADGE GRID ===== */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== BADGE CARD ===== */
.badge-card {
    perspective: 1000px;
    cursor: pointer;
}

.badge-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.badge-card.flipped .badge-card-inner {
    transform: rotateY(180deg);
}

.badge-card-front,
.badge-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.badge-card-front {
    background: var(--card-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-card:hover .badge-card-front {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.badge-card:hover .holographic-overlay {
    animation-duration: 2s;
    opacity: 0.25;
}

.badge-card-back {
    background: var(--card-base);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-card-back h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
}

.badge-card-back p {
    font-size: 13px;
    color: var(--silver);
    line-height: 1.5;
}

.badge-date {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--silver);
    letter-spacing: 1px;
}

.badge-rarity {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Badge Icon */
.badge-icon svg {
    width: 48px;
    height: 48px;
}

/* Badge Label */
.badge-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
}

/* Verification Mark */
.verification-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 16px;
    height: 16px;
}

.verification-mark svg {
    width: 16px;
    height: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
    width: 100%;
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-text {
    font-size: 13px;
    color: var(--silver);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .badge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .badge-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero {
        padding: 48px 16px 40px;
    }

    .badge-section {
        padding: 24px 16px 60px;
    }
}
