/* ============================================
   Etsy Shop View Styles
   ============================================ */

/* Connection Status Banner */
.etsy-connection-status {
    background: #f59e0b11;
    border: 1px solid #f59e0b44;
    border-radius: var(--border-radius, 8px);
    padding: 14px 18px;
    margin: 16px 0;
    display: block;
}

.etsy-connection-status .etsy-warning-label {
    color: #f59e0b;
    font-weight: 600;
}

.etsy-connection-status .etsy-warning-hint {
    color: var(--text-muted, #a1a1aa);
    margin-left: 8px;
}

/* Stats Row */
.etsy-stats-row {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

/* Stat Cards */
.etsy-stat-card {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card, #0f2327);
    border: 1px solid var(--border-color, #1e3a4a);
    border-radius: var(--border-radius, 8px);
    padding: 16px;
    text-align: center;
}

.etsy-stat-value {
    font-size: 28px;
    font-weight: 700;
}

.etsy-stat-value--revenue { color: var(--accent-primary, #c8956c); }
.etsy-stat-value--orders { color: #22c55e; }
.etsy-stat-value--pending { color: #f59e0b; }
.etsy-stat-value--listings { color: #3b82f6; }

.etsy-stat-label {
    color: var(--text-muted, #a1a1aa);
    font-size: 13px;
}

/* Content Cards */
.etsy-card {
    background: var(--bg-card, #0f2327);
    border: 1px solid var(--border-color, #1e3a4a);
    border-radius: var(--border-radius, 8px);
    padding: 16px;
    margin-top: 16px;
}

.etsy-card h3 {
    color: var(--text-primary, #e4e4e7);
    margin: 0 0 12px;
}

/* Order / Queue Row (rendered by JS) */
.etsy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #1e3a4a);
}

.etsy-row-buyer {
    color: var(--text-primary, #e4e4e7);
    font-weight: 600;
}

.etsy-row-title {
    color: var(--text-muted, #a1a1aa);
    margin-left: 8px;
    font-size: 13px;
}

.etsy-row-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.etsy-badge-logo {
    background: #f59e0b22;
    color: #f59e0b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.etsy-badge-status--progress {
    background: #3b82f622;
    color: #3b82f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.etsy-badge-status--pending {
    background: #f59e0b22;
    color: #f59e0b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.etsy-row-amount {
    color: var(--accent-primary, #c8956c);
    font-weight: 600;
}

.etsy-row-date {
    color: var(--text-muted, #a1a1aa);
    font-size: 12px;
}

.etsy-empty-state {
    color: var(--text-muted, #a1a1aa);
    text-align: center;
    padding: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .etsy-stats-row {
        flex-direction: column;
    }

    .etsy-stat-card {
        min-width: unset;
    }

    .etsy-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .etsy-row-meta {
        flex-wrap: wrap;
    }
}
