/* Shortcode Styles for MarkShop Store Wallets */

/* Wallet Lookup Form */
.wallet-lookup-form {
    max-width: 600px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wallet-lookup-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wallet-lookup-input input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: monospace;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background-color: #fff;
}

.wallet-lookup-input input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.wallet-lookup-input button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.wallet-lookup-input button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
    transform: translateY(-1px);
}

.wallet-lookup-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Wallet Lookup Results */
.wallet-lookup-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wallet-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.wallet-code-display {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.wallet-balance-display {
    text-align: right;
}

.balance-amount {
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.balance-amount.positive {
    color: #28a745;
}

.balance-amount.negative {
    color: #dc3545;
}

.wallet-limit-info,
.wallet-created-info {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    font-size: 14px;
    color: #6c757d;
}

/* Transactions Section */
.wallet-transactions-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #dee2e6;
}

.wallet-transactions-section h4 {
    margin: 0 0 16px 0;
    color: #343a40;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-transactions-section h4::before {
    content: "📋";
    font-size: 20px;
}

.wallet-transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wallet-transactions-table th {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-transactions-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.wallet-transactions-table tr:hover {
    background: #f8f9fa;
}

.wallet-transactions-table tr:last-child td {
    border-bottom: none;
}

.wallet-transactions-table .positive {
    color: #28a745;
    font-weight: 700;
}

.wallet-transactions-table .negative {
    color: #dc3545;
    font-weight: 700;
}

.no-transactions {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 32px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin: 16px 0;
}

/* My Wallets Shortcode */
.my-wallets-display h3 {
    color: #343a40;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 8px;
    display: inline-block;
}

.wallet-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
}

.wallet-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.wallet-header .wallet-code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.wallet-header .balance-amount {
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wallet-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.wallet-info {
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    font-weight: 700;
    color: #495057;
}

.wallet-status .status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.wallet-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wallet-actions button {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-transactions-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.view-transactions-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.4);
    transform: translateY(-1px);
}

.copy-code-btn {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.copy-code-btn:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
}

.copy-code-btn.copied {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Wallet Balance Display (standalone shortcode) */
.wallet-balance-display {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.wallet-balance-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.wallet-balance-display .wallet-code {
    margin-bottom: 16px;
}

.wallet-balance-display .wallet-balance {
    margin-bottom: 16px;
}

/* Error and Success Messages */
.wallet-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    border: 1px solid #f1b0b7;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
    position: relative;
}

.wallet-error::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 16px;
}

.wallet-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
    position: relative;
}

.wallet-success::before {
    content: "✅";
    margin-right: 8px;
    font-size: 16px;
}

.wallet-info {
    background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%);
    border: 1px solid #b3d9ff;
    border-left: 4px solid #007bff;
    color: #004085;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
    position: relative;
}

.wallet-info::before {
    content: "ℹ️";
    margin-right: 8px;
    font-size: 16px;
}

/* Loading Animation */
.wallet-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-weight: 500;
}

.wallet-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wallet-lookup-input {
        flex-direction: column;
    }
    
    .wallet-lookup-input input[type="text"],
    .wallet-lookup-input button {
        width: 100%;
    }
    
    .wallet-info-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .wallet-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .wallet-details {
        grid-template-columns: 1fr;
    }
    
    .wallet-actions {
        justify-content: center;
    }
    
    .wallet-transactions-table {
        font-size: 12px;
    }
    
    .wallet-transactions-table th,
    .wallet-transactions-table td {
        padding: 8px 6px;
    }
    
    .balance-amount {
        font-size: 20px !important;
    }
    
    .wallet-code-display,
    .wallet-header .wallet-code {
        font-size: 14px !important;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .wallet-transactions-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .wallet-item {
        padding: 16px;
    }
    
    .wallet-lookup-result {
        padding: 16px;
    }
    
    .wallet-balance-display {
        padding: 16px;
    }
}
