/* ===================================
   ZYGOTE - WEBCORE/BRUTALIST STYLES
   The ugliest CSS you'll ever see
   =================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONTS - Comic Sans & Impact for maximum cringe */
@font-face {
    font-family: 'Impact';
    src: local('Impact');
}

:root {
    /* ROTTEN COLOR PALETTE */
    --rotten-cream: #FFFDD0;
    --poop-brown: #D2691E;
    --vomit-green: #99CC00;
    --stark-black: #000000;
    --dirty-white: #F5F5DC;
    --sludge-dark: #4A3728;
    --infected-green: #7CB342;
    
    /* FONTS */
    --font-headline: 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Comic Sans MS', 'Courier Prime', cursive;
    --font-mono: 'Courier New', 'Courier Prime', monospace;
}

body {
    font-family: var(--font-body);
    background-color: var(--dirty-white);
    color: var(--stark-black);
    overflow-x: hidden;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text y="24" font-size="24">🦠</text></svg>'), auto;
}

/* NOISE BACKGROUND */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* ===================================
   HEADER / NAV
   =================================== */
.header {
    position: sticky;
    top: 0;
    background: var(--rotten-cream);
    border-bottom: 4px solid var(--stark-black);
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 4px 0 var(--poop-brown);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    image-rendering: pixelated;
}

.glitch-logo {
    animation: glitch 0.5s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); filter: none; }
    20% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
    40% { transform: translate(2px, -2px); filter: hue-rotate(180deg); }
    60% { transform: translate(-1px, -1px); filter: hue-rotate(270deg); }
    80% { transform: translate(1px, 1px); filter: saturate(200%); }
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--stark-black);
    text-decoration: underline;
    transition: all 0.1s;
}

.nav-link:hover {
    color: var(--poop-brown);
    text-decoration: underline wavy;
    animation: shake 0.3s infinite;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--dirty-white),
        var(--dirty-white) 10px,
        var(--rotten-cream) 10px,
        var(--rotten-cream) 20px
    );
}

.hero-content {
    max-width: 800px;
}

.hero-logo-container {
    margin-bottom: 30px;
}

.hero-logo {
    width: 250px;
    height: 250px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 20px var(--vomit-green));
}

.pulsating {
    animation: pulse 2s ease-in-out infinite, wobble 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.05); }
    50% { transform: rotate(-1deg) scale(1.1); }
    75% { transform: rotate(1deg) scale(1.05); }
}

.hero-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--stark-black);
    text-transform: uppercase;
    text-shadow: 
        4px 4px 0 var(--vomit-green),
        -2px -2px 0 var(--poop-brown);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 3vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--sludge-dark);
}

.highlight {
    background: linear-gradient(180deg, transparent 50%, var(--vomit-green) 50%);
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* ===================================
   BUTTONS - WINDOWS 95 STYLE
   =================================== */
.btn {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: bold;
    padding: 15px 30px;
    border: 4px solid var(--stark-black);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: all 0.1s;
    
    /* 3D Border Effect */
    box-shadow: 
        inset -3px -3px 0 #808080,
        inset 3px 3px 0 #DFDFDF,
        4px 4px 0 var(--stark-black);
}

.btn:active {
    box-shadow: 
        inset 3px 3px 0 #808080,
        inset -3px -3px 0 #DFDFDF;
    transform: translate(2px, 2px);
}

.btn-green {
    background: var(--vomit-green);
    color: var(--stark-black);
}

.btn-green:hover {
    background: var(--infected-green);
}

.btn-brown {
    background: var(--poop-brown);
    color: var(--rotten-cream);
}

.btn-brown:hover {
    background: var(--sludge-dark);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* JITTER ANIMATION */
.jitter:hover {
    animation: shake 0.1s infinite;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2px, 1px) rotate(-1deg); }
    50% { transform: translate(2px, -1px) rotate(1deg); }
    75% { transform: translate(-1px, 2px) rotate(-0.5deg); }
}

/* ===================================
   MARQUEE
   =================================== */
.marquee-container {
    background: var(--vomit-green);
    border-top: 4px solid var(--stark-black);
    border-bottom: 4px solid var(--stark-black);
    padding: 15px 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-family: var(--font-headline);
    font-size: 24px;
    color: var(--stark-black);
    text-transform: uppercase;
    padding-right: 50px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   LORE SECTION
   =================================== */
.lore-section {
    padding: 60px 20px;
    background: var(--rotten-cream);
    border-bottom: 6px dashed var(--poop-brown);
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--stark-black);
    text-shadow: 3px 3px 0 var(--poop-brown);
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--sludge-dark);
}

.lore-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .lore-content {
        grid-template-columns: 1fr;
    }
}

