/* loves.day - Brutalist Honeycomb Love Frequencies */
/* Colors: #845EC2, #FFC75F, #F0F0F0, #3A3A3A, #00C9A7, #1A1A1A, #2A2A2A, #FF6F91 */
/* Fonts: Nunito 900, Nunito Sans 300/400/700 */

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

html, body {
    width: 100%;
    min-height: 100vh;
    background: #1A1A1A;
    color: #F0F0F0;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

/* Manifesto Strip */
#manifesto-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #2A2A2A;
    border-bottom: 4px solid #845EC2;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
}

.strip-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #FFC75F;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Hive Grid */
#hive {
    padding-top: 80px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hex-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.hex-row.offset {
    margin-top: -40px;
    margin-left: calc(clamp(180px, 20vw, 280px) / 2 + 2px);
}

.hex-cell {
    width: clamp(180px, 20vw, 280px);
    height: clamp(200px, 22vw, 320px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.01s, transform 0.01s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hex-cell.visible {
    opacity: 1;
    transform: scale(1);
    transition: none;
}

.hex-cell.slam {
    animation: hexSlam 0.15s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes hexSlam {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-30px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hex-cell:hover {
    z-index: 10;
}

.hex-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(132, 94, 194, 0.0), rgba(0, 201, 167, 0.0));
    transition: background 0.4s ease;
    z-index: 0;
}

.hex-cell:hover::before {
    background: linear-gradient(135deg, rgba(132, 94, 194, 0.3), rgba(0, 201, 167, 0.2));
}

.hex-inner {
    padding: clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

.hex-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #FFC75F;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.hex-cell p {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.65rem, 1.3vw, 0.9rem);
    line-height: 1.5;
    color: #F0F0F0;
}

.data-label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: #00C9A7;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Aurora Cells */
.aurora-cell {
    background: #3A3A3A;
    position: relative;
}

.aurora-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(
        var(--aurora-angle, 135deg),
        rgba(132, 94, 194, 0.4),
        rgba(0, 201, 167, 0.3),
        rgba(255, 199, 95, 0.2),
        rgba(255, 111, 145, 0.3)
    );
    z-index: 0;
    animation: auroraShift 8s ease-in-out infinite;
}

@keyframes auroraShift {
    0%, 100% {
        opacity: 0.6;
        filter: hue-rotate(0deg);
    }
    33% {
        opacity: 0.9;
        filter: hue-rotate(30deg);
    }
    66% {
        opacity: 0.7;
        filter: hue-rotate(-20deg);
    }
}

/* Manifesto Breaks */
.manifesto-break {
    width: 100%;
    padding: 60px 24px;
    background: #1A1A1A;
    border-top: 4px solid #845EC2;
    border-bottom: 4px solid #845EC2;
    margin: 20px 0;
}

.manifesto-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #FFC75F;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    text-align: center;
}

/* Frequency Band Footer */
#frequency-band {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #845EC2, #00C9A7, #FFC75F, #FF6F91, #845EC2);
    background-size: 300% 100%;
    animation: frequencyPulse 4s linear infinite;
    z-index: 100;
}

@keyframes frequencyPulse {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

/* Responsive */
@media (max-width: 768px) {
    .hex-row {
        flex-direction: column;
        align-items: center;
    }
    .hex-row.offset {
        margin-top: 4px;
        margin-left: 0;
    }
    .hex-cell {
        width: clamp(220px, 70vw, 320px);
        height: clamp(240px, 75vw, 360px);
    }
}
