/* Monad Momentum NFT Styles */

:root {
    --monad-purple: #7B3FF2;
    --monad-dark: #1a1a2e;
    --monad-darker: #0f0f1e;
    --monad-light: #f5f5ff;
    --monad-accent: #00ff88;
    --monad-gradient: linear-gradient(135deg, #7B3FF2 0%, #00ff88 100%);
    --speed-gradient: linear-gradient(90deg, rgba(123,63,242,0.1) 0%, rgba(0,255,136,0.1) 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--monad-darker);
    color: var(--monad-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, #eee, transparent),
        radial-gradient(1px 1px at 50px 50px, #eee, transparent),
        radial-gradient(1px 1px at 80px 80px, #eee, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars 10s linear infinite;
    opacity: 0.3;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(123, 63, 242, 0.3);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--monad-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.9rem;
    color: rgba(245, 245, 255, 0.7);
    margin-top: 5px;
}

.wallet-btn {
    background: var(--monad-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(123, 63, 242, 0.4);
}

.wallet-btn.connected {
    background: var(--monad-accent);
    color: var(--monad-dark);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--monad-light);
    text-shadow: 2px 2px 0 var(--monad-purple);
}

.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: var(--monad-accent);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--monad-purple);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(80% 0 0 0); transform: translate(-2px, -2px); }
    80% { clip-path: inset(0 0 70% 0); transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 20% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(0 0 80% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(30% 0 40% 0); transform: translate(2px, 2px); }
    80% { clip-path: inset(70% 0 0 0); transform: translate(-2px, -2px); }
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(245, 245, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--monad-accent);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(245, 245, 255, 0.6);
}

/* NFT Preview */
.hero-image {
    position: relative;
}

.nft-preview {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.speed-lines {
    position: absolute;
    inset: -20px;
    background: var(--speed-gradient);
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

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

.nft-card {
    position: relative;
    background: var(--monad-dark);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid var(--monad-purple);
    overflow: hidden;
}

.nft-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.rarity-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--monad-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Mint Section */
.mint-section {
    background: rgba(123, 63, 242, 0.1);
    border-radius: 20px;
    padding: 60px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid rgba(123, 63, 242, 0.3);
}

.mint-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    background: var(--monad-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mint-container {
    max-width: 400px;
    margin: 0 auto;
}

.mint-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.quantity-btn {
    background: var(--monad-purple);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--monad-accent);
    color: var(--monad-dark);
    transform: scale(1.1);
}

#mintQuantity {
    background: var(--monad-dark);
    color: white;
    border: 2px solid var(--monad-purple);
    padding: 10px;
    width: 80px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.mint-info {
    margin-bottom: 30px;
}

.mint-info p {
    margin: 5px 0;
}

#totalCost {
    color: var(--monad-accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.mint-note {
    font-size: 0.9rem;
    color: rgba(245, 245, 255, 0.6);
}

.mint-btn {
    background: var(--monad-gradient);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mint-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(123, 63, 242, 0.4);
}

.mint-btn:active {
    transform: translateY(-1px);
}

/* Donation Section */
.donation-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(123, 63, 242, 0.1) 100%);
    border-radius: 20px;
    padding: 60px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.donation-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.donation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.donation-total {
    background: var(--monad-dark);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.donation-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(245, 245, 255, 0.6);
    margin-bottom: 10px;
}

.donation-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--monad-accent);
}

.top-donors h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--monad-purple);
}

.donors-list {
    background: var(--monad-dark);
    border-radius: 10px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.donor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(123, 63, 242, 0.2);
}

.donor-item:last-child {
    border-bottom: none;
}

.donor-address {
    font-family: monospace;
    font-size: 0.9rem;
    color: rgba(245, 245, 255, 0.8);
}

.donor-amount {
    color: var(--monad-accent);
    font-weight: 600;
}

.donation-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#donationAmount {
    background: var(--monad-dark);
    color: white;
    border: 2px solid var(--monad-accent);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.donate-btn {
    background: var(--monad-accent);
    color: var(--monad-dark);
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.donation-note {
    font-size: 0.8rem;
    color: rgba(245, 245, 255, 0.6);
}

/* Features */
.features {
    padding: 80px 0;
}

.features h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    background: rgba(123, 63, 242, 0.1);
    border: 1px solid rgba(123, 63, 242, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--monad-accent);
    background: rgba(0, 255, 136, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--monad-accent);
}

.feature p {
    color: rgba(245, 245, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid rgba(123, 63, 242, 0.3);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(245, 245, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--monad-accent);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--monad-dark);
    margin: 15% auto;
    padding: 40px;
    border: 2px solid var(--monad-purple);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.modal-content.success {
    border-color: var(--monad-accent);
}

.modal-content.error {
    border-color: #ff4444;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.modal-btn {
    background: var(--monad-purple);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: var(--monad-accent);
    color: var(--monad-dark);
}

/* Spinner */
.spinner {
    border: 4px solid rgba(123, 63, 242, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--monad-purple);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .donation-container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .mint-section,
    .donation-section {
        padding: 40px 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--monad-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--monad-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--monad-accent);
}