/* Web3 Signup Plugin - Login/Register Button Styles */

#web3-signup-container {
    margin-top: 16px;
    width: 100%;
}

.web3-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 16px;
    color: #888;
    font-size: 13px;
}

.web3-divider::before,
.web3-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.web3-divider span {
    padding: 0 12px;
    white-space: nowrap;
}

/* Wallet buttons grid */
.web3-wallets-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

/* Base wallet button */
.web3-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.web3-btn:hover {
    border-color: #3b99fc;
    background: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 153, 252, 0.15);
}

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

/* Detected wallet button */
.web3-btn-detected {
    background: #fafafa;
    border-color: #e5e5e5;
}

.web3-btn-detected:hover {
    background: #f0f4ff;
    border-color: #3b99fc;
}

/* WalletConnect button */
.web3-btn-wc {
    background: #f0f7ff;
    border-color: #3b99fc40;
    color: #3b99fc;
}

.web3-btn-wc:hover {
    background: #e0efff;
    border-color: #3b99fc;
}

/* MetaMask fallback button */
.web3-btn-metamask {
    background: #fff8f0;
    border-color: #f6851b40;
    color: #f6851b;
}

.web3-btn-metamask:hover {
    background: #fff0e0;
    border-color: #f6851b;
}

/* Wallet icon */
.web3-wallet-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
}

.web3-wallet-icon-placeholder {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* WalletConnect hint text */
.web3-wc-hint {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin: -2px 0 10px;
}

/* Status messages */
.web3-status {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

.web3-status-info {
    background: #e8f4fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.web3-status-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.web3-status-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

/* Loading spinner */
.web3-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

.web3-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #3b99fc;
    border-radius: 50%;
    animation: web3spin 0.8s linear infinite;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .web3-btn {
        background: #1a1a2e;
        border-color: #333;
        color: #e0e0e0;
    }

    .web3-btn:hover {
        background: #1e2a4a;
        border-color: #3b99fc;
    }

    .web3-btn-wc {
        background: #1a2744;
        border-color: #3b99fc40;
    }

    .web3-btn-metamask {
        background: #2a1a0a;
        border-color: #f6851b40;
    }

    .web3-divider {
        color: #666;
    }

    .web3-divider::before,
    .web3-divider::after {
        border-color: #333;
    }

    .web3-status-info {
        background: #0d2137;
        color: #64b5f6;
        border-color: #1565c0;
    }

    .web3-status-success {
        background: #0d2a0d;
        color: #81c784;
        border-color: #2e7d32;
    }

    .web3-status-error {
        background: #2a0d0d;
        color: #ef9a9a;
        border-color: #c62828;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .web3-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .web3-wallet-icon {
        width: 20px;
        height: 20px;
    }
}
