/* Global Styles */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: var(--background);
    color: var(--text);
}

.App {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: var(--surface);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.5rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.connect-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.connect-btn:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom right, #1e293b, #0f172a);
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #94a3b8;
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    background-color: var(--surface);
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    background-color: var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-content p {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--surface);
    width: 90%;
    max-width: 480px;
    border-radius: 1rem;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.close-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: var(--border);
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.wallet-section {
    margin-bottom: 1rem;
}

.wallet-section:last-child {
    margin-bottom: 0;
}

.wallet-section h3 {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wallet-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--surface);
}

.wallet-option:hover {
    background-color: var(--background);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wallet-option i:first-child {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.wallet-option span {
    flex: 1;
    margin-left: 1rem;
    font-weight: 500;
    color: var(--text);
}

.wallet-option i:last-child {
    color: var(--secondary-color);
    font-size: 0.875rem;
    opacity: 0.5;
}

.wallet-info {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 1rem;
}

.info-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.info-content p {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.info-description {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.info-footer {
    display: flex;
    gap: 1.5rem;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.learn-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .wallet-info {
        margin: 2rem -1.5rem -1.5rem;
        border-radius: 0;
    }
}

/* Footer Styles */
footer {
    background-color: var(--surface);
    padding: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    color: var(--secondary-color);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

footer p {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .modal-content {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    /* Header */
    header {
        padding: 1rem;
    }

    nav {
        gap: 1rem;
    }

    .nav-link span {
        display: none;
    }

    .connect-btn {
        padding: 0.5rem 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .stat-card {
        width: calc(50% - 1rem);
        padding: 1rem;
    }

    /* Features Section */
    .features-section {
        padding: 3rem 1rem;
    }

    .features-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    /* Import Page */
    .import-container {
        margin: 1rem;
        padding: 1rem;
    }

    .import-header h1 {
        font-size: 1.75rem;
    }

    .import-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .import-tabs .tab {
        padding: 0.75rem;
        white-space: nowrap;
    }

    .import-form {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    /* Header */
    .logo span {
        font-size: 1rem;
    }

    /* Modal */
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .wallet-option {
        padding: 0.875rem;
    }

    .wallet-info {
        margin: 1rem -1rem -1rem;
        border-radius: 0;
    }

    /* Import Page */
    .import-tabs .tab {
        font-size: 0.875rem;
    }

    .security-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .learn-more {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Header */
    header {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        text-align: center;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    /* Features */
    .feature-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-content {
        text-align: center;
    }

    /* Modal */
    .wallet-option span {
        font-size: 0.875rem;
    }

    .info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-content {
        text-align: center;
    }

    /* Import Page */
    .import-tabs {
        flex-wrap: wrap;
    }

    .import-tabs .tab {
        flex: 1 1 auto;
        min-width: calc(50% - 0.5rem);
    }

    .form-group textarea {
        min-height: 120px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f172a;
        --surface: #1e293b;
        --text: #f8fafc;
        --border: #334155;
        --secondary-color: #94a3b8;
    }

    .hero-section {
        background: linear-gradient(to bottom right, #0f172a, #020617);
    }

    .wallet-option:hover {
        background-color: #1e293b;
    }

    .info-icon {
        background: #1e293b;
    }

    .security-notice {
        background: rgba(59, 130, 246, 0.1);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0040ff;
        --primary-dark: #0030cc;
        --text: #000000;
        --secondary-color: #505050;
        --border: #000000;
    }

    .feature-box,
    .wallet-option,
    .import-form {
        border-width: 2px;
    }

    .hero-section {
        background: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .feature-box:hover,
    .wallet-option:hover,
    .learn-more:hover,
    .submit-btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .modal,
    .connect-btn,
    .social-links,
    .feature-box {
        display: none !important;
    }

    .hero-section {
        background: none;
        color: black;
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 24pt;
    }

    .hero-content p {
        font-size: 12pt;
    }
}

/* Import Page Styles */
.import-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
}

.import-header {
    text-align: center;
    margin-bottom: 2rem;
}

.import-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.import-header .subtitle {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.import-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--surface);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.import-tabs .tab {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.import-tabs .tab i {
    font-size: 1.25rem;
}

.import-tabs .tab.active {
    background-color: var(--primary-color);
    color: white;
}

.import-form {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    font-size: 1rem;
    resize: none;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.security-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.security-notice i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.notice-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.notice-content p {
    font-size: 0.875rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn i {
    font-size: 1.125rem;
}

/* Show More Button Styles */
.show-more-btn {
    width: 100%;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.show-more-btn:hover {
    background: var(--border);
}

.show-more-btn i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateY(2px);
}

.show-more-btn i.fa-chevron-up {
    transform: rotate(180deg);
}

.additional-wallets {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Modal Styles */
.loading-modal .loading-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.selected-wallet-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-wallet-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.loading-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.dots {
    display: flex;
}

.dots span {
    animation: dots 1.5s infinite;
    opacity: 0;
}

.dots span:nth-child(1) {
    animation-delay: 0s;
}

.dots span:nth-child(2) {
    animation-delay: 0.5s;
}

.dots span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes dots {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Error Modal Styles */
.error-modal .error-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 400px;
    width: 90%;
}

.error-icon {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon i {
    font-size: 2rem;
    color: #ef4444;
}

.error-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.error-content p {
    color: var(--secondary-color);
    font-size: 1rem;
    line-height: 1.5;
}

.error-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.error-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .loading-modal .loading-content,
    .error-modal .error-content {
        padding: 1.5rem;
        border-radius: 0;
        width: 100%;
        height: 100%;
        justify-content: center;
    }
} 