/* Base Styles */
:root {
    --primary-color: #9333EA;
    --dark-bg: #0E0B14;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(147, 51, 234, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--dark-bg);
    line-height: 1.5;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.gradient-1 {
    position: absolute;
    top: -40vh;
    left: -20vw;
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
    filter: blur(3xl);
}

.gradient-2 {
    position: absolute;
    bottom: -40vh;
    right: -20vw;
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
    filter: blur(3xl);
}

.network-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(147, 51, 234, 0.15) 2px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
    background: var(--dark-bg);
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

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

.logo-img {
    width: 2rem;
    height: 2rem;
}

.logo-text {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-title {
        font-size: 2rem;
    }
}

.menu-icon {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: currentColor;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.2s;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 6rem 1rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    color: #A855F7;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(to right, #A855F7, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Claim Widget */
.widget-container {
    max-width: 480px;
    margin: 0 auto;
}

.claim-widget {
    background: rgba(14, 11, 20, 0.9);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.token-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-icon img {
    width: 1.5rem;
    height: 1.5rem;
}

/* Input Form */
.input-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: #94a3b8;
    font-size: 0.875rem;
}

.wallet-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.wallet-input:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.4);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
}

/* Allocation Info */
.allocation-info {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
}

.check-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 0.5rem;
    height: 0.25rem;
    border: 2px solid white;
    border-top: 0;
    border-left: 0;
}

.success-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.allocation-amount {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Buttons */
.primary-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, #9333EA, #A855F7);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-button:hover {
    border-color: rgba(147, 51, 234, 0.4);
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 11, 20, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 100;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    border-top-color: #9333EA;
    animation: spin 1s linear infinite;
}

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

/* Wallet Modal */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.wallet-list {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
} 