/* LOONEY BUNNYS - MAXIMUM CHAOS CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🥕</text></svg>') 16 16, auto !important;
}

body {
    font-family: 'Comic Sans MS', cursive;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #ff00ff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff00ff, #ffff00, #00ff00, #00ffff, #ff00ff);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    opacity: 0.7;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Music player */
.music-player {
    background: #ff0000;
    color: #ffff00;
    padding: 5px;
    font-size: 12px;
    border: 3px dotted #00ff00;
}

/* Header */
header {
    text-align: center;
    padding: 20px;
    background: repeating-linear-gradient(
        45deg,
        #ff00ff,
        #ff00ff 10px,
        #00ffff 10px,
        #00ffff 20px
    );
    border: 5px ridge #ffff00;
    margin: 10px;
}

h1 {
    font-size: 48px;
    color: #00ff00;
    text-shadow: 3px 3px 0 #ff00ff, 6px 6px 0 #ffff00;
    animation: shake 0.5s infinite;
}

/* ASCII Bunny */
.ascii-bunny pre {
    font-family: monospace;
    font-size: 20px;
    color: #ff00ff;
    animation: bounce 1s infinite;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

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

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

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

@keyframes flash {
    0%, 50%, 100% { background: #ffff00; }
    25% { background: #ff00ff; }
    75% { background: #00ffff; }
}

@keyframes rainbow {
    0% { color: #ff0000; }
    17% { color: #ff8800; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    67% { color: #0088ff; }
    83% { color: #ff00ff; }
    100% { color: #ff0000; }
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip: rect(30px, 9999px, 40px, 0); }
    20% { clip: rect(50px, 9999px, 60px, 0); }
    40% { clip: rect(10px, 9999px, 20px, 0); }
    60% { clip: rect(70px, 9999px, 80px, 0); }
    80% { clip: rect(90px, 9999px, 100px, 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip: rect(65px, 9999px, 75px, 0); }
    20% { clip: rect(15px, 9999px, 25px, 0); }
    40% { clip: rect(85px, 9999px, 95px, 0); }
    60% { clip: rect(35px, 9999px, 45px, 0); }
    80% { clip: rect(55px, 9999px, 65px, 0); }
}

/* Animation classes */
.blink { animation: blink 1s infinite; }
.spin { animation: spin 2s linear infinite; }
.wobble { animation: wobble 1s ease-in-out infinite; }
.grow { animation: grow 1s ease-in-out infinite; }
.flash { animation: flash 0.5s infinite; }
.rainbow { animation: rainbow 2s linear infinite; }

/* Countdown */
.countdown {
    text-align: center;
    background: #000;
    color: #0f0;
    padding: 20px;
    margin: 20px;
    border: 3px solid #0f0;
    font-family: monospace;
    box-shadow: 0 0 20px #0f0;
}

.tiny {
    font-size: 8px;
    color: #666;
}

/* About section */
.about {
    margin: 40px 20px;
    text-align: center;
}

.content-box {
    background: rgba(255, 255, 255, 0.8);
    border: 5px dashed #ff00ff;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    transform: rotate(-2deg);
}

.content-box p {
    font-size: 18px;
    margin: 15px 0;
    color: #000;
}

/* Mint section */
.mint-section {
    text-align: center;
    margin: 50px 20px;
    padding: 30px;
    background: repeating-radial-gradient(circle, #ff0000, #ffff00 10px, #ff0000 20px);
    border: 10px groove #00ff00;
}

.mint-button {
    font-family: 'Comic Sans MS', cursive;
    font-size: 36px;
    padding: 20px 40px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 300% 300%;
    animation: gradientShift 1s ease infinite;
    border: 5px solid #000;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
    cursor: pointer;
    transform: rotate(5deg);
    transition: all 0.3s;
}

.mint-button:hover {
    transform: rotate(-5deg) scale(1.2);
    box-shadow: 0 0 50px #ff00ff;
}

.warning {
    color: #ff0000;
    font-size: 24px;
    margin-top: 20px;
    text-shadow: 1px 1px 2px #000;
}

/* GIF chaos */
.gif-chaos {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.float-bunny {
    position: absolute;
    width: 100px;
    animation: float 5s ease-in-out infinite;
}

.spin-bunny {
    position: absolute;
    right: 100px;
    width: 80px;
    animation: spin 3s linear infinite;
}

.glitch-bunny {
    position: absolute;
    left: 50%;
    width: 120px;
    animation: glitch-move 2s infinite;
}

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

@keyframes glitch-move {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    25% { transform: translateX(-30%) translateY(-20px); }
    50% { transform: translateX(-70%) translateY(10px); }
    75% { transform: translateX(-40%) translateY(-15px); }
}

/* Stats */
.stats {
    background: #000;
    color: #0f0;
    padding: 10px;
    font-family: monospace;
    border-top: 2px solid #0f0;
    border-bottom: 2px solid #0f0;
}

.stat {
    margin: 0 20px;
    font-size: 16px;
}

/* Testimonials */
.testimonials {
    margin: 50px 20px;
    text-align: center;
}

.testimonial {
    background: rgba(255, 255, 255, 0.7);
    border: 3px solid #ff00ff;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    font-style: italic;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-top: 10px solid rainbow;
    margin-top: 50px;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 10px;
    border-bottom: 2px dotted #00ff00;
}

.footer-links a:hover {
    color: #ff00ff;
    border-color: #ff00ff;
    animation: shake 0.2s;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: linear-gradient(45deg, #ff00ff, #ffff00);
    padding: 40px;
    border: 5px solid #00ff00;
    text-align: center;
    animation: spin 5s linear infinite;
}

.popup button {
    font-family: 'Comic Sans MS', cursive;
    padding: 10px 20px;
    font-size: 18px;
    background: #00ff00;
    border: 3px solid #000;
    cursor: pointer;
    margin-top: 20px;
}

/* Music control button */
.music-control {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 10000;
    background: #ff00ff;
    border: 3px solid #ffff00;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 20px #00ff00;
    animation: pulse 1s infinite;
    transition: all 0.3s;
}

.music-control:hover {
    transform: scale(1.2) rotate(180deg);
    background: #00ff00;
    border-color: #ff00ff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px #00ff00; }
    50% { box-shadow: 0 0 40px #ff00ff, 0 0 60px #ffff00; }
    100% { box-shadow: 0 0 20px #00ff00; }
}

/* ============================================================
   MINT PROGRESS — TERMINAL STYLE (Live Ethereum RPC)
   ============================================================ */

.mint-progress {
    margin: 20px;
    padding: 0;
}

.terminal-window {
    background: #0a0a0a;
    border: 2px solid #0f0;
    border-radius: 6px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 0 24px rgba(0,255,0,0.35), 0 0 60px rgba(0,255,0,0.1);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}

.terminal-titlebar {
    background: #1a1a1a;
    border-bottom: 1px solid #0f0;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #555;
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 18px 22px 20px;
    color: #0f0;
}

.terminal-line {
    font-size: 12px;
    margin-bottom: 14px;
    color: #0a0;
    word-break: break-all;
}

.prompt {
    color: #0f0;
    margin-right: 6px;
    font-weight: bold;
}

.cmd { color: #0a0; }

.ca-link {
    color: #0ff;
    text-decoration: none;
    border-bottom: 1px dashed #0ff;
}
.ca-link:hover { color: #fff; border-color: #fff; }

.progress-numbers-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.progress-label-text {
    font-size: 13px;
    color: #0a0;
    letter-spacing: 0.1em;
}

.minted-num {
    font-size: 30px;
    font-weight: bold;
    color: #ff0;
    line-height: 1;
    transition: color 0.3s;
    min-width: 80px;
}

.progress-slash { font-size: 20px; color: #0a0; }

.max-num {
    font-size: 18px;
    color: #0f0;
}

/* ASCII progress bar */
.ascii-progress-outer {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 14px;
    overflow: hidden;
}

.ascii-bracket { color: #0f0; font-weight: bold; flex-shrink: 0; }

.ascii-fill  { color: #0f0; letter-spacing: -1px; white-space: nowrap; }
.ascii-empty { color: #1a4a1a; letter-spacing: -1px; white-space: nowrap; }

.pct-text {
    color: #ff0;
    font-size: 13px;
    font-weight: bold;
    margin-left: 10px;
    min-width: 50px;
    flex-shrink: 0;
}

/* Meta row */
.progress-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.remaining-txt {
    color: #0a0;
    letter-spacing: 0.05em;
}

.last-updated-txt {
    color: #055;
    font-size: 11px;
    flex: 1;
    text-align: center;
}

.refresh-chaos {
    background: none;
    border: 1px solid #0f0;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    padding: 3px 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.05em;
}
.refresh-chaos:hover  { background: #0f0; color: #000; }
.refresh-chaos:active { transform: scale(0.96); }
.refresh-chaos:disabled { opacity: 0.4; cursor: default; }

/* Clickable full terminal line */
.ca-link-block {
    color: #0ff;
    text-decoration: none;
    border-bottom: 1px dashed #0ff;
    transition: color 0.15s;
}
.ca-link-block:hover { color: #fff; border-color: #fff; }

/* OpenSea command line */
.opensea-cmd {
    color: #4fa3e0;
    text-decoration: none;
    border-bottom: 1px dashed #4fa3e0;
    transition: color 0.15s;
}
.opensea-cmd:hover { color: #fff; border-color: #fff; }

/* Status line spacing */
.status-line {
    margin-top: 10px;
    line-height: 1.5;
}

/* OpenSea link below mint button */
.opensea-note {
    margin-top: 16px;
    font-family: 'Comic Sans MS', cursive;
    font-size: 14px;
}
.opensea-footer-link {
    color: #4fa3e0;
    text-decoration: none;
    border-bottom: 1px dashed #4fa3e0;
    transition: color 0.2s;
}
.opensea-footer-link:hover { color: #fff; border-color: #fff; }

/* Goal reached banner */
.goal-reached-banner {
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #ff0;
    text-align: center;
    color: #ff0;
    font-size: 15px;
    letter-spacing: 0.1em;
    animation: blink 0.8s step-start infinite;
}

/* Mobile chaos */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    .mint-button { font-size: 24px; }
    .content-box { transform: rotate(-5deg); }
    .music-control {
        top: 60px;
        right: 10px;
        width: 50px;
        height: 50px;
    }
    .minted-num { font-size: 22px; }
    .ascii-progress-outer { font-size: 11px; }
    .terminal-body { padding: 14px 14px 16px; }
}