/* AuraChain Presale - Enhanced UI Styles */

/* Wallet Connection Buttons */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.wallet-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.wallet-option-btn:hover::before {
    left: 100%;
}

.wallet-option-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.wallet-option-btn:active {
    transform: translateY(-2px);
}

.wallet-icon {
    font-size: 42px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.wallet-info {
    flex: 1;
    text-align: left;
    margin-left: 20px;
}

.wallet-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wallet-desc {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.wallet-arrow {
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.wallet-option-btn:hover .wallet-arrow {
    opacity: 1;
    transform: translateX(0);
}

.wallet-help-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.wallet-help-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.wallet-help-text a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Connected Wallet Display */
.connected-wallet-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    margin-bottom: 24px;
}

.wallet-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-icon {
    font-size: 28px;
}

.wallet-details {
    flex: 1;
}

.wallet-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wallet-address {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.wallet-network {
    font-size: 14px;
    color: var(--success);
    font-weight: 600;
}

.btn-disconnect {
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-disconnect:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

/* Network Tabs */
.network-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
}

.network-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.network-tab:hover {
    background: rgba(255, 255, 255, 0.08);
}

.network-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 18px;
}

/* Network Info Alert */
.network-info-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.add-network-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.add-network-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Purchase Form */
.purchase-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-max {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-with-max:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.input-with-max input {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.currency-label {
    padding: 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.btn-max {
    padding: 8px 16px;
    margin: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-max:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.input-hint {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Purchase Calculation */
.purchase-calculation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.calc-row span:first-child {
    color: var(--text-secondary);
}

.calc-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.bonus-row span:last-child {
    color: var(--success);
}

.calc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.total-row {
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
}

.total-row span:last-child {
    color: var(--primary);
    font-size: 20px;
}

/* Purchase Button */
.btn-purchase {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.btn-purchase:active {
    transform: translateY(0);
}

.btn-purchase svg {
    width: 20px;
    height: 20px;
}

/* Purchase Notes */
.purchase-note {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.purchase-note.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.note-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.note-text {
    flex: 1;
    color: var(--text-secondary);
}

.note-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Contract Info Box */
.contract-info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.contract-info-box h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contract-address-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contract-address-display label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.contract-address {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary);
    word-break: break-all;
}

.btn-copy {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.contract-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wallet-options {
        gap: 12px;
    }

    .wallet-option-btn {
        padding: 16px 20px;
    }

    .wallet-icon {
        font-size: 36px;
        min-width: 50px;
    }

    .wallet-name {
        font-size: 18px;
    }

    .wallet-desc {
        font-size: 13px;
    }

    .network-tabs {
        flex-direction: column;
    }

    .network-tab {
        width: 100%;
    }

    .contract-address-display {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-copy {
        width: 100%;
    }
}
