/* Blockchain Integration UI Styles */

/* Wallet Connection Section */
.blockchain-section {
    margin-top: 1rem;
}

.wallet-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.wallet-card-content {
    position: relative;
    z-index: 1;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    word-break: break-all;
    margin: 0.5rem 0;
}

.wallet-balance {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.wallet-balance-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wallet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.wallet-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.wallet-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    display: block;
}

.wallet-stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Connect Wallet Button */
.btn-connect-wallet {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-connect-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-connect-wallet i {
    font-size: 1.2rem;
}

/* Blockchain Badge */
.blockchain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blockchain-badge i {
    font-size: 0.85rem;
}

/* Verified Content Indicator */
.content-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 600;
}

.content-verified i {
    animation: verifiedPulse 2s ease-in-out infinite;
}

@keyframes verifiedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Transaction Status */
.transaction-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-hash {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #667eea;
}

.transaction-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-status-success {
    background: #d4edda;
    color: #155724;
}

.transaction-status-pending {
    background: #fff3cd;
    color: #856404;
}

.transaction-status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Reputation Score Display */
.reputation-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.reputation-score {
    font-size: 1.5rem;
    font-weight: bold;
}

.reputation-icon {
    font-size: 1.5rem;
    animation: reputationGlow 2s ease-in-out infinite;
}

@keyframes reputationGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Connect Wallet Modal */
.wallet-connect-modal {
    max-width: 500px;
}

.wallet-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-option:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateX(5px);
}

.wallet-option-icon {
    font-size: 2rem;
    color: #667eea;
}

.wallet-option-content h5 {
    margin: 0;
    font-size: 1rem;
    color: #d4edda;
}

.wallet-option-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #a9b6c2;
}

/* Loading States */
.blockchain-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
}

.blockchain-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Info Box */
.blockchain-info-box {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.blockchain-info-box i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* Token Balance Display */
.token-balance {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: #667eea;
}

.token-symbol {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .wallet-stats {
        grid-template-columns: 1fr;
    }

    .wallet-card {
        padding: 1rem;
    }

    .wallet-balance {
        font-size: 1.25rem;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .wallet-option {
        background: #2d3748;
        border-color: #4a5568;
    }

    .wallet-option:hover {
        background: #1a202c;
        border-color: #667eea;
    }
}