.lore-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.lore-text p {
    margin-bottom: 20px;
}

.embrio-text {
    color: #4169E1;
    font-weight: bold;
}

.testicle-text {
    color: #8B4513;
    font-weight: bold;
}

.zygote-text {
    color: var(--vomit-green);
    font-weight: bold;
    text-shadow: 1px 1px 0 var(--stark-black);
}

/* COMPARISON CHART - MS PAINT STYLE */
.comparison-chart {
    background: white;
    border: 4px solid var(--stark-black);
    padding: 15px;
    transform: rotate(-1deg);
    box-shadow: 8px 8px 0 var(--poop-brown);
}

.chart-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--stark-black);
    text-decoration: underline;
}

.chart-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    border-bottom: 2px dashed var(--stark-black);
}

.chart-row:last-child {
    border-bottom: none;
}

.chart-cell {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    border-right: 2px dashed var(--stark-black);
}

.chart-cell:last-child {
    border-right: none;
}

.header-row .chart-cell {
    font-weight: bold;
    background: var(--dirty-white);
}

.virgin-header {
    color: #4169E1;
}

.chad-header {
    color: var(--poop-brown);
}

.label-cell {
    font-weight: bold;
    background: var(--rotten-cream);
}

.icon-cell {
    font-size: 24px;
}

.chad-text {
    color: var(--poop-brown);
    font-weight: bold;
}

/* ===================================
   PFP LAB SECTION
   =================================== */
.pfp-lab-section {
    padding: 60px 20px;
    background: 
        linear-gradient(135deg, var(--dirty-white) 25%, transparent 25%) -50px 0,
        linear-gradient(225deg, var(--dirty-white) 25%, transparent 25%) -50px 0,
        linear-gradient(315deg, var(--dirty-white) 25%, transparent 25%),
        linear-gradient(45deg, var(--dirty-white) 25%, transparent 25%);
    background-size: 100px 100px;
    background-color: var(--rotten-cream);
}

.lab-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .lab-panels {
        grid-template-columns: 1fr;
    }
}

.lab-panel {
    background: white;
    border: 5px solid var(--stark-black);
    padding: 25px;
    box-shadow: 
        inset -4px -4px 0 #808080,
        inset 4px 4px 0 #DFDFDF,
        8px 8px 0 var(--stark-black);
}

.panel-upload {
    transform: rotate(-0.5deg);
}

.panel-generate {
    transform: rotate(0.5deg);
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 12px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 5px 10px;
    margin: -25px -25px 15px -25px;
}

.panel-headline {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--stark-black);
}

.panel-desc {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--sludge-dark);
}

/* UPLOAD ZONE */
.upload-zone {
    border: 4px dashed var(--stark-black);
    background: var(--dirty-white);
    padding: 40px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover {
    background: var(--rotten-cream);
    border-color: var(--vomit-green);
}

.upload-zone.dragover {
    background: var(--vomit-green);
    animation: shake 0.2s infinite;
}

.upload-text {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--sludge-dark);
}

/* BEFORE/AFTER */
.before-after {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.ba-item {
    text-align: center;
}

.ba-label {
    font-family: var(--font-mono);
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.ba-preview {
    width: 100px;
    height: 100px;
    border: 3px solid var(--stark-black);
    background: var(--dirty-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    overflow: hidden;
}

.ba-preview.infected {
    background: var(--vomit-green);
    filter: saturate(150%) contrast(110%);
}

.ba-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-arrow {
    font-size: 24px;
    font-weight: bold;
    color: var(--poop-brown);
}

.placeholder-text {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--sludge-dark);
    text-align: center;
}

/* PROMPT INPUT */
.prompt-input {
    width: 100%;
    height: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 15px;
    border: 3px solid var(--stark-black);
    background: var(--dirty-white);
    resize: none;
    margin-bottom: 15px;
    box-shadow: 
        inset 2px 2px 0 #808080,
        inset -2px -2px 0 #DFDFDF;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--vomit-green);
}

/* RESULT PREVIEW */
.result-preview {
    width: 100%;
    height: 200px;
    border: 3px solid var(--stark-black);
    background: var(--dirty-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    overflow: hidden;
}

.result-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CHARACTER PREVIEW */
.character-preview {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(153, 204, 0, 0.1);
    border: 2px dashed var(--vomit-green);
    border-radius: 5px;
}

.character-preview img {
    animation: wobble 3s ease-in-out infinite;
}

/* ===================================
   TOKENOMICS SECTION
   =================================== */
.tokenomics-section {
    padding: 60px 20px;
    background: var(--poop-brown);
    border-top: 8px solid var(--stark-black);
    border-bottom: 8px solid var(--stark-black);
}

.tokenomics-section .section-title {
    color: var(--rotten-cream);
    text-shadow: 3px 3px 0 var(--stark-black);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .tokenomics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.token-panel {
    background: var(--rotten-cream);
    border: 5px solid var(--stark-black);
    padding: 25px 15px;
    text-align: center;
    box-shadow: 
        inset -3px -3px 0 #808080,
        inset 3px 3px 0 #DFDFDF,
        6px 6px 0 var(--stark-black);
}

.token-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.token-label {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    color: var(--stark-black);
    margin-bottom: 5px;
}

.token-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--sludge-dark);
    font-weight: bold;
}

/* ===================================
   ROADMAP SECTION
   =================================== */
.roadmap-section {
    padding: 60px 20px;
    background: var(--dirty-white);
}

.roadmap-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.roadmap-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    border: 4px solid var(--stark-black);
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 6px 6px 0 var(--vomit-green);
    text-align: left;
}

.step-number {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--rotten-cream);
    background: var(--stark-black);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-headline);
    font-size: 1.3rem;
    color: var(--stark-black);
    margin-bottom: 5px;
}

