/* Exchange Page Styles */

.exchange-container {
    background: #000307;
    min-height: 100vh;
    padding: 3rem 2rem;
}

.exchange-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
    text-align: center;
}

.exchange-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.5px;
}

/* Exchange Interface */
.exchange-interface {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Swap Card */
.swap-card {
    background: rgba(19, 19, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.swap-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.swap-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.7px;
}

.swap-section {
    margin-bottom: 1rem;
}

.swap-section label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.2px;
}

.token-input-group {
    display: flex;
    gap: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: border-color 0.3s;
}

.token-input-group:focus-within {
    border-color: var(--primary-color);
}

.token-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
}

.token-selector:hover {
    opacity: 0.8;
}

.token-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.token-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 150px;
}

.token-symbol {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.token-network {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.amount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
    outline: none;
    letter-spacing: -0.5px;
}

.amount-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.balance-display {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: -0.2px;
}

.balance-display span {
    color: var(--text-primary);
    font-weight: 700;
}

.swap-direction {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.swap-arrow-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.swap-arrow-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.wallet-address-section {
    margin: 2rem 0;
}

.wallet-address-section label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.2px;
}

.wallet-address-input {
    width: 100%;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s;
}

.wallet-address-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wallet-address-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.swap-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: -0.5px;
    margin-top: 1rem;
}

.swap-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.swap-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Routes Section */
.routes-section {
    background: rgba(19, 19, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.routes-section h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.route-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.route-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

.route-card.best-price {
    border-color: var(--success);
}

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

.route-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.route-badge.private {
    background: rgba(139, 92, 246, 0.2);
    color: var(--secondary-color);
}

.route-badge.best {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.route-badge.no-wallet {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
}

.route-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.route-details {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.route-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.route-value {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Exchange Info Section */
.exchange-info-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 0;
}

.exchange-info-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.2px;
    text-align: center;
}

.info-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    letter-spacing: -0.2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-item {
    background: rgba(19, 19, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.info-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
}

.info-item h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.7px;
}

.info-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: -0.2px;
}

/* Timeline Section */
.timeline-section {
    background: rgba(19, 19, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.timeline-section h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -1px;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
}

.timeline-marker.completed {
    background: var(--success);
    border-color: var(--success);
}

.timeline-marker.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: -0.2px;
}

/* Updates Section */
.updates-section {
    background: rgba(19, 19, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.updates-section h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.update-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.update-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.update-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.2px;
}

.update-item h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.update-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: -0.2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .exchange-interface {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .exchange-header h1 {
        font-size: 2rem;
    }
    
    .token-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .amount-input {
        text-align: left;
    }
    
    .timeline {
        padding-left: 2rem;
    }
}

/* Token Selector Modal */
.token-selector-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-selector-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.token-selector-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

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

.token-selector-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.token-list {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.token-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.token-option:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
