@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --color-primary: #00ff9f;
    --color-secondary: #ff006e;
    --color-tertiary: #8b5cf6;
    --color-text: #00ff9f;
    --color-dim: #00ff9f80;
    --color-border: #00ff9f40;
    --glow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg-primary);
    color: var(--color-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Background Video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* CRT Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom,
        transparent,
        var(--color-primary),
        transparent
    );
    opacity: 0.3;
    animation: scan 8s linear infinite;
    z-index: 999;
    pointer-events: none;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: glitch 3s infinite;
}

.ascii-logo {
    color: var(--color-primary);
    font-size: 0.5rem;
    line-height: 1;
    text-shadow: var(--glow);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-secondary);
    text-shadow: 0 0 10px var(--color-secondary);
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--color-dim);
    font-size: 0.9rem;
}

/* Mint Display */
.mint-container {
    background: var(--bg-secondary);
    border: 2px solid var(--color-primary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow:
        inset 0 0 30px rgba(0, 255, 159, 0.1),
        0 0 20px rgba(0, 255, 159, 0.2);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.mint-label {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-shadow: var(--glow);
    letter-spacing: 2px;
}

.mint-display {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.mint-input {
    flex: 1;
    background: rgba(0, 255, 159, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    padding: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px var(--color-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mint-input:hover {
    background: rgba(0, 255, 159, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 159, 0.2);
}

.copy-btn {
    background: var(--color-primary);
    border: none;
    color: var(--bg-primary);
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--color-primary);
}

.copy-btn:hover {
    background: var(--color-secondary);
    box-shadow: 0 0 20px var(--color-secondary);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-icon {
    display: inline-block;
}

/* Stats Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--color-border);
    padding: 1rem;
    box-shadow: inset 0 0 20px rgba(0, 255, 159, 0.1);
}

.stat-label {
    color: var(--color-dim);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.stat-value {
    color: var(--color-primary);
    font-size: 0.9rem;
    word-break: break-all;
}

.stat-number {
    font-size: 1.2rem;
    text-shadow: var(--glow);
}

.stat-value a {
    color: var(--color-tertiary);
    text-decoration: none;
    transition: all 0.3s;
}

.stat-value a:hover {
    color: var(--color-primary);
    text-shadow: var(--glow);
}

/* Sections */
.section {
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    background: var(--bg-secondary);
    padding: 1.5rem;
    box-shadow: inset 0 0 30px rgba(0, 255, 159, 0.05);
}

.section-header {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    text-shadow: var(--glow);
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 0.8rem;
}

.info-item {
    color: var(--color-dim);
    font-size: 0.9rem;
}

.pulse {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-active {
    color: var(--color-primary);
    text-shadow: var(--glow);
}

.status-info {
    color: var(--color-secondary);
}

/* About */
.about-text {
    color: var(--color-dim);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary);
}

.mechanism-title {
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.mechanisms {
    list-style: none;
    padding-left: 0;
}

.mechanisms li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.arrow {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.tx-table th {
    background: rgba(0, 255, 159, 0.1);
    color: var(--color-primary);
    padding: 0.8rem;
    text-align: left;
    border: 1px solid var(--color-border);
    font-weight: normal;
}

.tx-table td {
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    color: var(--color-dim);
}

.tx-table tbody tr {
    transition: all 0.3s;
}

.tx-table tbody tr:hover {
    background: rgba(0, 255, 159, 0.05);
}

.tx-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.tx-type-claim { background: rgba(139, 92, 246, 0.3); color: var(--color-tertiary); }
.tx-type-buyback { background: rgba(0, 255, 159, 0.3); color: var(--color-primary); }
.tx-type-burn { background: rgba(255, 0, 110, 0.3); color: var(--color-secondary); }
.tx-type-reward { background: rgba(255, 215, 0, 0.3); color: #ffd700; }

.tx-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    font-size: 0.75rem;
}

.tx-status-success {
    background: rgba(0, 255, 159, 0.2);
    color: var(--color-primary);
}

.tx-status-failed {
    background: rgba(255, 0, 110, 0.2);
    color: var(--color-secondary);
}

.tx-signature {
    color: var(--color-tertiary);
    text-decoration: none;
    transition: all 0.3s;
}

.tx-signature:hover {
    color: var(--color-primary);
    text-shadow: var(--glow);
}

.loading {
    text-align: center;
    color: var(--color-dim);
    padding: 2rem !important;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 1rem;
}

.footer-line {
    color: var(--color-border);
    margin-bottom: 0.5rem;
}

.footer-text {
    text-align: center;
    color: var(--color-dim);
    font-size: 0.8rem;
}

/* Glitch Animation */
@keyframes glitch {
    0% { text-shadow: var(--glow); }
    98% { text-shadow: var(--glow); }
    99% {
        text-shadow:
            2px 2px var(--color-secondary),
            -2px -2px var(--color-tertiary);
    }
    100% { text-shadow: var(--glow); }
}

/* Responsive */

/* Tablet/medium screens - 2 column layout */
@media (max-width: 1200px) and (min-width: 769px) {
    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .ascii-logo {
        font-size: 0.3rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .container {
        padding: 1rem;
    }

    /* Mint container mobile */
    .mint-container {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .mint-label {
        font-size: 0.75rem;
    }

    .mint-display {
        gap: 0.3rem;
    }

    .mint-input {
        font-size: 0.65rem;
        padding: 0.6rem;
        min-width: 0;
    }

    .copy-btn {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }

    .stats-panel {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .section {
        padding: 1rem;
    }

    .section-header {
        font-size: 1rem;
    }

    .about-text {
        font-size: 0.85rem;
    }

    .tx-table {
        font-size: 0.65rem;
    }

    .tx-table th,
    .tx-table td {
        padding: 0.4rem;
    }

    .footer-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .ascii-logo {
        font-size: 0.25rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .mint-container {
        padding: 0.75rem;
    }

    .mint-input {
        font-size: 0.55rem;
        padding: 0.5rem 0.3rem;
    }

    .copy-btn {
        padding: 0.5rem;
        font-size: 0.85rem;
        min-width: 40px;
    }

    .tx-table {
        font-size: 0.6rem;
    }

    .tx-table th,
    .tx-table td {
        padding: 0.3rem;
    }
}
