/* ============================================
   doublestandard.xyz - Memphis Bold Shapes
   ============================================ */

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

body {
    background: #FFF5E6;
    color: #2D3436;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.confetti-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.confetti-shape {
    position: absolute;
    opacity: 0;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.confetti-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.confetti-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid currentColor;
}

.confetti-square {
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
}

@keyframes bounce-enter {
    0% { opacity: 0; transform: scale(0) translateY(40px); }
    60% { opacity: 0.35; transform: scale(1.15) translateY(-5px); }
    100% { opacity: 0.3; transform: scale(1) translateY(0); }
}

.hero-question-mark {
    position: absolute;
    font-family: 'Fredoka', sans-serif;
    font-size: 20vw;
    font-weight: 700;
    color: #6C5CE7;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.hero-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.01em;
    color: #2D3436;
    position: relative;
    z-index: 1;
    transform: scale(0);
    animation: spring-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.dot-xyz {
    color: #FF6B8A;
}

@keyframes spring-in {
    0% { transform: scale(0); }
    70% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    color: #2D3436;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fade-up 0.6s ease-out 0.8s forwards;
}

.hero-subtitle em {
    font-style: italic;
    color: #6C5CE7;
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-prompt {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FF8C69;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    animation: gentle-bounce 2s ease-in-out infinite;
    cursor: default;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* --- SQUIGGLE DIVIDERS --- */
.squiggle-divider {
    padding: 1rem 0;
    text-align: center;
}

.squiggle-divider svg {
    width: 100%;
    height: 30px;
}

.squiggle-path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 1s ease-out;
}

.squiggle-path.drawn {
    stroke-dashoffset: 0;
}

/* --- SECTION HEADING --- */
.section-heading {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #2D3436;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* --- CHALLENGE CARDS --- */
.challenges-section {
    padding: 4rem 5vw;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.flip-card {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.flip-card.entered {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    transform-style: preserve-3d;
}

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

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-front {
    background: #FFFFFF;
    border: 4px solid #FF6B8A;
}

.flip-card-back {
    background: #DFE6E9;
    border: 4px solid #4ECDC4;
    transform: rotateY(180deg);
}

/* Rotating accent colors */
.flip-card:nth-child(5n+1) .flip-card-front { border-color: #FF6B8A; }
.flip-card:nth-child(5n+2) .flip-card-front { border-color: #4ECDC4; }
.flip-card:nth-child(5n+3) .flip-card-front { border-color: #FFE66D; }
.flip-card:nth-child(5n+4) .flip-card-front { border-color: #FF8C69; }
.flip-card:nth-child(5n+5) .flip-card-front { border-color: #6C5CE7; }

.flip-card-front h3,
.flip-card-back h3 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #2D3436;
    margin-bottom: 0.75rem;
}

.flip-card-front p,
.flip-card-back p {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2D3436;
}

.flip-hint {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6C5CE7;
    margin-top: auto;
}

/* --- BADGES --- */
.badge {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.badge-politics { background: #FF6B8A; }
.badge-media { background: #4ECDC4; }
.badge-culture { background: #6C5CE7; }
.badge-policy { background: #FF8C69; }
.badge-tech { background: #FFE66D; color: #2D3436; }

/* --- SCORE SECTION --- */
.score-section {
    padding: 6rem 5vw;
    text-align: center;
}

.counter-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.counter-number {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #FF6B8A;
    line-height: 1;
}

.counter-label {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    color: #2D3436;
    opacity: 0.6;
}

/* --- FOOTER --- */
.footer-section {
    background: #2D3436;
    padding: 4rem 5vw;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.footer-confetti-piece {
    position: absolute;
    opacity: 0;
}

.footer-confetti-piece.burst {
    animation: confetti-burst 2.5s ease-out forwards;
}

@keyframes confetti-burst {
    0% { opacity: 1; transform: translate(0, 0) scale(0); }
    40% { opacity: 0.8; }
    100% { opacity: 0; transform: var(--burst-direction) scale(1); }
}

.footer-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    color: #DFE6E9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.footer-domain {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFE66D;
    position: relative;
    z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 300px;
    }
}