.step-desc {
    font-size: 14px;
    color: var(--sludge-dark);
}

.roadmap-arrow {
    font-size: 48px;
    color: var(--poop-brown);
    font-weight: bold;
    margin: 10px 0;
    animation: bounce 1s infinite;
}

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

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--stark-black);
    color: var(--rotten-cream);
    padding: 40px 20px;
    text-align: center;
}

.ca-container {
    margin-bottom: 30px;
}

.ca-label {
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--vomit-green);
}

.ca-address {
    font-family: var(--font-mono);
    font-size: clamp(12px, 3vw, 24px);
    word-break: break-all;
    background: var(--sludge-dark);
    padding: 15px;
    border: 3px solid var(--vomit-green);
    margin-bottom: 15px;
    cursor: pointer;
}

.ca-address:hover {
    background: var(--poop-brown);
}

.social-links {
    margin-bottom: 30px;
}

.social-title {
    font-family: var(--font-body);
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--vomit-green);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--rotten-cream);
    padding: 15px 25px;
    border: 3px solid var(--poop-brown);
    background: var(--sludge-dark);
    transition: all 0.1s;
}

.social-link:hover {
    background: var(--poop-brown);
    border-color: var(--vomit-green);
}

.social-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.social-label {
    font-family: var(--font-mono);
    font-size: 12px;
}

.disclaimer {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 15px;
    border: 2px dashed var(--poop-brown);
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.credits {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--poop-brown);
}

.hate {
    color: red;
    text-decoration: line-through;
    position: relative;
}

.hate::after {
    content: 'love';
    position: absolute;
    left: 0;
    color: var(--vomit-green);
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.hidden {
    display: none !important;
}

/* SELECTION STYLE */
::selection {
    background: var(--vomit-green);
    color: var(--stark-black);
}

/* SCROLLBAR - UGLY STYLE */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: var(--dirty-white);
    border: 2px solid var(--stark-black);
}

::-webkit-scrollbar-thumb {
    background: var(--poop-brown);
    border: 2px solid var(--stark-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vomit-green);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
        font-size: 12px;
    }
    
    .hero-logo {
        width: 180px;
        height: 180px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   CUSTOM MODAL - WINDOWS 95 STYLE
   =================================== */
.zygote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.2s ease;
}

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

.zygote-modal {
    background: #C0C0C0;
    border: 4px solid var(--stark-black);
    max-width: 400px;
    width: 90%;
    box-shadow: 
        inset -2px -2px 0 #808080,
        inset 2px 2px 0 #DFDFDF,
        8px 8px 0 rgba(0,0,0,0.5);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { 
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.zygote-modal-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: bold;
}

.zygote-modal-close {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #DFDFDF #808080 #808080 #DFDFDF;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}

.zygote-modal-close:active {
    border-color: #808080 #DFDFDF #DFDFDF #808080;
}

.zygote-modal-body {
    padding: 20px;
    text-align: center;
}

.zygote-modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: wobble 1s infinite;
}

.zygote-modal-message {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--stark-black);
    line-height: 1.6;
    margin-bottom: 20px;
}

.zygote-modal-btn {
    background: #C0C0C0;
    border: 3px solid;
    border-color: #DFDFDF #808080 #808080 #DFDFDF;
    padding: 8px 30px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    min-width: 100px;
}

.zygote-modal-btn:hover {
    background: #D0D0D0;
}

.zygote-modal-btn:active {
    border-color: #808080 #DFDFDF #DFDFDF #808080;
}
