/* ====================================================
   WooWallet Addon — Frontend Styles
   ==================================================== */

/* Action Cards Row */
.wwa-action-cards {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.wwa-card {
    flex: 1;
    min-width: 180px;
    border-radius: 12px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    user-select: none;
}
.wwa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.wwa-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.wwa-card-label {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.wwa-card-offline  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.wwa-card-withdraw { background: linear-gradient(135deg, #6d28d9, #4c1d95); }

/* Modal */
.wwa-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wwa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}
.wwa-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: wwa-slide-in 0.2s ease;
}
@keyframes wwa-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wwa-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: background 0.1s;
}
.wwa-modal-close:hover { background: #e5e7eb; }

.wwa-modal-box h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

/* Form Elements */
.wwa-label {
    font-weight: 600;
    color: #374151;
    margin: 14px 0 6px;
    font-size: 14px;
}
.wwa-req { color: #ef4444; }

.wwa-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.wwa-input:focus {
    outline: none;
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109,40,217,0.1);
}
textarea.wwa-input { resize: vertical; }

.wwa-hint {
    color: #6b7280;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Method Cards */
.wwa-method-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.wwa-method-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    text-align: center;
    min-width: 90px;
    transition: border-color 0.15s, background 0.15s;
}
.wwa-method-card:hover        { border-color: #6d28d9; background: #faf5ff; }
.wwa-method-card.wwa-selected { border-color: #6d28d9; background: #f3e8ff; }

.wwa-method-icon {
    font-size: 11px;
    font-weight: 800;
    background: #6d28d9;
    color: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 6px;
    display: inline-block;
}
.wwa-method-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* Address Box */
.wwa-address-wrap {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    word-break: break-all;
}
#wwa-address-text {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    color: #1f2937;
    background: #fef9c3;
    padding: 2px 6px;
    border-radius: 4px;
}
.wwa-copy-btn {
    background: #6d28d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
}
.wwa-copy-btn:hover { background: #5b21b6; }

/* Balance Info */
.wwa-balance-info {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #166534;
}

/* Buttons */
.wwa-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.15s, transform 0.1s;
}
.wwa-btn:active { transform: scale(0.98); }
.wwa-btn-primary  { background: #f59e0b; color: #fff; }
.wwa-btn-primary:hover  { background: #d97706; }
.wwa-btn-withdraw { background: #6d28d9; color: #fff; }
.wwa-btn-withdraw:hover { background: #5b21b6; }
.wwa-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Messages */
.wwa-msg {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
}
.wwa-msg-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.wwa-msg-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

@media (max-width: 480px) {
    .wwa-modal-box { padding: 22px 18px; }
    .wwa-card { min-width: 140px; padding: 20px 12px; }
}
